The magic of a number system

Amr Ahmed Abd Elmoneim Elmasry*, Claus Jensen, Jyrki Katajainen

*Corresponding author for this work
1 Citation (Scopus)

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 languageEnglish
Title of host publicationFun with Algorithms : 5th International Conference, FUN 2010, Ischia, Italy, June 2-4, 2010. Proceedings
EditorsPaolo Boldi, Luisa Gargano
Number of pages10
PublisherSpringer
Publication date2010
Pages156-165
ISBN (Print)978-3-642-13121-9
ISBN (Electronic)978-3-642-13122-6
DOIs
Publication statusPublished - 2010
Event5th International Conference on Fun with Algorithms - Ischia, Italy
Duration: 2 Jun 20104 Jun 2010
Conference number: 5

Conference

Conference5th International Conference on Fun with Algorithms
Number5
Country/TerritoryItaly
CityIschia
Period02/06/201004/06/2010
SeriesLecture notes in computer science
Volume6099
ISSN0302-9743

Fingerprint

Dive into the research topics of 'The magic of a number system'. Together they form a unique fingerprint.

Cite this