While learning Median of Medians algorithm i came across the following lemma ;
"For any recurrence of the form $T(n)<=T(an)+T(bn)+O(n) $,
if $(a+b)<1$ the reccurence will solve to $O(n)$"
(Which means $T(n)$ is bounded by $O(n)$ for some constant $ $ for any $ n>n_0$ )
So i was trying to prove it (since i could not find any proof) using Substitution Method :
(there might be a proof using Master's theroem but i didnt know how to use it here , and i would also like to see a proof using Substitution Method )
So i tried to prove by induction .
We can assume that for for any $n<N$ , $T(n)<=k_2*n $ for some constant $k_2$.
Assuming the statement is correct from $min(a*N ,b*N)$ since $(a+b)<1$
(i dont feel like the previous sentence is entirley correct , maybe i should assume that for any number smaller than n ? Plus , I think I have to assume that they are positive here ? )
$a*N$ and $b*N$ are less than N and thus , we can use the induction hypothesis ;
$$T(N)<=k_2aN+k_2bN+xN $$
(since were given $O(n)$ i assumed there exists a constant x for which the given function is bounded by)
We want
$$k_2aN+k_2bN+xN<=k_2N$$
=> $$k_2a+k_2b+x<=k_2$$
since $a+b<1$ then i can continue but i can't see how to finish the proof .
I think i have to assume by contradiction that $T(n)$ is not bounded by $O(n)$
but im not entirely sure what my assumptions are .
Trying to do so i stated that for any constant $$T(n)<=T(an)+T(bn)+O(n)>O(n) $$
but that dont seem like the right way..
I would appreciate any help , thanks.