2.15 Modify Algorithm 3 to obtain an algorithm that constructs a DFS tree with O(n) time complexity.

Question:

2.15 Modify Algorithm 3 to obtain an algorithm that constructs a DFS tree with O(n) time complexity. Hint: When a node receives the message (M) for the first time, it notifies all its neighbors but passes the message only to one of them.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: