Next:
Up:
Previous:
Analysis
Best Case:
Array already sorted,
t
j
= 1 for all
j
Worst Case:
Array in reverse order,
t
j
=
j
for all
j
Note that
Average Case:
Check half of array on average,
t
j
= j/2 for all
j
T
(
n
) =
an
2
+
bn
+
c
Next:
Up:
Previous: