lt; \frac{1}{1-\left( \frac{a}{b^{d}} \right)} \leq 1$. In case 2, the sum $=h$. In case 3, using [[Asymptotic Value of Partial Sum of Geometric Series]], sum $=\Theta\left( \left( \frac{a}{b^{d}} \right)^{h} \right)$. # Applications Generalisation: See https://www.cs.cornell.edu/courses/cs3110/2012sp/lectures/lec20-master/mm-proof.pdf. Consider a problem that can be solved by the following [[Divide & Conquer Algorithm]]: ```pseudo \begin{algorithm} \begin{algorithmic} \Procedure{p}{input $x$ of size $n$} \If{$n$ < some constant $k$} \State Solve $x$ directly without recusrion \Else \State Create $a$ subproblems of $x$, each having size $n/b$ \\ Call procedure $p$ recursively on each subproblem\\ Combine the results from the subproblems \EndIf \EndProcedure \end{algorithmic} \end{algorithm} ``` The runtime of an algorithm denoted $T(n)$ can be expresses as the [[Recurrence Relation]]: $T(n)=aT\left( \left \lceil \frac{n}{b} \right \rceil \right)+\Theta(n^{d})$ where $\Theta(n^{d})$ denotes the asymptotic cost of call and combination for a subproblems of size $n$. Consequences: See [[Merge Sort]]; See [[Binary Search]];