Square-root sum problem explained
The square-root sum problem (SRS) is a computational decision problem from the field of numerical analysis, with applications to computational geometry.
Definitions
SRS is defined as follows:[1]
Given positive integers
and an integer t, decide whether
.
An alternative definition is:
Given positive integers
and
, decide whether
.
The problem was posed in 1981,[2] and likely earlier.
Run-time complexity
SRS can be solved in polynomial time in the Real RAM model.[3] However, its run-time complexity in the Turing machine model is open, as of 1997. The main difficulty is that, in order to solve the problem, the square-roots should be computed to a high accuracy, which may require a large number of bits. The problem is mentioned in the Open Problems Garden.[4]
Blomer[5] presents a polynomial-time Monte Carlo algorithm for deciding whether a sum of square roots equals zero. The algorithm applies more generally, to any sum of radicals.
Allender, Burgisser, Pedersen and Miltersen[6] prove that SRS lies in the counting hierarchy (which is contained in PSPACE).
Separation bounds
One way to solve SRS is to prove a lower bound on the absolute difference
\left|t-
\sqrt{ai}\right|
or
\sqrt{ai}-
\sqrt{bi}\right|
. Such lower bound is called a "separation bound" since it separates between the difference and 0. For example, if the absolute difference is at least 2
-d, it means that we can round all numbers to
d bits of accuracy, and solve SRS in time polynomial in
d.
This leads to the mathematical problem of proving bounds on this difference. Define r(n,k) as the smallest positive value of the difference
, where
ai and
bi are integers between 1 and
n; define
R(
n,
k) is defined as -log
r(
n,
k), which is the number of accuracy digits required to solve SRS. Computing
r(
n,
k) is open problem 33 in the open problem project.
[7] In particular, it is interesting whether r(n,k) is in O(poly(k,log(n)). A positive answer would imply that SRS can be solved in polynomial time in the Turing Machine model. Some currently known bounds are:
- Qian and Wang[8] prove by an explicit construction that, for any k and n,
, so
R(n,k)\geq(2k-3/2) ⋅ log{n}
. This number is optimal for
k=2, and also for a wide range of integers.
- Burnikel, Fleischer, Mehlhorn and Schirra[9] proved an upper bound on the number of digits:
.
- Cheng, Meng, Sun and Chen[10] showed that
R(n,k)\in2O(n/log{n)} ⋅ log{n}
.
- Cheng and Li[11] showed that
. This implies an that SRS can be solved in time
, as long as
n is in o(
k log
k). They also present an algorithm to compute
r(
n,
k) in time
.
- Eisenbrand, Haeberle and Singer[12] prove that
, where gamma is a constant that depends on the inputs
a1,...,
an, and steps from the
Subspace theorem. This improves the previous bound
.
Applications
SRS is important in computational geometry, as Euclidean distances are given by square-roots, and many geometric problems (e.g. Minimum spanning tree in the plane and Euclidean traveling salesman problem) require to compute sums of distances.
Etessami and Yannakakis[13] show a reduction from SRS to the problem of termination of recursive concurrent stochastic games.
Relation to semidefinite programming
SRS also has a theoretic importance, as it is a simple special case of a semidefinite programming feasibility problem. Consider the matrix
\left(\begin{matrix}
1&x
\
x&a
\end{matrix}
\right)
. This matrix is
positive semidefinite iff
, iff
. Therefore, to solve SRS, we can construct a feasibility problem with
n constraints of the form
\left(\begin{matrix}
1&xi
\
xi&ai
\end{matrix}
\right)\succeq0
, and additional linear constraints
. The resulting SDP is feasible if and only if SRS is feasible. As the runtime complexity of SRS in the Turing machine model is open, the same is true for SDP feasibility (as of 1997).
Extensions
Kayal and Saha[14] extend the problem from integers to polynomials. Their results imply a solution to SRS for a special class of integers.
Notes and References
- Goemans . Michel X. . 1997-10-01 . Semidefinite programming in combinatorial optimization . Mathematical Programming . en . 79 . 1 . 143–161 . 10.1007/BF02614315 . 17221714 . 1436-4646.
- Joseph . O’Rourke . Advanced problem 6369 . Amer. Math. Monthly . 769. 88. 10. 1981.
- Tiwari . Prasoon . 1992-12-01 . A problem that is easier to solve on the unit-cost algebraic RAM . Journal of Complexity . 8 . 4 . 393–397 . 10.1016/0885-064X(92)90003-T . 0885-064X.
- Web site: Complexity of square-root sum Open Problem Garden . 2024-01-01 . garden.irmacs.sfu.ca.
- Web site: CSDL IEEE Computer Society . 2024-01-01 . www.computer.org.
- Allender . Eric . Bürgisser . Peter . Kjeldgaard-Pedersen . Johan . Miltersen . Peter Bro . January 2009 . On the Complexity of Numerical Analysis . SIAM Journal on Computing . en . 38 . 5 . 1987–2006 . 10.1137/070697926 . 0097-5397.
- Web site: Demaine . Erik D. . Mitchell . Joseph . O'Rourke . Joseph . TOPP: Problem 33: Sum of Square Roots . 2024-01-01 . topp.openproblem.net.
- Qian . Jianbo . Wang . Cao An . 2006-12-16 . How much precision is needed to compare two sums of square roots of integers? . Information Processing Letters . 100 . 5 . 194–198 . 10.1016/j.ipl.2006.05.002 . 0020-0190.
- Burnikel . C. . Fleischer . R. . Mehlhorn . K. . Schirra . S. . 2000-05-01 . A Strong and Easily Computable Separation Bound for Arithmetic Expressions Involving Radicals . Algorithmica . en . 27 . 1 . 87–99 . 10.1007/s004530010005 . 34502818 . 1432-0541.
- Cheng . Qi . Meng . Xianmeng . Sun . Celi . Chen . Jiazhe . April 2010 . Bounding the sum of square roots via lattice reduction . Mathematics of Computation . en . 79 . 270 . 1109–1122 . 10.1090/S0025-5718-09-02304-7 . 0025-5718. free . 0905.4487 . 2010MaCom..79.1109C .
- Cheng . Qi . Li . Yu-Hsin . 2011-09-09 . On the minimum gap between sums of square roots of small integers . Theoretical Computer Science . 412 . 39 . 5458–5465 . 10.1016/j.tcs.2011.06.014 . 0304-3975. free .
- 2312.02057 . Eisenbrand . Friedrich . Haeberle . Matthieu . Singer . Neta . An improved bound on sums of square roots via the subspace theorem . 2023 . cs.CG .
- Etessami . Kousha . Yannakakis . Mihalis . 2008-11-11 . Recursive Concurrent Stochastic Games . Logical Methods in Computer Science . 4. 4 . 10.2168/LMCS-4(4:7)2008 . 1860-5974. free . 0810.3581 .
- Kayal . Neeraj . Saha . Chandan . 2012-11-01 . On the Sum of Square Roots of Polynomials and Related Problems . ACM Transactions on Computation Theory . 4 . 4 . 9:1–9:15 . 10.1145/2382559.2382560 . 7225729 . 1942-3454.