Cargando…
The analysis of Range Quickselect and related problems()
Range Quickselect, a simple modification of the well-known Quickselect algorithm for selection, can be used to efficiently find an element with rank [Formula: see text] in a given range [Formula: see text] , out of [Formula: see text] given elements. We study basic cost measures of Range Quickselect...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
North-Holland Pub. Co
2011
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3204921/ https://www.ncbi.nlm.nih.gov/pubmed/22163377 http://dx.doi.org/10.1016/j.tcs.2011.06.030 |
_version_ | 1782215264364920832 |
---|---|
author | Martínez, Conrado Panholzer, Alois Prodinger, Helmut |
author_facet | Martínez, Conrado Panholzer, Alois Prodinger, Helmut |
author_sort | Martínez, Conrado |
collection | PubMed |
description | Range Quickselect, a simple modification of the well-known Quickselect algorithm for selection, can be used to efficiently find an element with rank [Formula: see text] in a given range [Formula: see text] , out of [Formula: see text] given elements. We study basic cost measures of Range Quickselect by computing exact and asymptotic results for the expected number of passes, comparisons and data moves during the execution of this algorithm. The key element appearing in the analysis of Range Quickselect is a trivariate recurrence that we solve in full generality. The general solution of the recurrence proves to be very useful, as it allows us to tackle several related problems, besides the analysis that originally motivated us. In particular, we have been able to carry out a precise analysis of the expected number of moves of the [Formula: see text] th element when selecting the [Formula: see text] th smallest element with standard Quickselect, where we are able to give both exact and asymptotic results. Moreover, we can apply our general results to obtain exact and asymptotic results for several parameters in binary search trees, namely the expected number of common ancestors of the nodes with rank [Formula: see text] and [Formula: see text] , the expected size of the subtree rooted at the least common ancestor of the nodes with rank [Formula: see text] and [Formula: see text] , and the expected distance between the nodes of ranks [Formula: see text] and [Formula: see text]. |
format | Online Article Text |
id | pubmed-3204921 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2011 |
publisher | North-Holland Pub. Co |
record_format | MEDLINE/PubMed |
spelling | pubmed-32049212011-12-05 The analysis of Range Quickselect and related problems() Martínez, Conrado Panholzer, Alois Prodinger, Helmut Theor Comput Sci Article Range Quickselect, a simple modification of the well-known Quickselect algorithm for selection, can be used to efficiently find an element with rank [Formula: see text] in a given range [Formula: see text] , out of [Formula: see text] given elements. We study basic cost measures of Range Quickselect by computing exact and asymptotic results for the expected number of passes, comparisons and data moves during the execution of this algorithm. The key element appearing in the analysis of Range Quickselect is a trivariate recurrence that we solve in full generality. The general solution of the recurrence proves to be very useful, as it allows us to tackle several related problems, besides the analysis that originally motivated us. In particular, we have been able to carry out a precise analysis of the expected number of moves of the [Formula: see text] th element when selecting the [Formula: see text] th smallest element with standard Quickselect, where we are able to give both exact and asymptotic results. Moreover, we can apply our general results to obtain exact and asymptotic results for several parameters in binary search trees, namely the expected number of common ancestors of the nodes with rank [Formula: see text] and [Formula: see text] , the expected size of the subtree rooted at the least common ancestor of the nodes with rank [Formula: see text] and [Formula: see text] , and the expected distance between the nodes of ranks [Formula: see text] and [Formula: see text]. North-Holland Pub. Co 2011-10-28 /pmc/articles/PMC3204921/ /pubmed/22163377 http://dx.doi.org/10.1016/j.tcs.2011.06.030 Text en © 2011 Elsevier B.V. https://creativecommons.org/licenses/by-nc-nd/3.0/ Open Access under CC BY-NC-ND 3.0 (https://creativecommons.org/licenses/by-nc-nd/3.0/) license |
spellingShingle | Article Martínez, Conrado Panholzer, Alois Prodinger, Helmut The analysis of Range Quickselect and related problems() |
title | The analysis of Range Quickselect and related problems() |
title_full | The analysis of Range Quickselect and related problems() |
title_fullStr | The analysis of Range Quickselect and related problems() |
title_full_unstemmed | The analysis of Range Quickselect and related problems() |
title_short | The analysis of Range Quickselect and related problems() |
title_sort | analysis of range quickselect and related problems() |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3204921/ https://www.ncbi.nlm.nih.gov/pubmed/22163377 http://dx.doi.org/10.1016/j.tcs.2011.06.030 |
work_keys_str_mv | AT martinezconrado theanalysisofrangequickselectandrelatedproblems AT panholzeralois theanalysisofrangequickselectandrelatedproblems AT prodingerhelmut theanalysisofrangequickselectandrelatedproblems AT martinezconrado analysisofrangequickselectandrelatedproblems AT panholzeralois analysisofrangequickselectandrelatedproblems AT prodingerhelmut analysisofrangequickselectandrelatedproblems |