A Constant Optimization of the Binary Indexed Tree Query Operation

preprint2016arXivOpen access

Abstract

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)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)O(\log{n}), but requires about log⁡ϕ2n\log_{ϕ^{2}} n computations for the Query Operation as opposed to the log⁡2n\log_{2} n computations required for a BIT Query Operation in the worst case.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.