HackerPapers

arXiv:2110.01111cs.DS

Is this the simplest (and most surprising) sorting algorithm ever?

Stanley P. Y. Fung

Abstract

We present an extremely simple sorting algorithm. It may look like it is obviously wrong, but we prove that it is in fact correct. We compare it with other simple sorting algorithms, and analyse some of its curious properties.

arXiv comments
7 pages, 0 figures
Journal reference
DOI
Subjects
cs.DSData Structures and Algorithms

On Hacker News

Linked by 6 identifiable commenters in 6 comments across 4 threads, from Oct 2021 to Oct 2022. Found in 6 HN submissions from Oct 2021 to Sep 2026. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments4 threads

    • HTML version of the PDF: https://www.arxiv-vanity.com/papers/2110.01111/

      jakub_gView on HNParent context

    • Some links to discussions and/or accidental discoveries of this algorithm: OP (2021): https://arxiv.org/abs/2110.01111 Stack Overflow (2021, linked by 'Xophmeister in this discussion): https://stackoverflow.com/questions/69437526/what-is-this-od... Stack Overflow (2021, linked…

      areyousureView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.