GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2021 set1

GATE 2021 set1 · CS · MCQ · 1 mark · Algorithms › Searching and Sorting

GATE 2021 set1 Computer Science and Information Technology question: Consider the following array. 23 32 45 69 72 73 89 97 --- --- --- --- --- --- --- ---…

Consider the following array.

23 32 45 69 72 73 89 97

Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort the above array in ascending order?

  1. (A)

    Selection sort

  2. (B)

    Mergesort

  3. (C)

    Insertion sort

  4. (D)

    Quicksort using the last element as pivot

Show answer

Official answer: C

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion