Back to the 2025 paper

Module 3: Graph and Tree Algorithms

20252m

In an unweighted graph, which algorithm is guaranteed to find the shortest path between two nodes?

(i) Depth First Search
(ii) Kruskal's Algorithm
(iii) Breadth First Search
(iv) Prim's Algorithm

Worked SolutionAI Assisted

Answer: (iii) Breadth First Search

BFS gives shortest path in unweighted graph (by levels). DFS not guaranteed, MST algorithms not for shortest path.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.