Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Wavelet Matrix #10

Merged
merged 81 commits into from
Aug 8, 2024
Merged

Introduce Wavelet Matrix #10

merged 81 commits into from
Aug 8, 2024

Conversation

Cydhra
Copy link
Owner

@Cydhra Cydhra commented Jul 16, 2024

Merge the Wavelet Matrix (#4) into main. This Pull Request is tracking the progress.

Things left to do:

  • write tests for all convenience functions to make sure no oversights are left
  • write the quantile function to allow some summary statistics on the encoded sequence
  • mirror all rank/select functions to use a u64 in place of the BitVec parameter for convenient access with less than 64 bit alphabets
  • implement an iterator over the sequence
  • implement sequential prefix counting as a constructor (https://doi.org/10.1145/3457197)
  • implement FromIterator
  • finalize the decisions when to return None in checked rank/select functions, and when to panic
  • Add examples to doc comments
  • Add sorted iterator
  • predecessor and successor functions

@Cydhra Cydhra added the enhancement New feature or request label Jul 16, 2024
Cydhra added 17 commits July 28, 2024 00:03
The prefix could be malformed due to a longer tree traversal until we notice that our interval doesnt contain the result, and those changes to the prefix must be reverted. Now the pred/succ function just clones the prefix at the level where we start quantile search from, so the prefix is guaranteed correct.

The code for pred/succ and their _u64 counterparts is also deduplicated
…the prefix must be updated with the corresponding bit
@Cydhra Cydhra marked this pull request as draft July 28, 2024 16:18
@Cydhra Cydhra linked an issue Aug 8, 2024 that may be closed by this pull request
@Cydhra Cydhra marked this pull request as ready for review August 8, 2024 14:48
@Cydhra Cydhra merged commit 479105b into master Aug 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WaveletMatrix
1 participant