Priority Queues and Multisets

  • M. D. Atkinson
  • S. A. Linton
  • L. A. Walker

Abstract

A priority queue, a container data structure equipped with the operations insert and delete-minimum, can re-order its input in various ways, depending both on the input and on the sequence of operations used. If a given input $\sigma$ can produce a particular output $\tau$ then $(\sigma,\tau)$ is said to be an allowable pair. It is shown that allowable pairs on a fixed multiset are in one-to-one correspondence with certain k-way trees and, consequently, the allowable pairs can be enumerated. Algorithms are presented for determining the number of allowable pairs with a fixed input component, or with a fixed output component. Finally, generating functions are used to study the maximum number of output components with a fixed input component, and a symmetry result is derived.

Published
1995-11-10
How to Cite
Atkinson, M. D., Linton, S. A., & Walker, L. A. (1995). Priority Queues and Multisets. The Electronic Journal of Combinatorics, 2(1), R24. https://doi.org/10.37236/1218
Article Number
R24