Optimally selecting the top k values from X + Y with layer-ordered heaps
Year: 2021
Type: article
Abstract: 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 X i + Y j . 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.
Source: PeerJ Computer Science
DOI: 10.7717/peerj-cs.501
Author: Oliver Serang
Institution: University of Montana
Language: English
Subfield: Computational Theory and Mathematics
Field: Computer Science
Domain: Physical Sciences
Open Access status: gold
Estimated APC paid: $1,395
Funder: National Science Foundation
OpenAlex ID: W3158657510
