To heck with bubble sort, selection sort, insertion sort, and all the rest. Yes, all of those algorithms were intelligently design, but none of them follow the precepts of Intelligent Design.
And, now, David Morgan-Mar gives us Intelligent Design Sort.
(found via Steve Jackson Games)




Comments
Haha, nice. I love the little feedback at the end too.
Posted by: Taylor Murphy | May 23, 2007 3:15 PM
Here's some pseudo-code:
LIST ID_Sort(LIST list)
{if(list)//already sorted! Praise the sorter!
return(list);}
Posted by: Brian Thompson | May 23, 2007 4:02 PM
Brian -- the best part of your pseudo code is that the return value is undefined if the list isn't already sorted! :)
-Rob
Posted by: Rob Knop | May 23, 2007 5:03 PM
if(list)//already sorted
I'm _appaled_. This step is clearly questioning the perfection of the Sorter!
Posted by: csrster | May 24, 2007 4:47 AM