This is n=2 case of the question I asked.
Minimum length of n-dimensional cubes to cover k points
let's assume that we have k points
(a11, a12)
(a21, a22)
.
.
(ak1, ak2)
and we're allowed to use x number of squares to cover those points
(if the points are on the square, like they are on side or vertice of the square, or inside the square, then we consider the point to be covered by the square).
If k and x are fixed, and all squares must have the same side length, can we figure out what would be the minimum side length of squares, so that they cover all the points? Squares can overlap, and they must be parallel to the coordinate axes.
For instance, let's k=5, x=2, and the points are (2, 0), (0, 4), (2, 2), (3, 2), (0, 8), then the minimum side length of the squares should be 4, and the square with vertices (0, 0), (0, 4), (4, 0), (4, 4) and one with vertices (4, 0), (4, 4), (8, 4), (8, 0) would cover all the points
I was wondering if there was a well-known algorithm or easy way to do it, and if possible, generalize it to n-dimensional case.