Learned Today::Dual Pivot Quick Sort

Cool Code!

Mathematical investigations ————————— It is proved that for the Dual-Pivot Quicksort the average number of comparisons is 2*n*ln(n), the average number of swaps is 0.8*n*ln(n), whereas classical Quicksort algorithm has 2*n*ln(n) and 1*n*ln(n) respectively. Full mathematical proof see in attached proof.txt and proof_add.txt files. Theoretical results are also confirmed by experimental counting of the operations.
via gmane.comp.java.openjdk.core-libs.devel.

Leave a Reply

Your email address will not be published. Required fields are marked *