| List I: Algorithm | List II: Design technique |
|---|---|
| (P) Prim's algorithm for a minimum spanning tree | (i) Backtracking |
| (Q) Floyd-Warshall algorithm for all-pairs shortest paths | (ii) Greedy method |
| (R) Merge sort | (iii) Dynamic programming |
| (S) Hamiltonian circuit problem | (iv) Divide and conquer |
Related Algorithms PYQs
Given below are some algorithms, and some algorithm design paradigms. List - I P. Dijkstra’s Shortest Path Q. Floyd-Warshall algor…
An algorithm performs (logN)1/2 find operations, N insert operations, (logN)1/2 delete operations, and (logN)1/2 decrease-key oper…
Consider the following C function: ```c int fun1 (int n) { int i, j, k, p, q = 0; for (i = 1; i < n; ++i) { p = 0;…
Let f(n) = n and g(n) = n^(1 + sin n) where n is a positive integer. Which of the following statements is/are correct? I. f(n) = O…
Consider a complete binary tree where the left and the right subtrees of the root are max heaps. The lower bound for the number of…
Consider the equality X = Σ_{i=0}^n i^3 and the following choices for X: I. Θ(n^4) II. Θ(n^5) III. O(n^5) IV. Ω(n^3) The equality …
Free account benefits
Turn practice into measurable progress
Public PYQs and reference pages stay free. Sign in when you want GATEverse to remember what you studied and guide what to practise next.