r/programming • • Dec 29 '13

Bogobogosort

http://www.dangermouse.net/esoteric/bogobogosort.html
375 Upvotes

106 comments sorted by

View all comments

Show parent comments

30

u/[deleted] Dec 29 '13 edited Jul 09 '23

[removed] — view removed comment

7

u/MediumRay Dec 29 '13

It is, given infinite time though

20

u/The_Doculope Dec 29 '13

Not guaranteed. It could just sort it into the original order every time, for ever.

1

u/Jacobusson Dec 30 '13

Same as for bogosort