arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 1612.09083cs.DS
收藏

二叉索引树查询操作的常数优化

A Constant Optimization of the Binary Indexed Tree Query Operation

Anubhav Baweja

摘要:

有几种数据结构可以有效地计算数组的前缀和,同时处理数组上的点更新,例如段树和二进制索引树(BIT)。这两种数据结构都可以在$O(\log{n})$时间内处理这两个操作(查询和更新)。在本文中,我们提出了一个类似于BIT的数据结构,但具有更小的常数。要做到这一点,我们使用Zeckendorf定理,斐波那契数列的一个属性。新的数据结构实现了与$O(\log{n})$相同的复杂度,但是与最坏情况下BIT查询操作所需的$\log_{2} n$计算相反,查询操作需要大约$\log_{ϕ^{2}} n$计算。

英文摘要:

There are several data structures which can calculate the prefix sums of an array efficiently, while handling point updates on the array, such as Segment Trees and Binary Indexed Trees (BIT). Both these data structures can handle the these two operations (query and update) in $O(\log{n})$ time. In this paper, we present a data structure similar to the BIT, but with an even smaller constant. To do this, we use Zeckendorf's Theorem, a property of the Fibonacci sequence of numbers. The new data structure achieves the same complexity of $O(\log{n})$, but requires about $\log_{ϕ^{2}} n$ computations for the Query Operation as opposed to the $\log_{2} n$ computations required for a BIT Query Operation in the worst case.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑