Skip to content

Commit

Permalink
Update bwt/wavelet.go
Browse files Browse the repository at this point in the history
Doc improvement.

Co-authored-by: Willow Carretero Chavez <sandiegobutterflies@gmail.com>
  • Loading branch information
TwFlem and carreter authored Dec 21, 2023
1 parent 9e02f5d commit 92ed9da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bwt/wavelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ a characters path encoding and which character we'd like to Rank, Select, and Ac
### Rank Example
WaveletTree.Rank(c, n) returns the rank of character c at index n in a sequence, i.e. how many
times c has occurred in a sequence before index n.
To get WaveletTree.Rank(a, 4) of bananas where a's encoding is 00
1. root.Rank(0, 4) of 0010101 is 2
2. Visit Left Child
Expand Down

0 comments on commit 92ed9da

Please sign in to comment.