the complexity of transfinite comparison sorting
Imported on
The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.
Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.
Problem statement
The story of finitary deterministic comparison sorting is well-known: we have the naive -time algorithms like selection and insertion sorts; once we try divide-and-conquer recursion we immediately achieve the theoretically optimum time complexity of . In this case it's the number of comparisons which is the bottleneck, and the exact list model we use doesn't matter, given that the list operations are blind to the ordering of the elements they carry.
My question is: what is the analogous story for transfinite comparison sorting? Consider well-ordered sequences of characters from a well-ordered alphabet.
Note: for the time being, let us consider sequences of distinct characters for simplicity.
Each such sequence has a unique sorted permutation, and it's not hard to define a reasonable model of comparison sorting (see below). However, the story is different. Some things are simpler: I suspect has no meaningful extension to a transfinite complexity measure. Some things are more complex: the finitary quadratic time measure can mean the (order type of the input)*(order type of the output), or the other way around.
What algorithms admit faithful transfinite extensions? Is there a "best" sorting algorithm? Is there a reasonable lower bound? If so, which operation is the bottleneck?
Model of comparison sorting:
Consider the following variation on ordinal register machines. A program has a finite number of registers, each of which stores a list, a character, or an ordinal (or may be undefined). A program consists of a finite list of lines. Each line of the program is either an assignment statement, a branching statement a goto statement, or a halt statement. We can test the relative order of two characters, we can test whether an ordinal is zero, and we can test whether an ordinal is less than the length of a list.
There is a designated input and output register, each of type "list." Initially the input stores a given list of distinct characters; at some ordinal stage, the program must halt with the output variable storing the unique sorted permutation of the input.
As for operations, we can at least increment ordinals and perhaps do some arithmetic on them. (If the answer depends on this choice, the question seems less robust that I had hoped.) Lists are arrays with direct access; we can read and write a character in a given list at a given index. We can also add a character to the beginning or end of a list, or at a particular list index. (Meaning, add the character to the given index, and shift all subsequent characters down by one.)
Semantics at successor stages is standard. At limit stages, program control goes to the lim inf, i.e., the least line that occurs cofinally often in the limit. Ordinal-valued registers take the lim inf of their values. Character-valued registers are, let's say, undefined in the limit.
The one important choice we have to make is the limiting behavior of list-valued registers. Let us say that
-
A character occurs in the limit if it occurs in all sufficiently large stages below the limit.
-
for two such characters and , in the limit list if in all sufficiently large stages below the limit. (Here refers to the precedence ordering in the list.) If this does not define a linear order, then the limit is undefined.
Now, this model is flexible enough to implement natural transfinite extensions of insertion and selection sorts. The "time complexity" is simply the halting ordinal.
Statement and context adapted from MathOverflow · Siddharth
CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history
A few useful definitions
- Ordinal / order type
- An ordinal describes the shape of a well-ordered set, rather than only its size. Infinite sets of equal cardinality can have different order types.
Sources and original status
- MathOverflow Status in source : unanswered at collection
Last activity on the question :
Coverage, sources and method
This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.
This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.
Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.
Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.
Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.
OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.
Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.
Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.
- Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18,857 · CC BY-SA 4.0
- MathOverflow · 19,035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)