The magic of a number system
Authors:Amr Elmasry, Claus Jensen, and Jyrki Katajainen
Published in:Proceedings of the 5th International Conference on Fun with Algorithms, Lecture Notes in Computer Science 6099, Springer-Verlag (2010), 156-165
Full text:<pdf.gif>PDF (134 kB)  
Copyright:© Springer-Verlag

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.

Related:<html.gif>HTML (Journal article)  
  author = {Amr Elmasry and Claus Jensen and Jyrki Katajainen},
  title = {The magic of a number system},
  booktitle = {Proceedings of the 5th International Conference on Fun with
  series = {Lecture Notes in Computer Science},
  volume = {6099},
  publisher = {Springer-Verlag},
  year = {2010},
  pages = {156--165},
This page was generated by Jyrki Katajainen <> on 31.12.2011.