Solve the following recurrence relations.
Please show your work.
a) x(n) = x(n − 1) + 4 for n > 0 where x(0) = 0. b) x(n)= = 2x(n − 1) for n > 0 where z(0) = 2. c) x(n) = x(n-1) + (n + 1) for n> 0 where x(0) = 1. d) x(n) = x(n/3) +n for n> 1 where x(1) = 1 (solve for n = 3k). e) x(n) = x(n/2) + 1 for n > 1 where x(1) = 1 (solve for n = 2k).
Solve the following recurrence relations. Please show your work.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am