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

23/26

Page

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

Consider the Quick sort algorithm in which the partitioning procedure splits elements into two sub-arrays and each sub-array contains at least one-fourth of the elements. Let T(n) be the number of comparisons required to sort array of n elements. Then T(n)<=?

Select an option to see the answer and solution.

What is the time complexity for a given pancake sort given it undergoes "n" flip operations?

Select an option to see the answer and solution.

What is the average time complexity of counting sort?

Select an option to see the answer and solution.

What is the best case time complexity of cocktail sort?

Select an option to see the answer and solution.

What is the best case time complexity of permutation sort?

Select an option to see the answer and solution.

What is the alternate name of bucket sort?

Select an option to see the answer and solution.

What is the worst case time complexity of tree sort (when implemented with a balanced tree)?

Select an option to see the answer and solution.

What is the worst case time complexity of the binary tree sort?

Select an option to see the answer and solution.

Which of the following sorting algorithms is the fastest?

Select an option to see the answer and solution.

In addition to the pancake sorting problem, there is the case of the burnt pancake problem in which we are dealing with pancakes (discs) that are burnt on one side only. In this case it is taken that the burnt side must always end up . . . . . . . .

Select an option to see the answer and solution.

What is the time taken to perform a delete min operation?

Select an option to see the answer and solution.

Which of the following uses the largest amount of auxiliary space for sorting?

Select an option to see the answer and solution.

Which of the following is an in-place sorting algorithm?

Select an option to see the answer and solution.

What is the average case time complexity of standard merge sort?

Select an option to see the answer and solution.

What is the average case time complexity of binary insertion sort?

Select an option to see the answer and solution.

What is the best case time complexity of comb sort and bubble sort respectively?

Select an option to see the answer and solution.

Merge sort uses which of the following method to implement sorting?

Select an option to see the answer and solution.

The worst case time complexity of tree sort remains unaffected when implemented with an unbalanced tree or a balanced tree.

Select an option to see the answer and solution.

Library sort is an online sorting algorithm.

Select an option to see the answer and solution.

Sleep sort should be preferred over bogosort as it has better time complexity.

Select an option to see the answer and solution.