edited by
1 flag 397 views
1 1 vote

Match the LIST-I with LIST-II

$\begin{array}{|l|l|l|l|} \hline & \textbf{LIST-I}  & & \textbf{LIST-II} \\ 
& \textbf{Algorithm} & & \textbf{Complexity} \\ \hline  \text{A.} & \text{Insertion Sort} & \text{I.} & \mathrm{O}(\log \mathrm{n}) \\ \hline \text{B.} & \text{Binary Search} & \text{II.} &  \mathrm{O}\left(\mathrm{n}^{2}\right) \\ \hline \text{C.} & \text{Quick Sort} & \text{III.} & \mathrm{O}(\mathrm{n}-1)  \\ \hline \text{D.} & \text{Selection Sort} & \text{IV.} & \mathrm{O}(\mathrm{n} \log \mathrm{n}) \\ \hline \end{array}$

Choose the correct answer from the options given below:

  1. $\text{A-III, B-I, C-IV, D-II}$
  2. $\text{A-II, B-III, C-I, D-IV}$
  3. $\text{A-I, B-II, C-IV, D-III}$
  4. $\text{A-II, B-III, C-IV, D-I}$
  • 🚩 Edit necessary | 👮 m_a_h_a_d_e_v | 💬 “Option C is different in question compared to the answer given .”

1 Answer

0 0 votes

The correct answer is (C) A-II, B-I, C-IV, D-III.


Insertion Sort has a time complexity of O(n²) because in the worst case (when the array is in reverse order), every element must be compared and shifted for each insertion. Binary Search runs in O(log n) since it repeatedly divides the search interval in half. Quick Sort, on average, performs in O(n log n) as it partitions the array around a pivot and recursively sorts the subarrays. Selection Sort takes O(n – 1) passes, because it finds the minimum element and places it in the correct position during each iteration. Therefore, the correct matching is A-II, B-I, C-IV, D-III.

Answer:
Position:
Show:

Related questions

2 2 votes
1 1 answer
374
374 views
Shubham Sharma 2 asked Sep 10, 2025
374 views
Which of the following is not a divide and conquer methodBinary SearchMerge SortQuick SortHeap Sort
1 1 vote
2 2 answers
371
371 views
Shubham Sharma 2 asked Sep 10, 2025
371 views
Which of the following is the solution of the following recurrence relation $\mathrm{T}( \mathrm{n})=\mathrm{T}(2 \mathrm{n} / 3)+1$?$\theta\left(n^{2}\right)$$\theta\lef...
2 2 votes
1 1 answer
348
348 views
Shubham Sharma 2 asked Sep 10, 2025
348 views
Arrange the following steps of the Inorder Traversal of Binary Tree in the correct order.Visit the Left subtreeVisit the Root nodeVisit the Right subtreeStart traversing ...
2 2 votes
2 2 answers
164
164 views
Shubham Sharma 2 asked Apr 19
164 views
Which of the following is correct order of increasing time complexity of algorithmsTower of Hanoi with $n$ disk.Binary search given $n$ sorted numbers.Heap sort given $n$...