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.
Originalsprog | Engelsk |
---|---|
Titel | Mathematical Foundations of Computer Science 2013 : 38th International Symposium, MFCS 2013, Klosterneuburg, Austria, August 26-30, 2013. Proceedings |
Redaktører | Krishnendu Chatterjee, Jirí Sgall |
Antal sider | 12 |
Forlag | Springer |
Publikationsdato | 2013 |
Sider | 349-360 |
ISBN (Trykt) | 978-3-642-40312-5 |
ISBN (Elektronisk) | 978-3-642-40313-2 |
DOI | |
Status | Udgivet - 2013 |
Begivenhed | 38th International Symposium on Mathematical Foundations of Computer Science 2013 - Klosterneuburg, Østrig Varighed: 26 aug. 2013 → 30 aug. 2013 Konferencens nummer: 38 |
Konference
Konference | 38th International Symposium on Mathematical Foundations of Computer Science 2013 |
---|---|
Nummer | 38 |
Land/Område | Østrig |
By | Klosterneuburg |
Periode | 26/08/2013 → 30/08/2013 |
Navn | Lecture notes in computer science |
---|---|
ISSN | 0302-9743 |