Question

Which graph traversal algorithm is most naturally suited to finding the shortest path between two nodes in an unweighted graph, and what underlying data structure does it rely on?

A Depth-First Search, relying on a stack to explore as far as possible along each branch
B Dijkstra's Algorithm, relying on a min-heap to greedily select the next closest node
C Bellman-Ford Algorithm, relying on repeated edge relaxation across the entire edge list
D Topological Sort, relying on tracking in-degree counts for each node in the graph
E Breadth-First Search, relying on a queue to explore all neighbors level by level
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)