Title :
Equivalence between priority queues and sorting
Author_Institution :
Shannon Lab., AT&T Labs.-Res., Florham Park, NJ, USA
Abstract :
We present a general deterministic linear space reduction from priority queues to sorting implying that if we can sort up to n keys in S(n) time per key, then there is a priority queue supporting delete and insert in S(n)+O(1) time and find-min in constant time. Conversely, a priority queue can trivially be used for sorting: first insert all keys to be sorted, then extract them in sorted order by repeatedly deleting the minimum. Hence, asymptotically this settles the complexity of priority queues in terms of that of sorting. Besides nailing down the complexity of priority queues to that of sorting, and vice versa, we translate known sorting results into new results on priority queues for integers and strings in different computational models.
Keywords :
computational complexity; deterministic algorithms; queueing theory; sorting; complexity; computational models; deterministic linear space reduction; integers; priority queues; sorting; strings; Computational modeling; Costs; Data structures; Greedy algorithms; Laboratories; Operating systems; Processor scheduling; Read-write memory; Scheduling algorithm; Sorting;
Conference_Titel :
Foundations of Computer Science, 2002. Proceedings. The 43rd Annual IEEE Symposium on
Print_ISBN :
0-7695-1822-2
DOI :
10.1109/SFCS.2002.1181889