Computer Science 501
Data Stuctures and Algorithm Analysis
Fall 2013, The College of Saint Rose
Agenda
Due at the start of class, Wednesday, October 2.
Please submit answers to these questions in Submission Box under "LA5" by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted. Please be sure that your name is clearly indicated in all submissions.
a. x(n)= x(n-1) + 6 for n > 1, x(1)= 0
b. x(n)= 2x(n-1) for n > 1, x(1)= 4
c. x(n)= x(n-1) + n for n > 0, x(0)= 0
d. x(n)= x(n/2) + n for n > 1, x(1)= 1 (solve for n=2k)
e. x(n)= x(n/3) + 2 for n > 1, x(1)= 1 (solve for n=3k)
Examples