Efficient reductions and algorithms for variants of Subset Sum

Pranjal Dutta, Mahesh Sreekumar RajasreearXiv 2021

TL;DR

This paper presents novel, efficient algorithms for several variants of the Subset Sum problem, focusing on both time and space complexity. The authors introduce new reductions and techniques, including multivariate FFT and power series, to achieve near-optimal performance for problems like finding all solutions with a bounded number of occurrences or their Hamming weights, and solving the Subset Product problem.

What Problem Does This Paper Address?

The Subset Sum problem (SSUM) is a classic NP-complete problem: given a set of integers and a target sum, determine if any subset of the integers sums to the target. While the decision version is well-studied, this paper delves into search variants, aiming to find all solutions or specific properties of solutions. The authors also tackle the related Subset Product problem, which asks if a subset's product equals a target.

Key challenges addressed include:

  • Finding all solutions: The number of solutions can be exponential, making naive approaches infeasible.
  • Parameterizing by solution count (k): Developing algorithms whose efficiency depends on a bound k on the number of solutions.
  • Hamming weight: Finding solutions with a specific number of elements (Hamming weight).
  • Subset Product: Developing efficient algorithms for this related but distinct problem.
  • Space efficiency: Achieving low-memory algorithms for these problems.

Methods

The paper employs a combination of advanced techniques:

  • Reductions: Establishing polynomial-time reductions between different variants of Subset Sum and Subset Product. This allows leveraging algorithms for one problem to solve another.
  • Parameterized Algorithms: Developing algorithms whose complexity depends on a parameter k (e.g., the number of solutions).
  • Multivariate Polynomials and FFT: Using the Fast Fourier Transform (FFT) for efficient polynomial multiplication and evaluation, particularly for multivariate polynomials. This is a core technique for extracting information about solutions.
  • Power Series and Generating Functions: Employing power series expansions (like ln(1+x) and exp(x)) and their properties to encode problem instances and extract solution information.
  • Number-Theoretic Techniques: Utilizing concepts like primitive roots, finite fields, and modular arithmetic to design deterministic algorithms.
  • Isolation Lemma: A probabilistic lemma used in hardness proofs to isolate a unique solution.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • NP-hardness of Unique Subset Sum: The paper shows that even the problem of finding a unique solution to Subset Sum is NP-hard under randomized reduction. This highlights the inherent difficulty and motivates parameterized approaches.
  • Power of Polynomials for Solution Encoding: The core idea is to construct polynomials where coefficients or roots encode information about subset solutions. For example, coefficients of x^t in a carefully constructed polynomial can reveal the number of solutions or their properties.
  • Bridging Subset Sum and Subset Product: The paper establishes a crucial reduction from Subset Product to a variant of Subset Sum (SimulSubsetSum), enabling efficient algorithms for Subset Product by leveraging Subset Sum techniques.
  • Space Efficiency via Polynomial Interpolation: For space-efficient algorithms, the authors use sparse polynomial interpolation techniques to reconstruct solution polynomials without storing the entire instance, achieving logarithmic space complexity.

Key Results

  • Hamming – k – SSSUM: A deterministic algorithm running in Õ(k(n + t)) time.
  • Subset Product: A randomized algorithm with Õ(n + t^o(1)) expected time.
  • k – SSSUM (Low Space): A deterministic algorithm with poly(knt) time and O(log(knt)) space.
  • Subset Product (Low Space): A deterministic algorithm with poly(nt) time and O(log²(nt)) space.
  • Reductions: Polynomial-time deterministic reductions are provided from Subset Product to SimulSubsetSum, and between various Subset Sum variants.
  • Unbounded Variants: Extensions of algorithms for k-bounded variants to their unbounded counterparts (UBSSUM).

Limitations and Future Work

  • Time Complexity of Interpolation: The authors note that the cubic complexity of polynomial interpolation limits the time complexity of their k-SSSUM algorithm. They pose whether non-algebraic techniques could improve this while maintaining low space.
  • Deterministic SSUM Decision: A question is raised about using their algebraic techniques to achieve a deterministic Õ(n + t) algorithm for the decision version of SSUM.
  • Hamming Weights and Multiplicities: Can the Õ(k(n + t)) algorithm for Hamming-k-SSSUM be improved to also find multiplicities of weights?
  • SimulSubsetSum Hardness: The hardness of SimulSubsetSum for k = ω(log n) instances remains an open question.
  • Set Cover Conjecture Connection: A speculative question is posed about whether the Set Cover Conjecture implies limitations on Subset Product algorithms.

Summary updated

BibTeX
@misc{dutta2021efficient,
  author = {Pranjal Dutta and Mahesh Sreekumar Rajasree},
  title = {{Efficient reductions and algorithms for variants of Subset Sum}},
  year = {2021},
  eprint = {2112.11020},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.11020},
}
Figure