121. Match the pairs in the following:
| List-I | List-II | ||
| A. | All pairs shortest paths | P. | Greedy |
| B. | Quick Sort | Q. | Depth-First search |
| C. | Minimum weight spanning tree | R. | Dynamic Programming |
| D. | Connected Components | S. | Divide and Conquer |
| List-I | List-II | ||
| A. | Prim's algorithm for minimum spanning tree | 1. | Backtracking |
| B. | Floyd-Warshall algorithm for all pairs shortest paths | 2. | Greedy method |
| C. | Mergesort | 3. | Dynamic programming |
| D. | Hamiltonian circuit | 4. | Divide and Conquer |
| A | B | C | D | |
| (a) | 3 | 2 | 4 | 1 |
| (b) | 1 | 2 | 4 | 3 |
| (c) | 2 | 3 | 4 | 1 |
| (d) | 2 | 1 | 3 | 4 |