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)
- Log in to post comments
Haha, nice. I love the little feedback at the end too.
Here's some pseudo-code:
LIST ID_Sort(LIST list)
{if(list)//already sorted! Praise the sorter!
return(list);}
Brian -- the best part of your pseudo code is that the return value is undefined if the list isn't already sorted! :)
-Rob
if(list)//already sorted
I'm _appaled_. This step is clearly questioning the perfection of the Sorter!