Algorithm Blog Post: Square Root Decomposition
blogarithms.github.io