Matrix Exponentiation
Compute linear recurrences like Fibonacci in O(log n) by raising a transformation matrix to a power.
Found this helpful? Subscribe for new deep-dives every week.
Compute linear recurrences like Fibonacci in O(log n) by raising a transformation matrix to a power.
Found this helpful? Subscribe for new deep-dives every week.