Free access
Proceedings
2019 Proceedings of the Sixteenth Workshop on Analytic Algorithmics and Combinatorics (ANALCO)

Sesquickselect: One and a half pivots for cache-efficient selection

Abstract

Because of unmatched improvements in CPU performance, memory transfers have become a bottleneck of program execution. As discovered in recent years, this also affects sorting in internal memory. Since partitioning around several pivots reduces overall memory transfers, we have seen renewed interest in multiway Quicksort. Here, we analyze in how far multiway partitioning helps in Quickselect.
We compute the expected number of comparisons and scanned elements (approximating memory transfers) for a generic class of (non-adaptive) multiway Quickselect and show that three or more pivots are not helpful, but two pivots are. Moreover, we consider “adaptive” variants which choose partitioning and pivot-selection methods in each recursive step from a finite set of alternatives depending on the current (relative) sought rank. We show that “Sesquickselect”, a new Quickselect variant that uses either one or two pivots, makes better use of small samples w.r.t. memory transfers than other Quickselect variants.

Formats available

You can view the full content in the following formats:

Information & Authors

Information

Published In

cover image Proceedings
2019 Proceedings of the Sixteenth Workshop on Analytic Algorithmics and Combinatorics (ANALCO)
Pages: 54 - 66
Editors: Marni Mishna, Simon Fraser University, Canada and J. Ian Munro, University of Waterloo, Canada
ISBN (Online): 978-1-61197-550-5

History

Published online: 2 January 2019

Authors

Affiliations

Notes

*
This work has been partially supported by funds from the Spanish Ministery of Economy, Industry and Competitiviness (MINECO) and the European Union (FEDER) under grant GRAMM (TIN2017-86727-C2-1-R), and by funds from the Catalan Government (AGAUR) under grant 2017 SGR 786. The last author is supported by the Natural Sciences and Engineering Research Council of Canada and the Canada Research Chairs Programme.

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

Figures

Tables

Media

Share

Share

Copy the content Link

Share with email

Email a colleague

Share on social media