CACrown ArchivesThe cinema collection
Menu
Research dossier · General Reference

Fenwick tree

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

Cross-disciplinary reference desk with index cards, atlas, dictionary and catalogue
General referenceInterpretive dossier study · Crown Archives visual atlas
Record originEnglish Wikipedia
Text licenseCC BY-SA 4.0
Source revisionAug 28, 2026
Entity authorityQ1276370
Source-derived summary

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.

Editorial summary

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.

Editorial reviewA concise reference frame for defining the subject, testing terminology and identifying the institution closest to the evidence. The current lead gives the account dated anchors—1989, 1992, 1994—that can be checked directly. The selected authority fields contribute no independent date. For this dossier, Fenwick, tree and data is the immediate research focus.
Editorial analysis

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.

Evidence profile

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.

Critical limits

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.

Best used for
  • Subject orientation
  • Search vocabulary
  • Locating named sources
Verify next

The closest primary source, responsible institution and strongest cited specialist reference.

Three-step research path

  1. Establish the record: confirm the title “Fenwick tree”, its source revision and the description used here.
  2. Expand the search: follow Fenwick tree primary sources, Fenwick tree archive and Fenwick research across catalogues and specialist indexes.
  3. Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.

Questions for further research

  1. Which source most directly establishes the central claim about “Fenwick tree”?
  2. Which cited source is closest to the event, object or claim?
  3. What terminology or title could unlock a more precise catalogue search?
Subject index

Search terms from this dossier

Source & attribution

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.