Google News
logo
Data Structures Algorithms - Quiz(MCQ)
If locality is a concern, you can use _______ to traverse the graph.
A)
Breadth First Search
B)
Depth First Search
C)
Either BFS or DFS
D)
None of the above

Correct Answer :   Depth First Search


Explanation : DFS is a better choice when locality-wise items are concerned.

Advertisement