What is the auxiliary space complexity of binary insertion sort?

Ngân Lam

New member
What is the auxiliary space complexity of binary insertion sort?
A. O(n)
B. O(1)
C. O(n log n)
D. O(n$^{2}$)
 
Answer: b
Explanation: The auxiliary space required by a binary insertion sort is O(1). So it qualifies as an in place sorting algorithm.
 

Tìm kiếm

Back
Top