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

Reply via email to