Cargando…
Optimally selecting the top k values from X + Y with layer-ordered heaps
Selection and sorting the Cartesian sum, X + Y, are classic and important problems. Here, a new algorithm is presented, which generates the top k values of the form [Image: see text] . The algorithm relies on layer-ordered heaps, partial orderings of exponentially sized layers. The algorithm relies...
Autor principal: | |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
PeerJ Inc.
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8114817/ https://www.ncbi.nlm.nih.gov/pubmed/34013031 http://dx.doi.org/10.7717/peerj-cs.501 |
_version_ | 1783691123871449088 |
---|---|
author | Serang, Oliver |
author_facet | Serang, Oliver |
author_sort | Serang, Oliver |
collection | PubMed |
description | Selection and sorting the Cartesian sum, X + Y, are classic and important problems. Here, a new algorithm is presented, which generates the top k values of the form [Image: see text] . The algorithm relies on layer-ordered heaps, partial orderings of exponentially sized layers. The algorithm relies only on median-of-medians and is simple to implement. Furthermore, it uses data structures contiguous in memory, cache efficient, and fast in practice. The presented algorithm is demonstrated to be theoretically optimal. |
format | Online Article Text |
id | pubmed-8114817 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
publisher | PeerJ Inc. |
record_format | MEDLINE/PubMed |
spelling | pubmed-81148172021-05-18 Optimally selecting the top k values from X + Y with layer-ordered heaps Serang, Oliver PeerJ Comput Sci Algorithms and Analysis of Algorithms Selection and sorting the Cartesian sum, X + Y, are classic and important problems. Here, a new algorithm is presented, which generates the top k values of the form [Image: see text] . The algorithm relies on layer-ordered heaps, partial orderings of exponentially sized layers. The algorithm relies only on median-of-medians and is simple to implement. Furthermore, it uses data structures contiguous in memory, cache efficient, and fast in practice. The presented algorithm is demonstrated to be theoretically optimal. PeerJ Inc. 2021-05-06 /pmc/articles/PMC8114817/ /pubmed/34013031 http://dx.doi.org/10.7717/peerj-cs.501 Text en © 2021 Serang https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited. |
spellingShingle | Algorithms and Analysis of Algorithms Serang, Oliver Optimally selecting the top k values from X + Y with layer-ordered heaps |
title | Optimally selecting the top k values from X + Y with layer-ordered heaps |
title_full | Optimally selecting the top k values from X + Y with layer-ordered heaps |
title_fullStr | Optimally selecting the top k values from X + Y with layer-ordered heaps |
title_full_unstemmed | Optimally selecting the top k values from X + Y with layer-ordered heaps |
title_short | Optimally selecting the top k values from X + Y with layer-ordered heaps |
title_sort | optimally selecting the top k values from x + y with layer-ordered heaps |
topic | Algorithms and Analysis of Algorithms |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8114817/ https://www.ncbi.nlm.nih.gov/pubmed/34013031 http://dx.doi.org/10.7717/peerj-cs.501 |
work_keys_str_mv | AT serangoliver optimallyselectingthetopkvaluesfromxywithlayerorderedheaps |