A Fenwick /Binary Indexed Tree Implementation

Revision en1, by ameya, 2018-06-12 23:37:33

Hey everyone,
I've recently implemented a Fenwick Tree (probably better known a Binary Indexed Tree or a BIT) supporting range-based and point-based sum queries as well as updates, in C++ 14.
The approach was inspired by Petr's blog here!
The implementation is available on github here under fenwicktree.hpp.
Any comments and suggestions are welcome!

Tags #data structure, bit/fenwick tree

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ameya 2018-06-12 23:37:33 542 Initial revision (published)