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 11–15 of 24

Q11GATE 20132 marksMCQ−0.67 if wrong
The number of elements that can be sorted in Θ(logn)\Theta (log n) time using heap sort is

Q12GATE 20131 markMCQ−0.33 if wrong
Which one of the following is the tightest upper bound that represents the number of swaps required to sort n numbers using selection sort?

Q13GATE 20122 marksMCQ−0.67 if wrong
A list of n strings, each of length n, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is

Q14GATE 20092 marksMCQ−0.67 if wrong
In quick sort, for sorting n elements, the (n/4)th smallest element is selected as pivot using an O(n) time algorithm. What is the worst case time complexity of the quick sort?

Q15GATE 20091 markMCQ−0.33 if wrong
What is the number of swaps required to sort n elements using selection sort, in the worst case?

Keep practising

Topics in Algorithms

All CS topics ›