No: Stooge sort is not stable. Give equal keys distinct record identities and start withThe initial endpoint swap gives . The later two-element calls either see increasing keys or equal keys, so they make no swap. The two records with key 2 have reversed their original order, contradicting stable sorting. The example uses length three, where the intended current-length split is unambiguous.
Articles by others on the same topic
There are currently no matching articles.