CS-116 · computer science · mathematics · Algorithms and data structures

CS-116 · Math-9059

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 solved

Statement

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

Catalogue entry

Statement licence: CC-BY-4.0 · Source file

Contributions 2