Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning Graph Algorithms

In algorithms, I've mostly been self-taught and that's largely been fine. However, I'm having trouble grasping graph algorithns. I'm looking for some kind of reference that has concepts and actual code so I can not only learn the theory (which I usually do ok with) but also get a feel for how graphs are represented and manipulated in practice (what I usually have a harder time grasping). Can SO deliver? Anything from books, to links, to existing projects would be great as long as they have both concept and implementation.

This is language agnostic, but I'm most familiar with python and don't have much experience with FP.

like image 854
jlv Avatar asked Oct 27 '10 01:10

jlv


People also ask

What are the algorithms in graph?

What is a Graph Algorithm? Graph algorithms are a set of instructions that traverse (visits nodes of a) graph. Some algorithms are used to find a specific node or the path between two given nodes.

Is graph hard to learn?

For many self-taught devs, graphs can be intimidating and difficult to learn. For that matter, graphs can be baffling to experienced devs and computer science grads who haven't worked with them for a while. But graphs are cool and vital ways of representing information and relationships in the world around us.


2 Answers

Both of these are very good:

  • The Algorithm Design Manual

  • Algorithms in C++ Part 5: Graph Algorithms (Don't worry about the C++ bit, has pseudocode as well)

Free Stuff:

  • Chapter 5. Graphs and graph algorithms
like image 95
Mitch Wheat Avatar answered Sep 25 '22 22:09

Mitch Wheat


Steve Yegge says this is a terrific book on algorithms that uses graphs extensively.

like image 44
duffymo Avatar answered Sep 26 '22 22:09

duffymo