DCCGenomicsPeer-reviewed journal article
Recursive Prefix-Free Parsing for Building Big BWTs
Abstract
Prefix-free parsing is useful for a wide variety of purposes including building the BWT, constructing the suffix array, and supporting compressed suffix tree operations. This linear-time algorithm uses a rolling hash to break an input string into substrings, where the resulting set of unique substrings has the property that none of the substrings suffixes (of more than a certain length) is a proper prefix of any of the other substrings suffixes. Hence, the name prefix-free parsing. This set of unique substrings is referred to as the dictionary. The parse is the ordered list of dictionary strings that defines the input string. Prior empirical results demonstrated the size of the parse is more burdensome than the size of the dictionary for large, repetitive inputs. Hence, the question arises as to how the size of the parse can scale satisfactorily with the input. Here, we describe our algorithm, recursive prefix-free parsing, which accomplishes this by computing the prefix-free parse of the parse produced by prefix-free parsing an input string. Although conceptually simple, building the BWT from the parse-of-the-parse and the dictionaries is significantly more challenging. We solve and implement this problem. Our experimental results show that recursive prefix-free parsing is extremely effective in reducing the memory needed to build the run-length encoded BWT of the input. Our implementation is open source and available at https://github.com/marco-oliva/r-pfbwt.
- Citations
- 8
- FWCI
- 1.42
- Field percentile
- top 15%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Prefix-Free Parsing for Building Big BWTs
Christina A. Boucher, Travis Gagie, … Taher Mun·Algorithms for Molecular BiologyPeer-reviewed·May 24, 2019
- Building a Pangenome Alignment Index via Recursive Prefix-Free Parsing
Marco Oliva, Travis Gagie, Christina A. Boucher·bioRxiv·Jan 26, 2023
- Recursive RePair: Increasing the Scalability of RePair by Decreasing Memory Usage
J.H. Kim, Rahul Varki, … Christina A. Boucher·bioRxiv·Jul 11, 2024
- Linear indexing for all strings under all internal nodes in suffix trees
Anas Al-okaily, Abdelghani Tbakhi·Frontiers in BioinformaticsPeer-reviewed·Sep 4, 2025
- Measuring Genomic Data with PFP
Simone Lucà, Francesco Masillo, Zsuzsanna Lipták·Computational Biology and ChemistryPeer-reviewed·Dec 30, 2025
- Efficient Grammar Compression via RLZ-based RePair
Rahul Varki, Travis Gagie, Christina A. Boucher·bioRxiv·Jul 22, 2025