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)  
DOI:10.1007/978-3-642-13122-6_17
Copyright:© Springer-Verlag
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 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)  
BibLATEX:
@inproceedings{EJK2010aC,
  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
    Algorithms},
  series = {Lecture Notes in Computer Science},
  volume = {6099},
  publisher = {Springer-Verlag},
  year = {2010},
  pages = {156--165},
}
This page was generated by Jyrki Katajainen <jyrki@di.ku.dk> on 31.12.2011.