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 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 , but requires about computations for the Query Operation as opposed to the 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