Open In App

Binary Indexed Tree/Fenwick Tree meaning in DSA

Binary Indexed Tree (BIT), also known as Fenwick Tree, is a data structure used for efficiently querying and updating cumulative frequency tables, or prefix sums. 

A Fenwick Tree is a complete binary tree, where each node represents a range of elements in an array and stores the sum of the elements in that range. Below is a simple structure of a Binary indexed tree.

Characteristics of Fenwick Tree:

Advantages of Fenwick Tree:

Disadvantages of Fenwick Tree:

Application of Fenwick Tree:

What else can you read?

Article Tags :