A Faster Algorithm for Pigeonhole Equal Sums
Abstract
An important area of research in exact algorithms is to solve Subset-Sum-type problems faster than meet-in-middle. In this paper we study Pigeonhole Equal Sums, a total search problem proposed by Papadimitriou (1994): given n positive integers w1,…,wn of total sum Σi=1n wi < 2n-1, the task is to find two distinct subsets A, B ⊂eq [n] such that Σi∈ Awi=Σi∈ Bwi. Similar to the status of the Subset Sum problem, the best known algorithm for Pigeonhole Equal Sums runs in O*(2n/2) time, via either meet-in-middle or dynamic programming (Allcock, Hamoudi, Joux, Klingelh\"ofer, and Santha, 2022). Our main result is an improved algorithm for Pigeonhole Equal Sums in O*(20.4n) time. We also give a polynomial-space algorithm in O*(20.75n) time. Unlike many previous works in this area, our approach does not use the representation method, but rather exploits a simple structural characterization of input instances with few solutions.
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.