Maximize area in $1000\times 1000$ array using two non-overlapping squares centered at two points, p1 and p2. The following conditions must be met:
- The area (square 1 area + square 2 area) should be a maximum for the given points, p1 and p2
- The squares must be centered on their respective point (i.e. must have area $n^2$, where n is odd)
- The squares cannot overlap
- The squares must remain within the $1000\times 1000$ grid
Note: The squares do not need to be the same size.
I solved the equivalent 1D case, but the 2D case seems quite a bit more challenging. Has anyone solved this before, or have any suggestions/ideas for solving such a problem?
This is my first post on here, so let me know if I'm doing it wrong... Thanks!