Divide and Conquer

Master Theorem

Given any recurrence of the form $T(n) = a T(\frac{n}{b}) + c n^k$ for all $n > b$, we have:

Root Finding

Given a continuous function $f$ and two points $a < b$ such that $f(a) \cdot f(b) < 0$, there exists a root of $f$ in the interval $\lbrack a, b \rbrack$ by the intermediate value theorem. Since said root may be irrational, we aim to approximate it with an arbitrary precision $\epsilon$.

kth Smallest Element