Sciweavers

FUN
2010
Springer

The Magic of a Number System

14 years 4 months ago
The Magic of a Number System
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 2i −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.
Amr Elmasry, Claus Jensen, Jyrki Katajainen
Added 23 Aug 2010
Updated 23 Aug 2010
Type Conference
Year 2010
Where FUN
Authors Amr Elmasry, Claus Jensen, Jyrki Katajainen
Comments (0)