returning to
recurrence for isort
T
isort
(0) => 0;
T
isort
(N) => T
isort
(N-1) + T
insert
(N-1);
<
T
isort
(N-1) + cN
Solving
T
isort
(N) = c(1+2+ É + N)
O(n
2
) steps