Improved Space-Time Tradeoffs for kSUM

07/10/2018
by   Isaac Goldstein, et al.
0

In the kSUM problem we are given an array of numbers a_1,a_2,...,a_n and we are required to determine if there are k different elements in this array such that their sum is 0. This problem is a parameterized version of the well-studied SUBSET-SUM problem, and a special case is the 3SUM problem that is extensively used for proving conditional hardness. Several works investigated the interplay between time and space in the context of SUBSET-SUM. Recently, improved time-space tradeoffs were proven for kSUM using both randomized and deterministic algorithms. In this paper we obtain an improvement over the best known results for the time-space tradeoff for kSUM. A major ingredient in achieving these results is a general self-reduction from kSUM to mSUM where m<k, and several useful observations that enable this reduction and its implications. The main results we prove in this paper include the following: (i) The best known Las Vegas solution to kSUM running in approximately O(n^k-δ√(2k)) time and using O(n^δ) space, for 0 ≤δ≤ 1. (ii) The best known deterministic solution to kSUM running in approximately O(n^k-δ√(k)) time and using O(n^δ) space, for 0 ≤δ≤ 1. (iii) A space-time tradeoff for solving kSUM using O(n^δ) space, for δ>1. (iv) An algorithm for 6SUM running in O(n^4) time using just O(n^2/3) space. (v) A solution to 3SUM on random input using O(n^2) time and O(n^1/3) space, under the assumption of a random read-only access to random bits.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/07/2020

Fast Low-Space Algorithms for Subset Sum

We consider the canonical Subset Sum problem: given a list of positive i...
research
02/13/2013

Topological Parameters for Time-Space Tradeoff

In this paper we propose a family of algorithms combining tree-clusterin...
research
11/30/2022

(No) Quantum space-time tradeoff for USTCON

Undirected st-connectivity is important both for its applications in net...
research
04/19/2019

Data Races and the Discrete Resource-time Tradeoff Problem with Resource Reuse over Paths

A determinacy race occurs if two or more logically parallel instructions...
research
02/03/2019

Knapsack Problem With Cardinality Constraint: A Faster FPTAS Through the Lens of Numerical Analysis and Applications

We study the K-item knapsack problem (, 1.5-dimensional knapsack problem...
research
10/14/2022

Time-Space Tradeoffs for Element Distinctness and Set Intersection via Pseudorandomness

In the Element Distinctness problem, one is given an array a_1,…, a_n of...
research
05/24/2021

Efficient Reporting of Top-k Subset Sums

The "Subset Sum problem" is a very well-known NP-complete problem. In th...

Please sign up or login with your details

Forgot password? Click here to reset