Quick Navigation

Topics

Quantum Simulation

Classical and Quantum Algorithms for Variants of Subset-Sum via Dynamic Programming

arXiv
Authors: Jonathan Allcock, Yassine Hamoudi, Antoine Joux, Felix Klingelhöfer, Miklos Santha

Year

2021

Paper ID

6869

Status

Preprint

Abstract Read

~2 min

Abstract Words

291

Citations

N/A

Abstract

Subset-Sum is an NP-complete problem where one must decide if a multiset of n integers contains a subset whose elements sum to a target value m. The best-known classical and quantum algorithms run in time {O}\(2n/2\) and {O}\(2n/3\), respectively, based on the well-known meet-in-the-middle technique. Here we introduce a novel classical dynamic-programming-based data structure with applications to Subset-Sum and a number of variants, including Equal-Sums (where one seeks two disjoint subsets with the same sum), 2-Subset-Sum (a relaxed version of Subset-Sum where each item in the input set can be used twice in the summation), and Shifted-Sums, a generalization of both of these variants, where one seeks two disjoint subsets whose sums differ by some specified value. Given any modulus p, our data structure can be constructed in time O\(n2p\), after which queries can be made in time O\(n2\) to the lists of subsets summing to any value modulo p. We use this data structure in combination with variable-time amplitude amplification and a new quantum pair finding algorithm, extending the quantum claw finding algorithm to the multiple solutions case, to give an O\(20.504n\) quantum algorithm for Shifted-Sums, an improvement on the best-known O\(20.773n\) classical running time. Incidentally, we obtain new {O}\(2n/2\) and {O}\(2n/3\) classical and quantum algorithms for Subset-Sum, not based on the seminal meet-in-the-middle method. We also study Pigeonhole Equal-Sums and Pigeonhole Modular Equal-Sums, where the existence of a solution is guaranteed by the pigeonhole principle. For the former problem, we give faster classical and quantum algorithms with running time {O}\(2n/2\) and {O}\(22n/5\), respectively. For the more general modular problem, we give a classical algorithm that also runs in time {O}\(2n/2\).

Why This Paper Matters

  • This paper contributes to the Quantum Simulation research area in the Quantum Articles archive.
  • It adds a 2021 reference point for readers tracking recent quantum research.
  • Subset-Sum is an NP-complete problem where one must decide if a multiset of n integers contains a subset whose elements sum to a target value m.

Paper Tools

Become a member to use research tools

Sign in to open papers, visit source links, share, cite, compare, copy DOI links, request category corrections, and build your reading list.

Show Paper arXiv Publisher Share Cite This Paper Copy URL Compare Copy DOI Add to Reading List Category Correction Request

References & Citation Signals

Local Citation Graph (Related-Paper Links)

Current Paper #6869 #69978 Distribution Complexity of Elec... #69974 Hierarchical separation of rela... #69964 Bounded-depth spacetime lattice... #69945 Phase Stable Integrated Delay L...

External citation index: OpenAlex citation signal

Community Reactions

Quick sentiment from readers on this paper.

Score: 0
Likes: 0 Dislikes: 0

Sign in to react to this paper.

Discussion & Reviews (Moderated)

Average Rating: 0.0 / 5 (0 ratings)

No written reviews yet.