Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Back to Home

Bit Vectors

We define 3 operations on bitvectors

  • Access(B, i): returns the element at pos in
  • Rank(B, i): returns the number of 1's in the range
  • Select(B, x): returns the position in which the rank becomes x, or if .

The book covers both the zero-order and k-th order compression of