An open API service indexing awesome lists of open source software.

https://github.com/dimitrisjim/bit

Binary Indexed (Fenwick) Trees
https://github.com/dimitrisjim/bit

binary-indexed-tree fenwick-trees

Last synced: 2 months ago
JSON representation

Binary Indexed (Fenwick) Trees

Awesome Lists containing this project

README

        

# BIT

Binary Index Tree. WIP.

## Operations:

Link plots create from running `python stats`, describe why we see `O(N)` and `O(logN)` ops. TODO: Add these in docs somewhere.

### Initialization:

(or, `BIT.create`) O(N) Operation.

##### Getting the original layout:

##### Appending an item:

##### Updating an items original value:

##### Replacing an items original value:

##### Getting an item (prefix sum):

##### Popping an item:

##### Range Sum

### Plots:

Linear complexity (create, layout)




Logarithmic complexity (append, update, setitem, getitem)