Quick sort has time complexity O(nlog(n)) and bubble sort has, O(n^2) though, so for 1000 numbers the quick sort SHOULD (theoretically) be almost 150 times faster than the bubble sort.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 17
Thread: QSort speedThreaded View
|
Click Here to Expand Forum to Full Width |