This one is worse than bogosort - by design: http://xlinux.nist.gov/dads/HTML/tacoSort.html .
On Sat, Dec 28, 2013 at 8:07 PM, Raul Miller <[email protected]> wrote: > Here is a rather awful sorting algorithm: > > http://www.dangermouse.net/esoteric/bogobogosort.html > > For reference, here's a reasonably close to canonical definition of > big-O notation: > > http://en.wikipedia.org/wiki/Big_O_notation > > the above algorithm was suggested on another mailinglist during a > discussion of this code competition: > > http://codegolf.stackexchange.com/questions/16226/trolling-homework-questions-sorting > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
