Solve the following recurrence relations. Please show your work.
Posted: Mon Jun 06, 2022 1:25 pm
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).
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).