I have a set of rectangles of various sizes in a 2D space. The number of rectangles can change dynamically from 10 to 100,000, their position, as well as their size, are often updated.
What spatial structure would you suggest finding a rectangle at a given point (x, y)? Assuming that the search operation is also performed very often (for example, when moving the mouse). If you could give a link to various spatial indexing algorithms or compare their search / build / update results here - that would be great.
source share