Groups
Category
Level
A sparse matrix stores only its nonzero entries, saving huge amounts of memory when most entries are zero.
Matrix exponentiation turns repeated linear transitions into fast O(n^{3} log k) computation using exponentiation by squaring.