简体   繁体   English

有向无权图C

[英]directed unweighted graphs C

I'm planning to write a program in C that builds the adjacency list, performs the depth first search, performs the breadth first search, and performs the topological sort. 我打算用C编写一个程序,该程序构建邻接表,执行深度优先搜索,执行广度优先搜索并执行拓扑排序。
Where can I get some info about this subject in C? 在哪里可以找到有关C主题的信息?
Any help is appreciated 任何帮助表示赞赏

If you don't have a good algorithms textbook, I'd recommend getting a copy of Robert Sedgewick's Algorithms in C, Part 5: Graph Algorithms. 如果您没有一本好的算法教科书,我建议您获得一份C中的Robert Sedgewick的算法,第5部分:图算法的副本

I own the C++ and Java versions of the book, and both are very good. 我拥有本书的C ++和Java版本,两者都很好。 I do not own the C version of the book, so it might be atrocious (I doubt it; it's probably very good too). 没有这本书的C版本,所以它可能很残酷(我对此表示怀疑;它也可能非常好)。

The Parts 1-4 book is a good algorithms reference book as well; 第1-4部分的书也是一本很好的算法参考书。 the material is presented very clearly. 材料显示得非常清楚。

Introduction to Algorithms by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein is a classic. Thomas H. Cormen,Charles E. Leiserson,Ronald L. Rivest和Clifford Stein的算法介绍是经典之作。 However, it does not have a specific language approach. 但是,它没有特定的语言方法。

Data Structures In C by Noel Kalicharan if you want a C approach. 如果您想使用C方法,请使用Noel Kalicharan的C中的数据结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM