Given the following oriented graph and applying two BFSs, one starting from node A (BFS-A), and the other starting at D (BFS-D), which of the following statements are
true?
I. BFS-A visits node D.
II. The number of visited nodes in BFS-A is 5
III. BFS-D gets to visit all nodes in the graph.
IV. Deleting the red links reduces the number of visited nodes in BFS-D.
A. Only II
B. II and IV
C. II, III and IV
D. III and IV
E. None of the above
Original idea by: Victor Sotelo
No comments:
Post a Comment