Abstract
We introduce a new number system that supports increments with a constant number of digit changes. We also give a simple method that extends any number system supporting increments to support decrements using the same number of digit changes. In the new number system the weight of the ith digit is 2 i-1, and hence we can implement a priority queue as a forest of heap-ordered complete binary trees. The resulting data structure guarantees O(1) worst-case cost per insert and O(lg n) worst-case cost per delete, where n is the number of elements stored.
Original language | English |
---|---|
Title of host publication | Fun with Algorithms : 5th International Conference, FUN 2010, Ischia, Italy, June 2-4, 2010. Proceedings |
Editors | Paolo Boldi, Luisa Gargano |
Number of pages | 10 |
Publisher | Springer |
Publication date | 2010 |
Pages | 156-165 |
ISBN (Print) | 978-3-642-13121-9 |
ISBN (Electronic) | 978-3-642-13122-6 |
DOIs | |
Publication status | Published - 2010 |
Event | 5th International Conference on Fun with Algorithms - Ischia, Italy Duration: 2 Jun 2010 → 4 Jun 2010 Conference number: 5 |
Conference
Conference | 5th International Conference on Fun with Algorithms |
---|---|
Number | 5 |
Country/Territory | Italy |
City | Ischia |
Period | 02/06/2010 → 04/06/2010 |
Series | Lecture notes in computer science |
---|---|
Volume | 6099 |
ISSN | 0302-9743 |