A 315 student sent me a report on his experiments with Quick Sort:
"Here are the preliminary results (program written in C++ (With templates(TM)), using Microsofts VC 5.0):"
| input size | time [ms.] |
| 1,000 | 1 |
| 10,000 | 4 |
| 100,000 | 64 |
| 1,000,000 | 594 |
| input size | time [ms.] |
| 1,000 | 1 |
| 10,000 | 6 |
| 100,000 | 80 |
| 1,000,000 | 946 |
| input size | time [ms.] |
| 1,000 | 1 |
| 10,000 | 10 |
| 100,000 | 71 |
| 1,000,000 | 1487 |
This experiment have brought some questions: what implementation was used? what do the different constants (interpolating T(n)=cnlogn) for each set of data tell us? how relevant is the factor 2 with which we came up in the analysis of expected complexity?
At the moment, we are just asking... The answers will be due soon.