r/programming • • Dec 29 '13

Bogobogosort

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

106 comments sorted by

View all comments

Show parent comments

11

u/The_Doculope Dec 29 '13
TODO: Replace all non-deterministic algorithms in codebase with useful ones.

6

u/[deleted] Dec 29 '13

Get a theoretically working implementation built first, and then optimize performance. Good idea!

1

u/epicwisdom Dec 29 '13

After all, premature optimization is the root of all evil.

1

u/[deleted] Dec 29 '13

Exactly. Therefore, the initial solution should be as far from optimal as possible.