Exercise Lover

June 20, 2007

Exercises 22.2-8

Filed under: 22.2 — yuhanlyu @ 3:05 pm

We can modify BFS to traverse edge (u,v) twice. The first time is the tree edge (u,v), and the second time is (v,u).

1 Comment »

  1. In line 13 we’re checking if the node is WHITE, we should add an else statement that will just process the edge.

    Comment by dzo — November 20, 2008 @ 10:21 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.