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
Distributed Computing Fundamentals Simulations And Advanced Topics
ISBN: 9780471453246
2nd Edition
Authors: Hagit Attiya, Jennifer Welch
Question Posted: