Sorting Algorithms - Study Mode

[#156] Which of the following algorithm is best suited for the case where swap operation is expensive?
Correct Answer

(B) cycle sort

[#157] What is the space complexity of pigeonhole sort (k=range of input)?
Correct Answer

(D) O(n+k)

[#158] Bottom up merge sort is a stable sort.
Correct Answer

(A) true

[#159] What is the average case time complexity of odd-even sort?
Correct Answer

(C) O(n 2 )

[#160] Which of the following sorting algorithm does not use recursion?
Correct Answer

(A) bottom up merge sort