Faster space-efficient algorithms for subset sum and k-sum

N. Bansal, S. Garg, J. Nederlof, N. Vyas

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

14 Citations (Scopus)

Abstract

We present randomized algorithms that solve Subset Sum and Knapsack instances with n items in O (2 0.86n) time, where the O (·) notation suppresses factors polynomial in the input size, and polynomial space, assuming random read-only access to exponentially many random bits. These results can be extended to solve Binary Linear Programming on n variables with few constraints in a similar running time. We also show that for any constant k ≥ 2, random instances of k-Sum can be solved using O(n k-0.5polylog(n)) time and O(log n) space, without the assumption of random access to random bits. Underlying these results is an algorithm that determines whether two given lists of length n with integers bounded by a polynomial in n share a common value. Assuming random read-only access to random bits, we show that this problem can be solved using O(log n) space significantly faster than the trivial O(n 2) time algorithm if no value occurs too often in the same list.

Original languageEnglish
Title of host publicationProceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing
EditorsPierre McKenzie, Valerie King, Hamed Hatami
Place of PublicationNew York
PublisherAssociation for Computing Machinery, Inc.
Pages198-209
Number of pages12
ISBN (Electronic)9781450345286
ISBN (Print)978-1-4503-4528-6
DOIs
Publication statusPublished - 19 Jun 2017
Event49th Annual ACM SIGACT Symposium on Theory of Computing - Montreal, Canada
Duration: 19 Jun 201723 Jun 2017

Conference

Conference49th Annual ACM SIGACT Symposium on Theory of Computing
Country/TerritoryCanada
Period19/06/1723/06/17

Keywords

  • Algorithms

Fingerprint

Dive into the research topics of 'Faster space-efficient algorithms for subset sum and k-sum'. Together they form a unique fingerprint.

Cite this