question archive Proving upper bounds for recurrence relations
Subject:Computer SciencePrice:3.86 Bought7
Proving upper bounds for recurrence relations.
Prove the following statement using strong induction.
Define the sequence {an} as follows:
Prove that for all n ≥ 0, an≤23n
By strong induction we can make a conclusion that;
P(n) is true where, n>=0.
Step-by-step explanation
a0=a1=2,
an=(an-1)2 an-2, n>=2------(1)
let P(n) be an<=23n,n>=0.
Therefore;
P(0)= a0 = 2 <= 23(0) =21.
P(1)= a1 = 2 <= 23(1) =23 = 8.
Hence, P(0) and P(1) are true.
Then let P(0), P(1),-------P(k-1), P(k) be true.
This implies: ak-1 <= 23k-1, ak <= 23k
Thus; ak+1 = (ak)2 ak-1
<=(23k)2 * 23k-1
<=22(3k) * 23k-1
<=23k-1 (1+6)
<=23k-1 *7
<=23k-1 * 9.
As 7<= 9.
=23k-1.
Therefore; P(k+1) is true when P(i) is true.
where, i<=k.
Hence, by strong induction we can make a conclusion that;
P(n) is true where, n>=0.
That is an<= 23n where n>=0.