Understand WHY each case works through intuitive visualizations
The work done at the leaves of the recursion tree dominates everything else. Each level does more work than the one above it, growing exponentially until we hit the leaves.
At each level, the number of subproblems multiplies by a, while each problem shrinks by b. When a > bd (where f(n) = nd), the growth in subproblems outpaces the shrinking work per problem.
Every level of the tree does exactly the same amount of work! The work neither grows nor shrinks as we go down. Total = (work per level) ร (number of levels).
This is the Merge Sort case! At level k, we have ak problems,
each of size n/bk. The work at level k is:
ak ร (n/bk) = n ร (a/b)k = n ร 1k = n
The work done at the root dominates everything below. Each level does less work than the one above, shrinking so fast that the total is essentially just the root's work.
When f(n) grows faster than nlogba, the root's work is so massive that all the recursive work combined is just a constant factor of f(n).