1/27/2003
CS2 Week 7
78
Sorting: Analysis
•Insert (i+1)th  item:  ~ i  comparisons
Example:
Insert: 1, 3, 7, 9, 11, 15
•Worst Case:  O(n2)