Given a set of N-dimensional integer points how do I find the smallest set of N-dimensional cuboids (rectangles in the 2-d case), such that an integer point is in the set of integer points if and only if it's contained in one or more of the cuboids/rectangles. Integer point means a point with integer coordinates.
e.g. given the points (1,0), (2, 0) and (3,1), (4,1) the smallest set of rectangles is (1,0-2,0),(3,1-4,1), see diagram below:
2 ..... 1 ...## 0 .##.. 01234
Obviously I could do a brute force search, but I'm looking for a more efficient algorithm, even if it still has high complexity.