Selection from heaps, row-sorted matrices and X+Y using soft heaps

02/20/2018
by   Haim Kaplan, et al.
0

We use soft heaps to obtain simpler optimal algorithms for selecting the k-th smallest item, and the set of k smallest items, from a heap-ordered tree, from a collection of sorted lists, and from X+Y, where X and Y 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 k-th smallest item, or the set of k smallest items, from a collection of m sorted lists we obtain a new optimal "output-sensitive" algorithm that performs only O(m+∑_i=1^m (k_i+1)) comparisons, where k_i is the number of items of the i-th list that belong to the overall set of k smallest items.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/30/2019

A Hierarchical Self-Attentive Model for Recommending User-Generated Item Lists

User-generated item lists are a popular feature of many different platfo...
research
01/06/2020

An Optimal Algorithm for 1-D Cutting Stock Problem

We present an nΔ^O(k^2) time algorithm to obtain an optimal solution for...
research
05/12/2021

Open-end bin packing: new and old analysis approaches

We analyze a recently introduced concept, called the price of clustering...
research
09/15/2016

Concordance and the Smallest Covering Set of Preference Orderings

Preference orderings are orderings of a set of items according to the pr...
research
01/10/2018

Buying Online - A Characterization of Rational Buying Procedures

In decision theory, an agent chooses from a set of alternatives. When bu...
research
08/12/2020

Soft Sequence Heaps

Chazelle [JACM00] introduced the soft heap as a building block for effic...
research
01/19/2019

Computing Optimal Tangles Faster

We study the following combinatorial problem. Given a set of n y-monoton...

Please sign up or login with your details

Forgot password? Click here to reset