Question 84Asked in BEL PE Computer Science, 17 Dec 2023 (8:30 AM)

Match the following algorithm with its average complexity. Algorithm: I. Binary search; II. Quick sort; III. Linear search; IV. Selection sort

Match the following algorithm with its average complexity. Algorithm: I. Binary search; II. Quick sort; III. Linear search; IV. Selection sort Average Complexity: 1. O(n²); 2. O(log n); 3. O(n log n); 4. O(n)
  1. AI – 2; II – 3; III – 4; IV – 1
  2. BI – 4; II – 3; III – 2; IV – 1
  3. CI – 1; II – 4; III – 2; IV – 3
  4. DI – 3; II – 1; III – 2; IV – 4
Show answerHide answer

Correct answer: (A) I – 2; II – 3; III – 4; IV – 1

From BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM)

This is question 84 of BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.