Content deleted Content added
m reply |
bogo-sort/stupid-sort |
||
Line 36:
I added it at the bottom; it's a general combinatorial thingy, really. [[User:Charles Matthews|Charles Matthews]] 09:22, 22 May 2004 (UTC)
== bogo-sort/stupid-sort ==
if you let these in, you might as well let anyone come up with bogus algorithms.
then how about something like this...
i don't sort sort:
Here is the [[pseudocode]] of the algorithm:
'''function''' i_dont_sort_sort(array)
return(array)
(prerequisites: data must be sorted to begin with)
|