home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_08 / 8n08071a < prev    next >
Text File  |  1990-07-18  |  381b  |  16 lines

  1.  
  2.     if ((j - first) > SMALLEST_QSORT_PARTITION)
  3.         my_qsort( data, first, j-1 );
  4.     else
  5.         insertion_sort( data, first, j-1 );
  6.  
  7.     if ((last - j) > SMALLEST_QSORT_PARTITION )
  8.         my_qsort( data, j+1, last );
  9.     else
  10.         insertion_sort( data, j+1, last );
  11.  
  12.               Using Insertion Sort on Small Arrays
  13.                         Figure 15
  14.  
  15.  
  16.