English

A Constant Optimization of the Binary Indexed Tree Query Operation

Data Structures and Algorithms 2016-12-30 v1

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

Keywords

Cite

@article{arxiv.1612.09083,
  title  = {A Constant Optimization of the Binary Indexed Tree Query Operation},
  author = {Anubhav Baweja},
  journal= {arXiv preprint arXiv:1612.09083},
  year   = {2016}
}

Comments

7 pages, 2 figures, 2 graphs, 4 algorithms

R2 v1 2026-06-22T17:36:36.137Z