Skip to main content

One doc tagged with "block decomposition"

View all tags

Sqrt Decomposition

Sqrt Decomposition is a technique that splits an array into blocks of size sqrt(n) to answer range queries and updates faster than brute force.