When the Depth First Search of a graph is unique?

When the Depth First Search of a graph is unique?
A. When the graph is a Binary Tree
B. When the graph is a Linked List
C. When the graph is a n-ary Tree
D. When the graph is a ternary Tree
 
Answer: B
Explanation: When Every node will have one successor then the Depth First Search is unique. In all other cases, when it will have more than one successor, it can choose any of them in arbitrary order.
 

Tìm kiếm

Back
Top