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

Match List I with List II
List IList II
A. Insertion SortI. O(log n)
B. Binary SearchII. O(n²)
C. Quick SortIII. O(n)
D. Selection SortIV. O(n log n)

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

Show answer & explanation

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

Explanation

Insertion sort runs in O(n) in the best case (A-III). Binary search is O(log n) (B-I). Quick sort averages O(n log n) (C-IV). Selection sort is always O(n²) (D-II).

More Data Structures and Algorithms questions