Free access
Proceedings
2014 Proceedings of the Sixteenth Workshop on Algorithm Engineering and Experiments (ALENEX)

Multi-Pivot Quicksort: Theory and Experiments

Abstract

The idea of multi-pivot quicksort has recently received the attention of researchers after Vladimir Yaroslavskiy proposed a dual pivot quicksort algorithm that, contrary to prior intuition, outperforms standard quicksort by a a significant margin under the Java JVM [10]. More recently, this algorithm has been analysed in terms of comparisons and swaps by Wild and Nebel [9]. Our contributions to the topic are as follows. First, we perform the previous experiments using a native C implementation thus removing potential extraneous effects of the JVM. Second, we provide analyses on cache behavior of these algorithms. We then provide strong evidence that cache behavior is causing most of the performance differences in these algorithms. Additionally, we build upon prior work in multi-pivot quicksort and propose a 3-pivot variant that performs very well in theory and practice. We show that it makes fewer comparisons and has better cache behavior than the dual pivot quicksort in the expected case. We validate this with experimental results, showing a 7–8% performance improvement in our tests.

Formats available

You can view the full content in the following formats:

Information & Authors

Information

Published In

cover image Proceedings
2014 Proceedings of the Sixteenth Workshop on Algorithm Engineering and Experiments (ALENEX)
Pages: 47 - 60
Editors: Catherine C. McGeoch, Amherst College, Amherst, MA, USA and Ulrich Meyer, Goethe University Frankfurt am Main, Frankfurt, Germany
ISBN (Online): 978-1-61197-319-8

History

Submitted: 7 November 2013
Published online: 18 December 2013

Authors

Affiliations

Alejandro López-Ortiz

Metrics & Citations

Metrics

Citations

If you have the appropriate software installed, you can download article citation data to the citation manager of your choice. Simply select your manager software from the list below and click Download.

Cited By

There are no citations for this item

View Options

View options

PDF

View PDF

Get Access

Media

Figures

Other

Tables

Share

Share

Copy the content Link

Share with email

Email a colleague

Share on social media