QUICK REVIEW
[Paper Review] Unary Subset-Sum is in Logspace
Daniel M. Kane|arXiv (Cornell University)|Dec 6, 2010
TL;DR
This paper presents a logspace algorithm for the Unary Subset-Sum problem, leveraging generating functions and modular arithmetic over large primes to determine subset existence. It proves Unary Subset-Sum is in L (logspace), resolving a long-standing open problem, and extends to vector-valued inputs and approximate counting via the Chinese Remainder Theorem.
ABSTRACT
We present a simple Logspace algorithm that solves the Unary Subset-Sum problem.
Motivation & Objective
- To resolve the open problem of whether Unary Subset-Sum is in L (logspace), a fundamental question in small-space complexity.
- To provide a simple, implementable algorithm in TC⁰ that solves Unary Subset-Sum using modular arithmetic and generating functions.
- To extend the algorithm to compute congruential information about the number of solutions and support vector-valued inputs.
- To enable approximate counting and randomized sampling of solutions using logspace techniques.
Proposed method
- The algorithm uses the generating function ∏(1 + x^{m_i}) to encode subset sums and evaluates it modulo primes p > C to detect non-zero solution counts.
- It checks for solutions by testing whether ∑_{x=1}^{p-1} x^{-B} ∏(1 + x^{m_i}) ≢ 0 mod p for any prime p > C.
- The correctness relies on the identity that this sum ≡ -A mod p, where A is the number of subsets summing to B, and A ≢ 0 iff a solution exists.
- Primality testing and NextPrime computation are performed in logspace via trial division, ensuring the entire algorithm runs in logspace.
- For vector-valued inputs, the problem is reduced to unary subset-sum via base-C encoding of vectors into integers.
- Approximate counting is achieved by combining results modulo multiple primes using the Chinese Remainder Theorem to compute A mod N with logarithmic precision.
Experimental results
Research questions
- RQ1Is Unary Subset-Sum in L, the class of problems solvable in logarithmic space?
- RQ2Can a simple, efficient algorithm be constructed for Unary Subset-Sum using modular arithmetic and generating functions?
- RQ3Can the algorithm be extended to count solutions modulo m or compute approximate solution counts in logspace?
- RQ4Can the method be generalized to vector-valued subset-sum problems and related problems like 0-1 Knapsack?
Key findings
- Unary Subset-Sum is in L, resolving a long-standing open problem in computational complexity.
- The algorithm runs in logspace and is also in TC⁰, demonstrating low uniform circuit complexity.
- The number of solutions A modulo p can be computed in logspace for any prime p > C, using the sum identity ∑_{x=1}^{p-1} x^{-B} ∏(1 + x^{m_i}) ≡ -A mod p.
- By combining results over multiple primes, the algorithm computes A mod N with logarithmic precision, enabling approximate counting.
- The method generalizes to k-dimensional vector-valued inputs, solving such problems in O(k log C) space and C^{O(k)} time.
- The algorithm enables randomized logspace sampling from the solution space by estimating solution proportions dynamically.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.