Anonymous user
Sorting algorithms/Bogosort: Difference between revisions
desc: stress on the random part
No edit summary |
(desc: stress on the random part) |
||
Line 1:
{{task|Sorting Algorithms}}{{Sorting Algorithm}}
[[wp:Bogosort]] a list of numbers. Bogosort simply shuffles a collection randomly until it is sorted.
It is worth noting that "Bogosort" is a perversely inefficient algorithm and only used as an "in joke". Its
Pseudocode:
|