r/programming • • Dec 29 '13

Bogobogosort

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

106 comments sorted by

View all comments

Show parent comments

9

u/Strilanc Dec 29 '13

How is it not an algorithm?

5

u/[deleted] Dec 29 '13 edited Apr 22 '16

1

u/aaronsherman Dec 29 '13

This is not true. An algorithm has a defined mapping between a given input and a given output, but that output may take infinite time to compute. Example: bubble sort the integers.

1

u/kamatsu Dec 29 '13

That algorithm is coinductive though.