English

Maximum-Weight Two Boxes Symmetric Difference Problem

Computational Geometry 2026-05-22 v1

Abstract

Let PP be a set of nn points in the plane, where each element of PP is assigned a weight ω(p)\omega(p), positive or negative. In this paper, we present an algorithm that runs in O(n4logn)O(n^4\log n) time and O(n)O(n) space to find two possibly overlapping axis-aligned rectangles AA and BB so as to maximize the total weight of the points contained in the symmetric difference of AA and BB. The same optimization framework can easily be adapted to solve related problems such as to maximize the total weight in the symmetric difference of k3k \geq 3 boxes and/or in the union of k2k \geq 2 boxes.

Keywords

Cite

@article{arxiv.2605.22690,
  title  = {Maximum-Weight Two Boxes Symmetric Difference Problem},
  author = {José Fernández Goycoolea and Luis H. Herrera and Pablo Pérez Lantero and Carlos Seara},
  journal= {arXiv preprint arXiv:2605.22690},
  year   = {2026}
}