Vidyalelo
Data Structure · all questions

Sorting Algorithms
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

509

Questions

18/26

Page

Pick an option on a question to see the right answer and solution.

What is the recurrence relation for stooge sort?

Select an option to see the answer and solution.

Apply Quick sort on a given sequence 7 11 14 6 9 4 3 12. What is the sequence after first phase, pivot is first element?

Select an option to see the answer and solution.

What is the average case time complexity of cycle sort?

Select an option to see the answer and solution.

Which of the following sorting algorithm is in-place?

Select an option to see the answer and solution.

What is the worst case time complexity of odd-even sort?

Select an option to see the answer and solution.

The worst case running time of shell sort, using Shell's increments is?

Select an option to see the answer and solution.

Which of the following sorting algorithms can be considered as improvement to the binary tree sort?

Select an option to see the answer and solution.

Which of the following options contain the correct feature of an insertion sort algorithm?

Select an option to see the answer and solution.

What is the auxiliary space requirement of cycle sort?

Select an option to see the answer and solution.

Records R1, R2, R3,.. RN with keys K1, K2, K3,.. KN are said to be h-ordered, if . . . . . . . .

Select an option to see the answer and solution.

Shell sort algorithm is the first algorithm to break the quadratic time barrier.

Select an option to see the answer and solution.

What is the advantage of pigeonhole sort over merge sort?

Select an option to see the answer and solution.

Which of the following is a variant of insertion sort?

Select an option to see the answer and solution.

The given array is arr = {2, 6, 1}. What are the pivots that are returned as a result of subsequent partitioning?

Select an option to see the answer and solution.

What are the number of swaps required to sort the array arr={1, 2, 4, 3, 7, 5, 6} using recursive bubble sort?

Select an option to see the answer and solution.

Bucket sort is an in place sorting algorithm.

Select an option to see the answer and solution.

Strand sort algorithm used which of the following method for sorting a list?

Select an option to see the answer and solution.

MSD radix sort is an in place sorting algorithm.

Select an option to see the answer and solution.

What is the best time complexity of bucket sort (k= number of buckets)?

Select an option to see the answer and solution.

What is the advantage of selection sort over other sorting techniques?

Select an option to see the answer and solution.