In-Place Binary Counters

被引:0
作者
Elmasry, Amr [1 ,2 ]
Katajainen, Jyrki [2 ]
机构
[1] Univ Alexandria, Dept Comp Engn & Syst, Alexandria 21544, Egypt
[2] Univ Copenhagen, Dept Comp Sci, DK-2100 Copenhagen, Denmark
来源
MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 2013 | 2013年 / 8087卷
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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 2(n)-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.
引用
收藏
页码:349 / 360
页数:12
相关论文
共 17 条
  • [1] [Anonymous], 1998, Purely Functional Data Structures
  • [2] Bose P, 2010, LECT NOTES COMPUT SC, V6139, P224, DOI 10.1007/978-3-642-13731-0_22
  • [3] Brodal GS, 2011, LECT NOTES COMPUT SC, V6648, P206
  • [4] Clancy M.J., 1977, STANCS77606 STANDF U
  • [5] Demaine E., 2012, ADV DATA STRUCTURES, V17
  • [6] RELAXED HEAPS - AN ALTERNATIVE TO FIBONACCI HEAPS WITH APPLICATIONS TO PARALLEL COMPUTATION
    DRISCOLL, JR
    GABOW, HN
    SHRAIRMAN, R
    TARJAN, RE
    [J]. COMMUNICATIONS OF THE ACM, 1988, 31 (11) : 1343 - 1354
  • [7] Elmasry Amr, 2012, Computer Science - Theory and Applications. Proceedings 7th International Computer Science Symposium in Russia, CSR 2012, P125, DOI 10.1007/978-3-642-30642-6_13
  • [8] Two-tier relaxed heaps
    Elmasry, Amr
    Jensen, Claus
    Katajainen, Jyrki
    [J]. ACTA INFORMATICA, 2008, 45 (03) : 193 - 210
  • [9] Elmasry A, 2010, LECT NOTES COMPUT SC, V6139, P26, DOI 10.1007/978-3-642-13731-0_4
  • [10] Multipartite Priority Queues
    Elmasry, Amr
    Jensen, Claus
    Katajainen, Jyrki
    [J]. ACM TRANSACTIONS ON ALGORITHMS, 2008, 5 (01)