Problem 1
Problem 2
n3 = n(3) + a n(2) + b n + c
Problem 3
&Sigma0≤i≤n i3
Problem 4
Σ h/2h = 2
Problem 5
Σ h(2)/2h
Definition:
n(2) = n(n-1) n(3) = n(n-1)(n-2)
Problem 6
The i smallest elements of the array are now in locations a[0], ..., a[i-1] in sorted order
Show where the loop invariant is asserted and argue why the loop invariant is true when asserted. Argue why the loop must terminate and why on termination the loop invariant implies the entire array is properly sorted.
People taking the practicum: program your algorithm.
Problem 7
The first i elements of the array are now sorted order.