Re: Points in rectangles



"Grigory Begelman" <gbegel@xxxxxxxxx> wrote:

>Is the problem known? Is there an efficient solution to it (better than
>O(N))?

Yes. A uniform grid, BSP, quadtree ..etc will all give you sublinear
performance (almost constant for uniform, ln for trees) at the expense
of varying memory usage. You can google/wiki these terms.

.