{"id":1788,"date":"2009-09-15T05:30:18","date_gmt":"2009-09-15T10:30:18","guid":{"rendered":"http:\/\/onthe8spot.com\/?p=1788"},"modified":"2009-09-15T05:30:18","modified_gmt":"2009-09-15T10:30:18","slug":"learned-todaydual-pivot-quick-sort","status":"publish","type":"post","link":"http:\/\/onthe8spot.com\/index.php\/2009\/09\/15\/learned-todaydual-pivot-quick-sort\/","title":{"rendered":"Learned Today::Dual Pivot Quick Sort"},"content":{"rendered":"<p>Cool Code!<\/p>\n<blockquote><p>Mathematical investigations &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 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.<br \/>\nvia <a href=\"http:\/\/permalink.gmane.org\/gmane.comp.java.openjdk.core-libs.devel\/2628\">gmane.comp.java.openjdk.core-libs.devel<\/a>.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Cool Code! Mathematical investigations &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 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 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/onthe8spot.com\/index.php\/2009\/09\/15\/learned-todaydual-pivot-quick-sort\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Learned Today::Dual Pivot Quick Sort&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[48],"tags":[],"class_list":["post-1788","post","type-post","status-publish","format-standard","hentry","category-learned-today"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts\/1788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/comments?post=1788"}],"version-history":[{"count":0,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/posts\/1788\/revisions"}],"wp:attachment":[{"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/media?parent=1788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/categories?post=1788"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/onthe8spot.com\/index.php\/wp-json\/wp\/v2\/tags?post=1788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}