18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lecture 15 - DFS and BFS<br />

In a DFS of an undirected graph, every edge is either a tree edge or a back edge.<br />

Why? Suppose we have a forward edge. We would have encountered (4,1) when expanding 4, so this is a<br />

back edge.<br />

Suppose we have a cross-edge<br />

Where is the shortest path in a DFS?<br />

file:///E|/LEC/LECTUR16/NODE15.HTM (4 of 8) [19/1/2003 1:35:08]<br />

Paths in search trees

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!