Teaching HPSC Lecturer (Technical) Mock Test 2024 Algorithms Graphs/Spanning Tree and Shortest Paths Shortest Paths
Match the following :
| Algorithm | Time Complexity |
| A. Bellman-ford | 1. O(n) |
| B. Optimal binary search tree(OBST) | 2. O(n2) |
| C. All pairs shortest path | 3. O(n3) |
| D. Dijkstra’s algorithm | 4. O(n logn) |
1
A-1, B-2, C-3, D-4
2
A-1, B-3, C-4, D-2
3
A-1, B-3, C-3, D-2
4
none of the above
5
Question Not Attempted