Sorting Algorithms - Study Mode
[#56] How many iterations are required to sort the array arr={2, 3, 4, 5, 1} using bubble sort and cocktail sort respectively?
Correct Answer
(A) 4,2
[#57] Which of the following is a non-comparison sort?
Correct Answer
(D) pigeonhole sort
[#58] How many sub arrays does the quick sort algorithm divide the entire array into?
Correct Answer
(B) two
[#59] What is the general form of Shell's increments?
Correct Answer
(B) 1,3,7,....,2k-1
[#60] What is the worst case time complexity of the Quick sort?
Correct Answer
(D) O(n 2 )