English

Equivalence between Priority Queues and Sorting in External Memory

Data Structures and Algorithms 2012-07-19 v1

Abstract

A priority queue is a fundamental data structure that maintains a dynamic ordered set of keys and supports the followig basic operations: insertion of a key, deletion of a key, and finding the smallest key. The complexity of the priority queue is closely related to that of sorting: A priority queue can be used to implement a sorting algorithm trivially. Thorup \cite{thorup2007equivalence} proved that the converse is also true in the RAM model. In particular, he designed a priority queue that uses the sorting algorithm as a black box, such that the per-operation cost of the priority queue is asymptotically the same as the per-key cost of sorting. In this paper, we prove an analogous result in the external memory model, showing that priority queues are computationally equivalent to sorting in external memory, under some mild assumptions. The reduction provides a possibility for proving lower bounds for external sorting via showing a lower bound for priority queues.

Keywords

Cite

@article{arxiv.1207.4383,
  title  = {Equivalence between Priority Queues and Sorting in External Memory},
  author = {Zhewei Wei and Ke Yi},
  journal= {arXiv preprint arXiv:1207.4383},
  year   = {2012}
}

Comments

11 pages, 1 figure

R2 v1 2026-06-21T21:37:52.136Z