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.

  • main
  • ssort

  • main

     This is a main programme
    

    ssort

     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.
    
    SIGNATURE:
      void
      ssort(
            int *arr,                         /* the array to sort */
            int n                             /* the number of elements */