In-place binary counters

Amr Ahmed Abd Elmoneim Elmasry, Jyrki Katajainen

1 Citationer (Scopus)

Abstract

We introduce a binary counter that supports increments and decrements in O(1) worst-case time per operation. (We assume that arithmetic operations on an index variable that is stored in one computer word can be performed in O(1) time each.) To represent any integer in the range from 0 to 2n - 1, our counter uses an array of at most n bits plus few words of ⌈lg(1 + n)⌉ bits each. Extended-regular and strictly-regular counters are known to also support increments and decrements in O(1) worst-case time per operation, but the implementation of these counters would require O(n) words of extra space, whereas our counter only needs O(1) words of extra space. Compared to other space-efficient counters, which rely on Gray codes, our counter utilizes codes with binary weights allowing for its usage in the construction of efficient data structures.

OriginalsprogEngelsk
TitelMathematical Foundations of Computer Science 2013 : 38th International Symposium, MFCS 2013, Klosterneuburg, Austria, August 26-30, 2013. Proceedings
RedaktørerKrishnendu Chatterjee, Jirí Sgall
Antal sider12
ForlagSpringer
Publikationsdato2013
Sider349-360
ISBN (Trykt)978-3-642-40312-5
ISBN (Elektronisk)978-3-642-40313-2
DOI
StatusUdgivet - 2013
Begivenhed38th International Symposium on Mathematical Foundations of Computer Science 2013 - Klosterneuburg, Østrig
Varighed: 26 aug. 201330 aug. 2013
Konferencens nummer: 38

Konference

Konference38th International Symposium on Mathematical Foundations of Computer Science 2013
Nummer38
Land/OmrådeØstrig
ByKlosterneuburg
Periode26/08/201330/08/2013
NavnLecture notes in computer science
ISSN0302-9743

Fingeraftryk

Dyk ned i forskningsemnerne om 'In-place binary counters'. Sammen danner de et unikt fingeraftryk.

Citationsformater