Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-10T13:30:40.961Z Has data issue: false hasContentIssue false

Dual-Pivot Quicksort: Optimality, Analysis and Zeros of Associated Lattice Paths

Published online by Cambridge University Press:  14 August 2018

MARTIN AUMÜLLER
Affiliation:
IT University of Copenhagen, Rued Langgaards Vej 7, 2300 Copenhagen, Denmark (e-mail: maau@itu.dk)
MARTIN DIETZFELBINGER
Affiliation:
Fakultät für Informatik und Automatisierung, Technische Universität Ilmenau, Helmholtzplatz 5, 98693 Ilmenau, Germany (e-mail: martin.dietzfelbinger@tu-ilmenau.de)
CLEMENS HEUBERGER
Affiliation:
Institut für Mathematik, Alpen-Adria-Universität Klagenfurt, Universitätsstraße 65–67, 9020 Klagenfurt am Wörthersee, Austria (e-mail: clemens.heuberger@aau.at, math@danielkrenn.at, daniel.krenn@aau.at)
DANIEL KRENN
Affiliation:
Institut für Mathematik, Alpen-Adria-Universität Klagenfurt, Universitätsstraße 65–67, 9020 Klagenfurt am Wörthersee, Austria (e-mail: clemens.heuberger@aau.at, math@danielkrenn.at, daniel.krenn@aau.at)
HELMUT PRODINGER
Affiliation:
Department of Mathematical Sciences, Stellenbosch University, 7602 Stellenbosch, South Africa (e-mail: hproding@sun.ac.za)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

We present an average-case analysis of a variant of dual-pivot quicksort. We show that the algorithmic partitioning strategy used is optimal, that is, it minimizes the expected number of key comparisons. For the analysis, we calculate the expected number of comparisons exactly as well as asymptotically; in particular, we provide exact expressions for the linear, logarithmic and constant terms.

An essential step is the analysis of zeros of lattice paths in a certain probability model. Along the way a combinatorial identity is proved.

Information

Type
Paper
Copyright
Copyright © Cambridge University Press 2018