News for hackers. Stuff that matters.
Re:Is this the simplest (and most surprising) sorting algori... by svat on Tuesday October 05, 2021 @11:46AM (#28761049)
Oh yes, good point: I got carried away; there is a difference! Simplicity is subjective (I think mine is simpler of course :P), but the algorithm in the post is indeed more surprising.
Re:Is this the simplest (and most surprising) sorting algori... by pricecomstock on Tuesday October 05, 2021 @12:10PM (#28761378)
Your algorithm does appear in Section 3.1 of the linked paper by the name "Exchange Sort"