Selection from heaps, row-sorted matrices and $X+Y$ using soft heaps
Data Structures and Algorithms
2018-02-21 v1
Abstract
We use soft heaps to obtain simpler optimal algorithms for selecting the -th smallest item, and the set of~ smallest items, from a heap-ordered tree, from a collection of sorted lists, and from , where and are two unsorted sets. Our results match, and in some ways extend and improve, classical results of Frederickson (1993) and Frederickson and Johnson (1982). In particular, for selecting the -th smallest item, or the set of~ smallest items, from a collection of~ sorted lists we obtain a new optimal "output-sensitive" algorithm that performs only comparisons, where is the number of items of the -th list that belong to the overall set of~ smallest items.
Cite
@article{arxiv.1802.07041,
title = {Selection from heaps, row-sorted matrices and $X+Y$ using soft heaps},
author = {Haim Kaplan and László Kozma and Or Zamir and Uri Zwick},
journal= {arXiv preprint arXiv:1802.07041},
year = {2018}
}
Comments
20 pages, 4 figures