Classical and Quantum Algorithms for Variants of Subset-Sum via Dynamic
Programming
- URL: http://arxiv.org/abs/2111.07059v2
- Date: Fri, 22 Jul 2022 09:45:42 GMT
- Title: Classical and Quantum Algorithms for Variants of Subset-Sum via Dynamic
Programming
- Authors: Jonathan Allcock and Yassine Hamoudi and Antoine Joux and Felix
Klingelh\"ofer and Miklos Santha
- Abstract summary: Subset-Sum is a problem where one must decide if a multiset of $n$ integers contains a subset whose elements sum to a target value $m.
We introduce a novel dynamic-programming-based data structure with applications to Subset-Sum and a number of variants.
- Score: 0.5949779668853554
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Subset-Sum is an NP-complete problem where one must decide if a multiset of
$n$ integers contains a subset whose elements sum to a target value $m$. The
best-known classical and quantum algorithms run in time $\tilde{O}(2^{n/2})$
and $\tilde{O}(2^{n/3})$, respectively, based on the well-known
meet-in-the-middle technique. Here we introduce a novel classical
dynamic-programming-based data structure with applications to Subset-Sum and a
number of variants, including Equal-Sums (where one seeks two disjoint subsets
with the same sum), 2-Subset-Sum (a relaxed version of Subset-Sum where each
item in the input set can be used twice in the summation), and Shifted-Sums, a
generalization of both of these variants, where one seeks two disjoint subsets
whose sums differ by some specified value.
Given any modulus $p$, our data structure can be constructed in time
$O(n^2p)$, after which queries can be made in time $O(n^2)$ to the lists of
subsets summing to any value modulo $p$. We use this data structure in
combination with variable-time amplitude amplification and a new quantum pair
finding algorithm, extending the quantum claw finding algorithm to the multiple
solutions case, to give an $O(2^{0.504n})$ quantum algorithm for Shifted-Sums,
an improvement on the best-known $O(2^{0.773n})$ classical running time.
Incidentally, we obtain new $\tilde{O}(2^{n/2})$ and $\tilde{O}(2^{n/3})$
classical and quantum algorithms for Subset-Sum, not based on the seminal
meet-in-the-middle method. We also study Pigeonhole Equal-Sums and Pigeonhole
Modular Equal-Sums, where the existence of a solution is guaranteed by the
pigeonhole principle. For the former problem, we give faster classical and
quantum algorithms with running time $\tilde{O}(2^{n/2})$ and
$\tilde{O}(2^{2n/5})$, respectively. For the more general modular problem, we
give a classical algorithm that also runs in time $\tilde{O}(2^{n/2})$.
Related papers
- Sum-of-Squares inspired Quantum Metaheuristic for Polynomial Optimization with the Hadamard Test and Approximate Amplitude Constraints [76.53316706600717]
Recently proposed quantum algorithm arXiv:2206.14999 is based on semidefinite programming (SDP)
We generalize the SDP-inspired quantum algorithm to sum-of-squares.
Our results show that our algorithm is suitable for large problems and approximate the best known classicals.
arXiv Detail & Related papers (2024-08-14T19:04:13Z) - Quantum spectral method for gradient and Hessian estimation [4.193480001271463]
Gradient descent is one of the most basic algorithms for solving continuous optimization problems.
We propose a quantum algorithm that returns an $varepsilon$-approximation of its gradient with query complexity $widetildeO (1/varepsilon)$.
We also propose two quantum algorithms for Hessian estimation, aiming to improve quantum analogs of Newton's method.
arXiv Detail & Related papers (2024-07-04T11:03:48Z) - Towards Optimal Circuit Size for Sparse Quantum State Preparation [10.386753939552872]
We consider the preparation for $n$-qubit sparse quantum states with $s$ non-zero amplitudes and propose two algorithms.
The first algorithm uses $O(ns/log n + n)$ gates, improving upon previous methods by $O(log n)$.
The second algorithm is tailored for binary strings that exhibit a short Hamiltonian path.
arXiv Detail & Related papers (2024-04-08T02:13:40Z) - Generalized Hybrid Search and Applications to Blockchain and Hash
Function Security [50.16790546184646]
We first examine the hardness of solving various search problems by hybrid quantum-classical strategies.
We then construct a hybrid quantum-classical search algorithm and analyze its success probability.
arXiv Detail & Related papers (2023-11-07T04:59:02Z) - Fast and Practical Quantum-Inspired Classical Algorithms for Solving
Linear Systems [11.929584800629673]
We propose fast and practical quantum-inspired classical algorithms for solving linear systems.
Our main contribution is the application of the heavy ball momentum method to quantum-inspired classical algorithms for solving linear systems.
arXiv Detail & Related papers (2023-07-13T08:46:19Z) - Dynamic Algorithms for Matroid Submodular Maximization [11.354502646593607]
Submodular complexity under matroid and cardinality constraints are problems with a wide range of applications in machine learning, auction theory, and optimization.
In this paper, we consider these problems in the dynamic setting, where we have access to a monotone submodular function $f: 2V rightarrow mathbbR+$ and we are given a sequence $calmathS$ of insertions and deletions of elements of an underlying ground set $V$.
We develop the first fully dynamic algorithm for the submodular problem under the matroid constraint
arXiv Detail & Related papers (2023-06-01T17:54:15Z) - Private estimation algorithms for stochastic block models and mixture
models [63.07482515700984]
General tools for designing efficient private estimation algorithms.
First efficient $(epsilon, delta)$-differentially private algorithm for both weak recovery and exact recovery.
arXiv Detail & Related papers (2023-01-11T09:12:28Z) - Mind the gap: Achieving a super-Grover quantum speedup by jumping to the
end [114.3957763744719]
We present a quantum algorithm that has rigorous runtime guarantees for several families of binary optimization problems.
We show that the algorithm finds the optimal solution in time $O*(2(0.5-c)n)$ for an $n$-independent constant $c$.
We also show that for a large fraction of random instances from the $k$-spin model and for any fully satisfiable or slightly frustrated $k$-CSP formula, statement (a) is the case.
arXiv Detail & Related papers (2022-12-03T02:45:23Z) - Quantum Resources Required to Block-Encode a Matrix of Classical Data [56.508135743727934]
We provide circuit-level implementations and resource estimates for several methods of block-encoding a dense $Ntimes N$ matrix of classical data to precision $epsilon$.
We examine resource tradeoffs between the different approaches and explore implementations of two separate models of quantum random access memory (QRAM)
Our results go beyond simple query complexity and provide a clear picture into the resource costs when large amounts of classical data are assumed to be accessible to quantum algorithms.
arXiv Detail & Related papers (2022-06-07T18:00:01Z) - Exponential Separation between Quantum and Classical Ordered Binary
Decision Diagrams, Reordering Method and Hierarchies [68.93512627479197]
We study quantum Ordered Binary Decision Diagrams($OBDD$) model.
We prove lower bounds and upper bounds for OBDD with arbitrary order of input variables.
We extend hierarchy for read$k$-times Ordered Binary Decision Diagrams ($k$-OBDD$) of width.
arXiv Detail & Related papers (2022-04-22T12:37:56Z) - Time and Query Optimal Quantum Algorithms Based on Decision Trees [2.492300648514128]
We show that a quantum algorithm can be implemented in time $tilde O(sqrtGT)$.
Our algorithm is based on non-binary span programs and their efficient implementation.
arXiv Detail & Related papers (2021-05-18T06:51:11Z) - Low depth algorithms for quantum amplitude estimation [6.148105657815341]
We design and analyze two new low depth algorithms for amplitude estimation (AE)
These algorithms bring quantum speedups for Monte Carlo methods closer to realization.
arXiv Detail & Related papers (2020-12-06T18:39:20Z) - An Optimal Separation of Randomized and Quantum Query Complexity [67.19751155411075]
We prove that for every decision tree, the absolute values of the Fourier coefficients of a given order $ellsqrtbinomdell (1+log n)ell-1,$ sum to at most $cellsqrtbinomdell (1+log n)ell-1,$ where $n$ is the number of variables, $d$ is the tree depth, and $c>0$ is an absolute constant.
arXiv Detail & Related papers (2020-08-24T06:50:57Z) - Improved Classical and Quantum Algorithms for Subset-Sum [1.376408511310322]
We present new classical and quantum algorithms for solving random subset-sum instances.
We propose new quantum walks for subset-sum, performing better than the previous best time complexity.
arXiv Detail & Related papers (2020-02-12T23:23:04Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.