Imagine scattering a handful of nails on a table and then asking: what is the largest rectangular tray you can slide onto the table without hitting any nail? The tray must be axis-aligned — no tilting — but its position and size are yours to choose.
This is the Largest Empty Rectangle (LER) problem. Given n points in the plane, find the axis-aligned rectangle of maximum area that contains none of them, yet fits inside some bounding box.
It sounds like a simple visual exercise, but a naive search over all possible rectangles is enormous. What makes the problem interesting — and useful — is that the answer can be found in time, a fact that takes genuine algorithmic insight to achieve.
From page layout and ad placement to gap detection in sensor data, the largest empty rectangle quietly powers dozens of real systems. And its proof technique — the histogram sweep — is one of the most elegant tools in computational geometry.
Comments
Loading comments...