Quicksort

Hello!

To view this page you need Microsoft Silverlight 3 plug-in.
Silverlight will enable your browser to understand complex Rich Internet Applications.
After installing (~10 seconds), you will be able to view and execute live algorithms.

Click here to download the plugin directly from Microsoft (4 MB)
If you want to learn more about MS Silverlight, take a look at this Wikipedia article.
Output
type in the input above and click 'Execute'
the result will be outputted here
Related Algorithms
Discussion
2
Very cool! though, shouldn't this be two separate algorithms? like QuicksortSpacy and QuicksortCompact?
30 months and 2 weeks ago by ANaimi
Probably, but I thought it might be more convenient for people to see both implementations together. The IF statements and comparisons in Execute() definitely slow it down a lot. Was getting ~80ms in the debugger.
30 months and one week ago by Connway
login to leave a comment
Version 11
Version 11 by Connway
+3
Version 12 by dva
0
Quicksort is a well-known sorting algorithm developed by C. A. R. Hoare that, on average, makes O(nlogn) comparisons to sort n items. In the worst case, it makes O(n2) comparisons. Typically, quicksort is significantly faster in practice than other O(nlogn) algorithms, because its inner loop can be efficiently implemented on most architectures, and in most real-world data, it is possible to make design choices which minimize the probability of requiring quadratic time.

Quicksort is a comparison sort and, in efficient implementations, is not a stable sort.

If the array is returned the same, then it did not recognize the Version string.

More info: http://en.wikipedia.org/wiki/Quicksort
By Connway
30 months and 2 weeks ago
up down

implementations

2 versions available

rated by

3 users - list?

viewed by

22 users - list?

favorited by

0 users - list?

last activity

27 months ago