We got the following tasks in our Higher Algorithm class, to repeat our proof techniques from class:
- Find asymptotic upper bounds (as sharp as possible) for $T(n)$ in each of the following cases,
using your favorite method.
You may assume that $T(n) < 10$ for all $0 ≤ n ≤ 5$.
Where me and my colleague got stuck specifically are the following functions:
D) $T(n) = T(n − 1) + 1/n$
E) $T(n) = T(3n/4) + T(n/4) + n$
In the lecture we learned three methods to proof the recurrences:
- Direct method (just expand until you see f.e. a sum for which you know the growth rate
- Master theorem
- Induction
Specifically for Induction we got told to start expanding our T(n) so we can see patterns and make a good guess for the induction claim.
In D) we noticed that the function generated the harmonic partial sum.
And for E) we noticed that the recurrence generated the values of the pascal triangle, so basically the binomial coefficients.
Our issue is that we are not really sure, how to use those insights to make a good guess for the induction.
I checked the following answer Median of Medians Time Complexity but was unable to replicate the procedure, as no matter what I plugged in, I would not get my induction guess as a result to finish the proof..
As we need to write an exam at the end of the semster, help in understanding rather than straight up solutions are much appreciated! :-)