Space-Efficient Approximations for Subset Sum

Author:

Gál Anna1,Jang Jing-Tang2,Limaye Nutan3,Mahajan Meena4,Sreenivasaiah Karteek5

Affiliation:

1. University of Texas at Austin, TX, USA

2. Google, Mountain View, CA, USA

3. IIT Bombay, Powai, Mumbai India

4. Institute of Mathematical Sciences, Chennai, India

5. Institute of Mathematical Sciences

Abstract

S ubset S um is a well-known NP-complete problem: given tZ + and a set S of m positive integers, output YES if and only if there is a subset S ′⊆ S such that the sum of all numbers in S ′ equals t . The problem and its search and optimization versions are known to be solvable in pseudopolynomial time in general. We develop a one-pass deterministic streaming algorithm that uses space O(log t / ε) and decides if some subset of the input stream adds up to a value in the range {(1 ± ϵ) t }. Using this algorithm, we design space-efficient fully polynomial-time approximation schemes (FPTAS) solving the search and optimization versions of S ubset S um . Our algorithms run in O(1 / ϵ m 2 ) time and O(1 / ϵ) space on unit-cost RAMs, where 1 + ϵ is the approximation factor. This implies constant space quadratic time FPTAS on unit-cost RAMs when ϵ is a constant. Previous FPTAS used space linear in m . In addition, we show that on certain inputs, when a solution is located within a short prefix of the input sequence, our algorithms may run in sublinear time. We apply our techniques to the problem of finding balanced separators, and we extend our results to some other variants of the more general knapsack problem. When the input numbers are encoded in unary, the decision version has been known to be in log space. We give streaming space lower and upper bounds for unary S ubset S um (USS). If the input length is N when the numbers are encoded in unary, we show that randomized s -pass streaming algorithms for exact S ubset S um need space Ω (√N/s) and give a simple deterministic two-pass streaming algorithm using O(√ N log N ) space. Finally, we formulate an encoding under which USS is monotone and show that the exact and approximate versions in this formulation have monotone O (log 2 t ) depth Boolean circuits. We also show that any circuit using ε-approximator gates for S ubset S um under this encoding needs Ω( n /log n ) gates to compute the disjointness function.

Funder

NSF

Publisher

Association for Computing Machinery (ACM)

Subject

Computational Theory and Mathematics,Theoretical Computer Science

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Knapsack problems — An overview of recent advances. Part I: Single knapsack problems;Computers & Operations Research;2022-07

2. ON BINARY SOLUTIONS TO SYSTEMS OF EQUATIONS;Prikladnaya Diskretnaya Matematika;2019-09-01

3. Binary Solutions to Some Systems of Linear Equations;Communications in Computer and Information Science;2018

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3