Sorting: GATE CS Previous Year Questions

Sorting · Algorithms

24 questions · asked in 15 of 27 years (2000–2026)

MCQ 22 · NAT 21-mark 17 · 2-mark 7

2000Questions per year2026

Questions 16–20 of 24

Q16GATE 20082 marksMCQ−0.67 if wrong
If we use Radix Sort to sort n integers in the range (nk/2,nk)\left (n^{k/2}, n^k \right ), for some k>0 which is independent of n, the time taken would be?

Q17GATE 20082 marksMCQ−0.67 if wrong
Consider the Quicksort algorithm. Suppose there is a procedure for finding a pivot element which splits the list into two sub-lists each of which contains at least one-fifth of the elements. Let T(n) be the number of comparisons required to sort n elements. Then

Q18GATE 20071 markMCQ−0.33 if wrong
Which of the following sorting algorithms has the lowest worst-case complexity?

Q19GATE 20061 markMCQ−0.33 if wrong
The median of n elements can be found in O(n) time. Which one of the following is correct about the complexity of quick sort, in which median is selected as pivot?

Q20GATE 20061 markMCQ−0.33 if wrong
Which one the following in place sorting algorithms needs the minimum number of swaps?

Keep practising

Topics in Algorithms

All CS topics ›