9to5
Science
Topics
Calculators
Search
About
Home
/
Computer Science
Tag
average case analysis
Insertion Sort Average Case – Comparisons, Shifts and Θ(n²)
Derivation of insertion sort's average case on a random permutation, about n²/4 comparisons and shifts, with the exact formula (n² + 3n)/4 − Hₙ.