Prefix Sums and Summed Area Tables
Prefix sums and summed area tables let you sum up regions of arrays or grids in constant time. If that sounds like it might not have many uses, that is another way of saying that it does discrete i…
The blog at the bottom of the sea