Posted by hussein on July 31, 1999 at 17:16:05:
In Reply to: Algorithm variations posted by Staleano on July 31, 1999 at 15:08:35:
: Does it matter which variations of the sorting routines we should use? For example whether or not to check if the array is already sorted in a bubble sort... or should we choose the variation we think would be the fastest?
no it does not matter ...
but since ure sorting random numbers, i wouldnt bother checking if theyre sorted first since the probability is almost zero, and u will just add (n-1) comparisons ...
---
hussein