/* * <INTRO> * This file does nothing useful except exhibit the c2html's AUTO tag * No actual code is present, as you might be tempted to compile it. */ #include <stdio.h> /* * <AUTO> * * This is a main programme */ int main(void) { return(0); } /* * <AUTO EXTRACT> * This is the slowest sort that I know, even worse than bubble sort * and that takes some doing. It's called Stupidsort. * * The algorithm is to take the list, sort it randomly, and see if the * result is ordered; if it is, return, otherwise try again. * * It has N! expected running time, and worst case infinite, as it's * easy to run out of 32bit random numbers. */ void ssort( int *arr, /* the array to sort */ int n /* the number of elements */ { for(;;) { continue; } /* nearly as good as a full implementation */ }