#blocking
Wiki
›
Algorithms
›
02. Data Structures
›
1. Core Data Structures and Operations
›
1.1 Arrays and Dynamic Arrays
›
Blocking
Array Blocking Array blocking divides an array into contiguous chunks and processes one chunk at a time. This can improve cache locality because nearby elements are reused before moving to the next block. You use it when large arrays exceed cache capacity or when work should be processed in batches. Problem Given an array $A$ of length $n$ and a block size $b$, process the array in ranges: $$ [0,...