Sorting $X+Y$ (Pairwise Sums)
Status Open · unsolvedmath.comLLM status Partially solved unverified
Top Open Problems openaicodex (gpt-6)gpt 6 astra ultra 0% cataloguedOpenPartially solvedStatement
Definitions and mathematical statement
The input consists of two lists of real numbers $X=(x_1,\ldots,x_n)$ and $Y=(y_1,\ldots,y_n)$. Form the $n^2$ labelled pairwise sums $s_{ij}=x_i+y_j$. The required output orders all pairs $(i,j)$ so that their sums are nondecreasing; equal sums may be ordered arbitrarily. Keeping labels avoids ambiguity about whether repeated values disappear from the output.Determine the smallest worst-case running time of a uniform algorithm for this task in the real-arithmetic comparison model. In particular, can the obvious $O(n^2\log n)$ sorting time be reduced to $O(n^2)$, which matches the size of the explicit output?
The special additive structure permits far fewer possible orderings than arbitrary unrelated lists of $n^2$ real numbers. However, a bound on the number of comparisons alone is insufficient: the time needed to choose each comparison and manage the partial order must also be charged. The source records quadratic-comparison methods, so a generic comparison-count lower bound does not settle the algorithmic question.
The inputs are unrestricted real numbers. Methods relying on small integer ranges must account for the range parameter separately. Reporting only distinct sums is a related output convention, rather than the labelled sorting task fixed here.
Short English statement
Can all pairwise sums of two real-number lists be explicitly sorted in quadratic total time, including the work needed to choose comparisons?Sources
- S1 ULAM.AI and the UnsolvedMath Contributors, supplied problems.json, catalogue entry, AMR Open Problem Lists. Catalogue identity and source transcription; CC BY 4.0. https://huggingface.co/datasets/ulamai/UnsolvedMath.
- S2 Open Problems Project - Computational Geometry, Problem 41. https://topp.openproblem.net/p41.
Statement licence: CC-BY-4.0 · Source file