Maximum-Weight Two Boxes Symmetric Difference Problem
Abstract
Let P be a set of n points in the plane, where each element of P is assigned a weight ω(p), positive or negative. In this paper, we present an algorithm that runs in O(n4 n) time and O(n) space to find two possibly overlapping axis-aligned rectangles A and B so as to maximize the total weight of the points contained in the symmetric difference of A and B. The same optimization framework can easily be adapted to solve related problems such as to maximize the total weight in the symmetric difference of k ≥ 3 boxes and/or in the union of k ≥ 2 boxes.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.