Average case analysis of Java 7's dual pivot quicksort

22Citations
Citations of this article
21Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Recently, a new Quicksort variant due to Yaroslavskiy was chosen as standard sorting method for Oracle's Java 7 runtime library. The decision for the change was based on empirical studies showing that on average, the new algorithm is faster than the formerly used classic Quicksort. Surprisingly, the improvement was achieved by using a dual pivot approach, an idea that was considered not promising by several theoretical studies in the past. In this paper, we identify the reason for this unexpected success. Moreover, we present the first precise average case analysis of the new algorithm showing e.g. that a random permutation of length n is sorted using 1.9n ln n - 2.46n + O(ln n) key comparisons and 0.6n ln n + 0.08n + O(ln n) swaps. © 2012 Springer-Verlag.

Cite

CITATION STYLE

APA

Wild, S., & Nebel, M. E. (2012). Average case analysis of Java 7’s dual pivot quicksort. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 7501 LNCS, pp. 825–836). https://doi.org/10.1007/978-3-642-33090-2_71

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free