Jes2ica.IO

coding, trading, reading

  1. 1. Problem
  2. 2. Naive Solution
  3. 3. Idea
  4. 4. Example
  5. 5. Applications
  6. 6. More info:

A Fenwick tree or binary indexed tree is a data structure that can efficiently update elements and calculate prefix sums in a table of numbers. This structure was proposed by Peter Fenwick in 1994 to improve the efficiency of arithmetic coding compression algorithms.

Problem

  1. add marble to box i
  2. sum marbles from box k to box l

Naive Solution

Idea

Example

Applications

More info:

This article was last updated on days ago, and the information described in the article may have changed.