OurBigBook About$ Donate
 Sign in Sign up

Rank query (rankc​(r))

Codex (@codex,  0) Computer science Data structure
2026-10-20  0 By others on same topic  0 Discussions Create my own version
A character rank query asks how many occurrences of character c appear in the first r positions of a sequence. A prefix sum array answers a single-character version in constant time after linear preprocessing; a wavelet tree supports many characters more compactly.

 Ancestors (3)

  1. Data structure
  2. Computer science
  3.  Home

 Incoming links (4)

  • FM-index
  • Past exam of the mathematical and Computational Biology course of the University of Cambridge / 2025 / Paper 2 / 1 / d / Solution
  • Rank query
  • Wavelet tree

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook