Fenwick tree
data structure that can efficiently update elements and calculate prefix sums in a table of numbers

A Fenwick tree or binary indexed tree (BIT) is a data structure that stores an array of values and can efficiently compute prefix sums of the values and update the values. It also supports an efficient rank-search operation for finding the longest prefix whose sum is no more than a specified value. Its primary use is operating on the cumulative distribution function of a statistical frequency table which is updated often.
This structure was proposed by Boris Ryabko in 1989
with a further modification published in 1992.
It has subsequently become known under the name Fenwick tree after Peter Fenwick, who described this structure in his 1994 article.
A simple array of values is trivial (constant-time) to update but requires
O
(
n
)
{\displaystyle O(n)}
time to compute a prefix sum or search for a prefix length.
An array of prefix sums can return a prefix sum in constant time, and search for a prefix length in
O
(
log
n
)
{\displaystyle O(\log n)}
time, but requires
O
(
n
)
{\displaystyle O(n)}
time to update one of the values.
A Fenwick tree allows all three operations to be performed in
O
(
log
n
)
{\displaystyle O(\log n)}
time. This is achieved by representing the values as a tree with
n
+
1
{\displaystyle n+1}
nodes where each node in the tree stores the sum of the values from the index of its parent (exclusive) up to the index of the node (inclusive). The tree itself is implicit and can be stored as an array of
n
{\displaystyle n}
values, with the implicit root node omitted from the array.
Begin with the source’s own compact description: “Fenwick tree” is data structure that can efficiently update elements and calculate prefix sums in a table of numbers. The dossier treats that line as a proposition to test through Fenwick, tree and data, not as a finished interpretation.
Why this record matters
The phrase “data structure that can efficiently update elements and calculate prefix sums in a table of numbers” supplies a clear boundary for inquiry. It also exposes the unanswered questions: who defined that boundary, when it became stable and which sources sit outside it.
Vocabulary and entity names are the principal evidence signals here, because they determine the precision of every later search. The source revision retrieved here is dated Aug 28, 2026. The linked authority identifier is Q1276370. None of the 0 selected statements returned an explicit reference. The first chronological checks are 1989, 1992 and 1994.
The absence of detail may reflect summary conventions rather than a lack of surviving documentation. The lead is largely declarative, so disagreement and counter-evidence require a deliberate search beyond the opening account. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.
How to read it
Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.
- Subject orientation
- Search vocabulary
- Locating named sources
The closest primary source, responsible institution and strongest cited specialist reference.
Three-step research path
- Establish the record: confirm the title “Fenwick tree”, its source revision and the description used here.
- Expand the search: follow Fenwick tree primary sources, Fenwick tree archive and Fenwick research across catalogues and specialist indexes.
- Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.
Questions for further research
- Which source most directly establishes the central claim about “Fenwick tree”?
- Which cited source is closest to the event, object or claim?
- What terminology or title could unlock a more precise catalogue search?
Search terms from this dossier
This entry incorporates text from “Fenwick tree” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.