Question: S ( n ) = 3 S ( n - 1 ) + 2 , S ( 1 ) = 2 ( a ) Draw

S(n)=3S(n-1)+2,S(1)=2
(a) Draw a recursion tree for S(n). Include the recursive terms for the nodes in a few levels, and also show what the total non-recursive term amounts to for each of those levels. State what the depth of the tree is, and explain how you determined this.
Provide a convincing argument that S(n)=\Theta (g(n)), for some simple function g(n).
(b) Use induction to prove that S(n)=O(g(n)), for the same g(n) as in part (a).
 S(n)=3S(n-1)+2,S(1)=2 (a) Draw a recursion tree for S(n). Include the recursive

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!