Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Algorithms Graphs/Spanning Tree and Shortest Paths
Which of the following is true about shortest path algorithm?
i. The data structure Queue is used to implement Dijkstra’s shortest path algorithm to run in linear time.
ii. Bellman-Ford works on a weighted graph in which edges can have negative weights.
iii. Bellman-Ford can be applied to a wider class of input than Dijkstra.1
i
2
ii
3
iii
4
All of the above