
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

DUE: Tuesday, 7 April 2008 Modified from Ian Parberry and William Gasarch, Problems in Algorithms ; Second Edition (2002), p. 8 (Section 2.1, Problem 5):
n j n n n 1 j^ j 3
This can be represented as the following recurrence: For n = 0, S(n) = 0 For n > 0, S(n) = S( n –1) + n ( n – 1 ) Note that
n n n S n
(1) Basis: S(0) = –1 · 0 · 1 / 3 = 0 / 3 = 0 Also, S(1) = 0 · 1 · 2 / 3 = 0 / 3 = 0 (2) Induction: Hint: You may find it convenient to drive your induction by assuming the formula for S( n –1 ) , and then proving S( n ).