All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · 22 June 2026

Match List - I with List - II.
List - IList - II
A. Merge sortI. n²
B. Binary searchII. nlogn
C. Quick sortIII. n
D. Search in an unsorted arrayIV. logn
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. A-II, B-IV, C-I, D-III

Explanation

Merge sort has O(n log n) time complexity in all cases, giving A-II. Binary search on a sorted array takes O(log n) comparisons, giving B-IV. Quick sort's worst-case time complexity (e.g. an already sorted input with a poor pivot choice) is O(n²), giving C-I. A sequential search through an unsorted array requires O(n) comparisons in the worst case, giving D-III. So the correct match is A-II, B-IV, C-I, D-III.

More Data Structures and Algorithms questions