UGC NET CS 2023Data Structures and Algorithms › Performance Analysis of Algorithms and RecurrencesVerified
UGC NET CS 2023 PYQ: Match List I with List II List I List II A. The running time of straight forward recursive method to compute…
Match List I with List II
| List I | List II |
| A. The running time of straight forward recursive method to compute nth Fibonacci number $\text{Fn}$ | I. $O (n \left.{ }^{2}\right)$ |
| B. The running time to compute Fn using memoization | II. $\text{O (lg n)}$ |
| C. The running time to compute Fibonacci number $\text{Fn}$ using only integer addition and multiplication | III. $\text{O (n)}$ |
| D. The running time to determine an optimal bitonic tour | IV. $\Theta\left(\phi^{n}\right)$ |
$\begin{array}{lccr}\text { A. A-I } & \text { B-III } & \text { C-IV } & \text { D-II } \\ \text { B. A-IV } & \text { B-III } & \text { C-II } & \text { D-I } \\ \text { C. A-I } & \text { B-II } & \text { C-IV } & \text { D-III } \\ \text { D. A-IV } & \text { B-II } & \text { C-III } & \text { D-I }\end{array}$
- AThe running time of straight forward recursive method to compute nth Fibonacci number $\text{Fn}$ I. $O (n \left.{ }^{2}\right)$
- BThe running time to compute Fn using memoization II. $\text{O (lg n)}$Correct answer
- CThe running time to compute Fibonacci number $\text{Fn}$ using only integer addition and multiplication III. $\text{O (n)}$
- DThe running time to determine an optimal bitonic tour IV. $\Theta\left(\phi^{n}\right)$ $\begin{array}{lccr}\text { A. A-I } & \text { B-III } & \text { C-IV } & \text { D-II } \\ \text { B. A-IV } & \text { B-III } & \text { C-II } & \text { D-I } \\ \text { C. A-I } & \text { B-II } & \text { C-IV } & \text { D-III } \\ \text { D. A-IV } & \text { B-II } & \text { C-III } & \text { D-I }\end{array}$
Answer
(B) The running time to compute Fn using memoization II. $\text{O (lg n)}$
Approach
Match each algorithm with its known running time.
Reviewed by UGC IQ Editorial Team.