Adaptive sampling strategies for quickselects

Author:

Martínez Conrado1,Panario Daniel2,Viola Alfredo3

Affiliation:

1. Universitat Politècnica de Catalunya, Barcelona, Spain

2. Carleton University, Ottawa, Canada

3. Universidad de la República, Casilla de Correo, Uruguay

Abstract

Quickselect with median-of-3 is largely used in practice and its behavior is fairly well understood. However, the following natural adaptive variant, which we call proportion-from-3 , had not been previously analyzed: “choose as pivot the smallest of the sample if the relative rank of the sought element is below 1/3, the largest if the relative rank is above 2/3, and the median if the relative rank is between 1/3 and 2/3.” We first analyze the average number of comparisons made when using proportion-from-2 and then for proportion-from-3. We also analyze ν-find, a generalization of proportion-from-3 with interval breakpoints at ν and 1-ν. We show that there exists an optimal value of ν and we also provide the range of values of ν where ν-find outperforms median-of-3. Then, we consider the average total cost of these strategies, which takes into account the cost of both comparisons and exchanges. Our results strongly suggest that a suitable implementation of ν-find could be the method of choice in a practical setting. We also study the behavior of proportion-from- s with s >3 and in particular we show that proportion-from- s -like strategies are optimal when s →∞.

Funder

Ministerio de Economía y Competitividad

Seventh Framework Programme

Natural Sciences and Engineering Research Council of Canada

Consejo Superior de Investigaciones Científicas

Publisher

Association for Computing Machinery (ACM)

Subject

Mathematics (miscellaneous)

Cited by 7 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. BlockQuicksort;ACM Journal of Experimental Algorithmics;2019-12-17

2. Arbres, algorithmes et données;Arbres pour l’Algorithmique;2018

3. DC-Top-k: A Novel Top-k Selecting Algorithm and Its Parallelization;2016 45th International Conference on Parallel Processing (ICPP);2016-08

4. Analysis of Quickselect Under Yaroslavskiy’s Dual-Pivoting Algorithm;Algorithmica;2014-11-04

5. A Gaussian limit process for optimal FIND algorithms;Electronic Journal of Probability;2014-01-01

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3