What is the average case running time of an insertion sort algorithm?

What is the average case running time of an insertion sort algorithm?
A. O(N)
B. O(N log N)
C. O(log N)
D. O(N$^{2}$)
 
Answer: d
Explanation: The average case analysis of a tight bound algorithm is mathematically achieved to be O(N$^{2}$).
 

Tìm kiếm

Back
Top