Possible Duplicate:
Fastest sort of fixed length 6 int array
The task is to find a way to sort 8 random numbers with the least number of comparisons (not operations). I expect that I have to use qSort (divide an array by half, sort and then merge and so on.. it must be quicksort i think). For 8 elements number of comparisons is 17, and i have to prove that there is no way to sort random array with 16 (n minus 1) comparisons.
Thanks
Any case, so must be worst also. I'm in first year of studies, so I don't think we have to do something extraordinary (I study math not IT). And kind of sort I use is mergesort! Thanks in advance.