English

A Faster Algorithm for Pigeonhole Equal Sums

Data Structures and Algorithms 2024-03-29 v1

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 nn positive integers w1,,wnw_1,\dots,w_n of total sum i=1nwi<2n1\sum_{i=1}^n w_i < 2^n-1, the task is to find two distinct subsets A,B[n]A, B \subseteq [n] such that iAwi=iBwi\sum_{i\in A}w_i=\sum_{i\in B}w_i. Similar to the status of the Subset Sum problem, the best known algorithm for Pigeonhole Equal Sums runs in O(2n/2)O^*(2^{n/2}) time, via either meet-in-middle or dynamic programming (Allcock, Hamoudi, Joux, Klingelh\"{o}fer, and Santha, 2022). Our main result is an improved algorithm for Pigeonhole Equal Sums in O(20.4n)O^*(2^{0.4n}) time. We also give a polynomial-space algorithm in O(20.75n)O^*(2^{0.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.

Keywords

Cite

@article{arxiv.2403.19117,
  title  = {A Faster Algorithm for Pigeonhole Equal Sums},
  author = {Ce Jin and Hongxun Wu},
  journal= {arXiv preprint arXiv:2403.19117},
  year   = {2024}
}

Comments

11 pages

R2 v1 2026-06-28T15:36:35.973Z