Papers
Topics
Authors
Recent
Search
2000 character limit reached

Dynamic Subset Sum with Truly Sublinear Processing Time

Published 11 Sep 2022 in cs.DS | (2209.04936v1)

Abstract: Subset sum is a very old and fundamental problem in theoretical computer science. In this problem, nn items with weights w1,w2,w3,…,wnw_1, w_2, w_3, \ldots, w_n are given as input and the goal is to find out if there is a subset of them whose weights sum up to a given value tt. While the problem is NP-hard in general, when the values are non-negative integer, subset sum can be solved in pseudo-polynomial time  O~(n+t)~\widetilde O(n+t). In this work, we consider the dynamic variant of subset sum. In this setting, an upper bound $\tmax$ is provided in advance to the algorithm and in each operation, either a new item is added to the problem or for a given integer value $t \leq \tmax$, the algorithm is required to output whether there is a subset of items whose sum of weights is equal to tt. Unfortunately, none of the existing subset sum algorithms is able to process these operations in truly sublinear time\footnote{Truly sublinear means n<sup>1−Ω(1)n<sup>{1-\Omega(1)}.} in terms of $\tmax$. Our main contribution is an algorithm whose amortized processing time\footnote{Since the runtimes are amortized, we do not use separate terms update time and query time for different operations and use processing time for all types of operations.} for each operation is truly sublinear in $\tmax$ when the number of operations is at least $\tmax<sup>{2/3+\Omega(1)}$. We also show that when both element addition and element removal are allowed, there is no algorithm that can process each operation in time $\tmax<sup>{1-\Omega(1)}$ on average unless \textsf{SETH}\footnote{The \textit{strong exponential time hypothesis} states that no algorithm can solve the satisfiability problem in time 2<sup>n(1−Ω(1))2<sup>{n(1-\Omega(1))}.} fails.

Authors (2)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.