retagged by
834 views
1 votes
1 votes

Which of the following procedure results same output as Dijkstra’s algorithm on unweighted graph with ‘n’ vertices ?

a) BFS

b) DFS

c) Kruskal

d) Prims

retagged by

1 Answer

Best answer
4 votes
4 votes
Answer is A) BFS.

Dijkstra and bfs work on same approach, it is just that dijkstra's gives repect to edge weight, when unweighted graph both are same.
selected by

Related questions

2 votes
2 votes
1 answer
1
1 votes
1 votes
1 answer
3
Souvik33 asked Dec 19, 2022
700 views
If a -ve weight cycle is reachable from source, the Dijkstra's algorithm gets into an infinite loop TRUEFALSE