Consider the recurrence:
T(n) = 1 if n = 1
1 + T( ceiling(n/2) ) if n > 1
Use complete induction to prove that for every positive natural number n,
T(n) >= c lg(n), for some positive real constant c.
So the problem was deciding whether to include the information about c when defining the predicate.
At last we defined , P(n, c) : T(n) >= c lg(n)
So we went on proving, for all positive natural number n and some positive real constant c, P(n) is true.
The interesting part for me was when we came to choose the value of c that will work for any n in P(n).
The followed up quiz was the exact same type of question but was asked to prove using Mathematical Induction instead.
But, the TA then told us to prove it just using the Complete Induction as in the above example.
I'm still thinking a way of proving this using just Mathematical Induction ( on process ) .
I'm kinda beginning to like the course more now a days. Hope it lasts till the final exam :)
0 comments:
Post a Comment