The sum of square roots problem
Bound how close two sums of k square roots of integers up to n can be, and decide whether such sums can be compared in polynomial time.
The sum of square roots problem
How close can two sums of square roots of integers up to come without being equal? If the gap is never extremely small, such sums can be compared in polynomial time. That would remove a basic obstacle in geometric computing, where even simple problems about Euclidean lengths are not known to lie in NP.
Problem
For positive integers and , let be the smallest positive value of
over integers . For example, , attained by .
Question. Find tight upper and lower bounds on as a function of and . In particular, is bounded by a polynomial in and ? If it is, the sign of a difference of two such sums can be found in polynomial time by evaluating it to polynomially many bits.
Background
O'Rourke posed the question in 1981 as an Advanced Problem in the American Mathematical Monthly, and it is Problem 33 of The Open Problems Project. It matters because geometric algorithms are analysed on a real-number machine while complexity classes are defined for Turing machines. Without a way to compare sums of distances quickly, even the decision versions of easy problems such as the Euclidean minimum spanning tree are not known to be in NP, as David Eppstein put it in a remark quoted by the source.
What is known
- Upper bounds on the precision needed. Root separation bounds give (Burnikel, Fleischer, Mehlhorn and Schirra, 2000) [1], so the gap is at worst doubly exponentially small in . Cheng, Meng, Sun and Chen (2010) related the problem to short vectors in lattices and showed , which is better when is at most a constant times ; they also conjectured a lattice property that would make comparing sums of square roots of small integers polynomial [3].
- Lower bounds. Qian and Wang (2006) showed , so about bits are sometimes necessary [2].
- Fixed radicands. For with integer , Eisenbrand, Haeberle and Singer (2024) proved , where depends only on the and comes from the subspace theorem, so it is not explicit [4].
- Complexity. Comparing sums of square roots lies in the counting hierarchy, through a reduction to the problem PosSLP (Allender, Bürgisser, Kjeldgaard-Pedersen and Miltersen, 2009) [5]; it is not known to be in NP. When the integers are written in unary, deciding the sign of is in P/poly (Balaji and Datta, 2024) [6].
What would count as progress
- A proof that , or a family of examples showing that it grows faster.
- Exact values of for small and , or new near-ties, found by search; each candidate can be checked with high-precision interval arithmetic.
- A polynomial-time algorithm for the sign of , or for comparing two sums of square roots. The formal-conjectures project states this polynomial-time question in Lean, in a one-sum and a two-sum version: SquareRootSum.lean.
References
- C. Burnikel, R. Fleischer, K. Mehlhorn and S. Schirra, A strong and easily computable separation bound for arithmetic expressions involving radicals, Algorithmica 27 (2000), 87–99. doi:10.1007/s004530010005
- J. Qian and C. A. Wang, How much precision is needed to compare two sums of square roots of integers?, Inform. Process. Lett. 100 (2006), 194–198. doi:10.1016/j.ipl.2006.05.002
- Q. Cheng, X. Meng, C. Sun and J. Chen, Bounding the sum of square roots via lattice reduction, Math. Comp. 79 (2010), 1109–1122. doi:10.1090/S0025-5718-09-02304-7, arXiv:0905.4487
- F. Eisenbrand, M. Haeberle and N. Singer, An improved bound on sums of square roots via the subspace theorem, Proc. SoCG 2024, LIPIcs 293, 54:1–54:8. doi:10.4230/LIPIcs.SoCG.2024.54, arXiv:2312.02057
- E. Allender, P. Bürgisser, J. Kjeldgaard-Pedersen and P. B. Miltersen, On the complexity of numerical analysis, SIAM J. Comput. 38 (2009), 1987–2006. doi:10.1137/070697926
- N. Balaji and S. Datta, USSR is in P/poly, Proc. SOSA 2024, 151–159. doi:10.1137/1.9781611977936.15, arXiv:2310.19335
Source
Imported from The Open Problems Project, Problem 33, curated by Erik D. Demaine, Joseph S. B. Mitchell and Joseph O'Rourke. Open according to the source as of 2026-10-20. The statement above is written in our own words; see the source for the original wording, history and discussion.