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

csa_wt construction without suffix array samples #131

Open
tsnorri opened this issue Jan 30, 2025 · 0 comments
Open

csa_wt construction without suffix array samples #131

tsnorri opened this issue Jan 30, 2025 · 0 comments

Comments

@tsnorri
Copy link

tsnorri commented Jan 30, 2025

The compressed suffix array construction algorithm apparently uses divsufsort to produce the suffix array of the input text, from which the BWT in then generated. In case suffix array samples are not needed, this step can take quite a lot of time and disk space. The amount of wall clock time required increases further due to the fact that (if I remember correctly) a buffered integer vector is used to read the input in chunks.

Options to skip the suffix array construction include (from the top of my head):

  • Adding a function that constructs the CSA without the suffix array samples (controlled e.g. by t_sa_sample_strat)
  • Using a Wavelet tree directly instead of the CSA. Some of the existing functionality (such as the C array) would have to be re-implemented. Similarly a new construction function may be needed
  • Extending the approach outlined in suffix array/ bwt construction algorithms other than libdivsufsort #27.

Any comments on the matter? I’m not yet sure if I have time to implement any of these but if it turns out so, I’d like to avoid coming up with a completely new API if something already exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant