Papers
Topics
Authors
Recent
Search
2000 character limit reached

Extended Burrows-Wheeler Transform (eBWT)

Updated 28 November 2025
  • Extended Burrows-Wheeler Transform (eBWT) is a generalization of the classical BWT that processes collections of strings, graphs, or combinatorial structures for advanced indexing and compression.
  • Algorithmic strategies such as GSA-based methods, suffix array adaptations, and Lyndon grammar approaches achieve efficient eBWT construction with linear or near-linear time complexity for large datasets.
  • Practical applications include reference‐free genomic analysis, pattern matching, and compressed indexing of highly repetitive data, while open challenges remain in optimal run decomposition and dynamic updates.

The extended Burrows–Wheeler Transform (eBWT) generalizes the classical Burrows–Wheeler Transform from single-string input to collections or multisets of strings, graphs, or even more general combinatorial structures. This extension preserves and amplifies many of the combinatorial, algebraic, and algorithmic properties that make the original transform central in text indexing, compression, and bioinformatics, especially in settings where data repetitiveness and structural complexity are paramount. The eBWT underlies a wide spectrum of advanced data structures, including those for reference-free genomic analysis, suffix and Wheeler graph-based indexes, and compressed representations of highly repetitive datasets.

1. Mathematical Foundations and Formal Definitions

The eBWT for a multiset of strings M={S1,S2,...,Sk}M = \{S^1, S^2, ..., S^k\} over a totally ordered alphabet Σ\Sigma is constructed by considering all conjugates (cyclic rotations) of the strings in MM, forming a collection CC, and sorting CC in infinite periodic order <<_\infty, whereby U<VU <_\infty V iff UU^\infty is lexicographically smaller than VV^\infty. The transform eBWT(M)eBWT(M) is the sequence of characters that precede each sorted conjugate in this order, yielding a string of length N=SMSN = \sum_{S\in M} |S| (Olbrich, 27 Apr 2025, Higgins, 2019, Ingels et al., 5 Jun 2025).

For string collections, the framework can also be formulated via the generalized suffix array (GSA) and the multi-string BWT:

  • GSA[i]=(j,r)[i] = (j, r) indicates that the ii-th smallest suffix (over all augmented strings $S_r\$ _r)startsatposition) starts at positionjininS_r.</li><li>.</li> <li>eBWT[i]is is S_r[j-1]if if j>1and and \$_rififj=1(<ahref="/papers/1805.01876"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Prezzaetal.,2018</a>).</li></ul><p>Theconstructionextendssmoothlytomoregeneralobjects.OnWheelergraphs,theeBWTisthestringofedgelabelsinWheelerorder(<ahref="/papers/1811.02457"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Alankoetal.,2018</a>),andfurthergeneralizations(e.g.,treestructuredinput,seeXBWT)areavailableforlabeledtrees(<ahref="/papers/1809.07320"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Gagieetal.,2018</a>).</p><h2class=paperheadingid=algorithmicconstructionandcomplexity>2.AlgorithmicConstructionandComplexity</h2><p>MultiplealgorithmicapproachesexistforeBWTconstructionacrossdifferentsettings:</p><ul><li><strong>GSAbased:</strong>Foracollectionof (<a href="/papers/1805.01876" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Prezza et al., 2018</a>).</li> </ul> <p>The construction extends smoothly to more general objects. On Wheeler graphs, the eBWT is the string of edge-labels in Wheeler order (<a href="/papers/1811.02457" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Alanko et al., 2018</a>), and further generalizations (e.g., tree-structured input, see XBWT) are available for labeled trees (<a href="/papers/1809.07320" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Gagie et al., 2018</a>).</p> <h2 class='paper-heading' id='algorithmic-construction-and-complexity'>2. Algorithmic Construction and Complexity</h2> <p>Multiple algorithmic approaches exist for eBWT construction across different settings:</p> <ul> <li><strong>GSA-based:</strong> For a collection of mstrings,computetheGSAandcorrespondingLCParrayin strings, compute the GSA and corresponding LCP array in O(P)timeandspace,with time and space, with P = \sum_i |S_i|(<ahref="/papers/1805.01876"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Prezzaetal.,2018</a>).</li><li><strong>Suffixarrayadaptation:</strong>Forprimitivefactors,onecancanonicalizeeachinputstringtoitsminimalconjugate,sortthem,concatenate,andcomputetheBBWTbyconstructingthecircularsuffixarray(CSA)under (<a href="/papers/1805.01876" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Prezza et al., 2018</a>).</li> <li><strong>Suffix array adaptation:</strong> For primitive factors, one can canonicalize each input string to its minimal conjugate, sort them, concatenate, and compute the BBWT by constructing the circular suffix array (CSA) under <_\inftyallowinglineartimeconstructionviaanSAISextension(<ahref="/papers/1911.06985"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Bannaietal.,2019</a>).</li><li><strong>Lyndongrammarapproach:</strong>Forlarge,repetitivedatasets,grammarcompressionisleveragedbybuildingLyndonstraightlineprograms(SLPs)representingtheinputcorpus.Constructioninvolvesthreephases:grammarconstruction(Duvalsalgorithmstreamingrighttoleft),lexicographicsortingofnonterminals(viafirstsymbolforests),andeBWTextractionbyenumeratingconjugatesininfiniteperiodicorder.Timeandspacecanbebroughtto allowing linear-time construction via an SAIS extension (<a href="/papers/1911.06985" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Bannai et al., 2019</a>).</li> <li><strong>Lyndon grammar approach:</strong> For large, repetitive datasets, grammar compression is leveraged by building Lyndon straight-line programs (SLPs) representing the input corpus. Construction involves three phases: grammar construction (Duval’s algorithm streaming right-to-left), lexicographic sorting of nonterminals (via first-symbol forests), and eBWT extraction by enumerating conjugates in infinite periodic order. Time and space can be brought to O(N+g)whenthegrammarsize when the grammar size gismuchsmallerthaninputlength is much smaller than input length N,andpracticalimplementationscanfurtherrunlengthencodetheBWTforadditionalcompression(<ahref="/papers/2504.19123"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Olbrich,27Apr2025</a>).</li><li><strong>Dollarlessandtreebased:</strong>Foralignedreadsets,eliminatingseparatorsymbolslowersruncount.TheXBWTmodelremovesexplicitsymbolsbyleveragingthestructureofalabeledtreethatencodesreadsandtheiralignments,withsortingbyupwardpathlabelsreplacingsuffixarrays.Theoverallcostbecomes, and practical implementations can further run-length encode the BWT for additional compression (<a href="/papers/2504.19123" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Olbrich, 27 Apr 2025</a>).</li> <li><strong>Dollarless and tree-based:</strong> For aligned readsets, eliminating separator symbols lowers run count. The XBWT model removes explicit symbols by leveraging the structure of a labeled tree that encodes reads and their alignments, with sorting by upward-path labels replacing suffix arrays. The overall cost becomes O(m \log m),where, where misthenumberofedges(<ahref="/papers/1809.07320"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Gagieetal.,2018</a>).</li></ul><p>Parallelization(e.g.,threadparallelLyndonparsing),hashconsingofgrammarrules,and<ahref="https://www.emergentmind.com/topics/hgtnethybrid"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">hybrid</a>inmemory/externalmemoryschemesenablescalabilitytodatasetscomprisingtensofbillionsofcharacters(<ahref="/papers/2504.19123"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Olbrich,27Apr2025</a>).</p><h2class=paperheadingid=structuralandalgebraicproperties>3.StructuralandAlgebraicProperties</h2><p>TheeBWTisbijectiveonitscombinatorialdomain(e.g.,primitivenecklaces,multisetofstrings)andsupportsinvertibilityakintotheoriginalBWT.Theinverseisperformedbyreconstructingthestandardpermutationassociatedtotheoutputviaorderpreservingpartialmapsbetweenthesortedandoriginaloutputpositions,followedbydecomposingthepermutationintoitscycles,eachcorrespondingtoaprimitiveintheoriginalinput(<ahref="/papers/1901.08392"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Higgins,2019</a>).ThiscyclebasedinversiongeneralizesclassicalBWTinversionandispracticalin is the number of edges (<a href="/papers/1809.07320" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Gagie et al., 2018</a>).</li> </ul> <p>Parallelization (e.g., thread-parallel Lyndon parsing), hash-consing of grammar rules, and <a href="https://www.emergentmind.com/topics/hg-tnet-hybrid" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">hybrid</a> in-memory/external-memory schemes enable scalability to datasets comprising tens of billions of characters (<a href="/papers/2504.19123" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Olbrich, 27 Apr 2025</a>).</p> <h2 class='paper-heading' id='structural-and-algebraic-properties'>3. Structural and Algebraic Properties</h2> <p>The eBWT is bijective on its combinatorial domain (e.g., primitive necklaces, multiset of strings) and supports invertibility akin to the original BWT. The inverse is performed by reconstructing the standard permutation associated to the output via order-preserving partial maps between the sorted and original output positions, followed by decomposing the permutation into its cycles, each corresponding to a primitive in the original input (<a href="/papers/1901.08392" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Higgins, 2019</a>). This cycle-based inversion generalizes classical BWT inversion and is practical in O(N\log k)time( time (Noutputlength, output length, kalphabetsize).</p><p>Thealgebraicperspectiveconnectstheinducedpartialmapstosyntacticsemigroupsofcycliclanguages.Notably,forprimitive alphabet size).</p> <p>The algebraic perspective connects the induced partial maps to syntactic semigroups of cyclic languages. Notably, for primitive u,, S(u) \cong S_ulinkstheeBWTsinducedsemigrouptolanguagetheoreticconstructs(<ahref="/papers/1901.08392"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Higgins,2019</a>).CombinationwithLyndonfactorizationsandbijectionsfacilitatescombinatorialenumerationofspecialobjects(e.g.,deBruijnwords).</p><p>Fortreeandgraphbasedmodels,theeBWTgeneralizestoWheelergraphs,wheretheorderingconstraintsonverticesandedgesyieldefficientrank/selectenablednavigationandensurecorrectnessofFMindexoperationsaftertunnelingandothernontrivialtransformations(<ahref="/papers/1811.02457"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Alankoetal.,2018</a>).</p><h2class=paperheadingid=runcountdecompositionandrlecompressibility>4.RunCount,Decomposition,andRLECompressibility</h2><p>Runlengthencoding(RLE)sizeisdeterminedbythenumberofruns,definedasthenumberofmaximalconstantblocksintheeBWToutput(<ahref="/papers/2506.04926"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Ingelsetal.,5Jun2025</a>,<ahref="/papers/1809.07320"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Gagieetal.,2018</a>).Thechoiceofdecompositionintosubstringsortree/graphpathsispivotal:</p><ul><li>Thenumberofdecompositionsofaword links the eBWT’s induced semigroup to language-theoretic constructs (<a href="/papers/1901.08392" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Higgins, 2019</a>). Combination with Lyndon factorizations and bijections facilitates combinatorial enumeration of special objects (e.g., de Bruijn words).</p> <p>For tree- and graph-based models, the eBWT generalizes to Wheeler graphs, where the ordering constraints on vertices and edges yield efficient rank/select-enabled navigation and ensure correctness of FM-index operations after tunneling and other nontrivial transformations (<a href="/papers/1811.02457" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Alanko et al., 2018</a>).</p> <h2 class='paper-heading' id='run-count-decomposition-and-rle-compressibility'>4. Run Count, Decomposition, and RLE Compressibility</h2> <p>Run-length encoding (RLE) size is determined by the number of runs, defined as the number of maximal constant blocks in the eBWT output (<a href="/papers/2506.04926" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Ingels et al., 5 Jun 2025</a>, <a href="/papers/1809.07320" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Gagie et al., 2018</a>). The choice of decomposition into substrings or tree/graph paths is pivotal:</p> <ul> <li>The number of decompositions of a word wintofactorsgreaterthan into factors greater than kisexponentialin is exponential in |w|(generalizedFibonaccigrowth).Thereexistsauniversalupperboundfortheminimumruncountamong (generalized Fibonacci growth). There exists a universal upper bound for the minimum run count among k$-constrained decompositions, and for certain words, the ratio between maximal and minimal run counts across all decompositions is unbounded (Ingels et al., 5 Jun 2025).
  • For genomic readsets, omitting end-markers from the eBWT (dollarless variant) reduces the number of runs by nearly 19%, with tree-based XBWT lowering the run count by a further 15% (Gagie et al., 2018). Lower run counts directly improve space usage in run-length FM-indexes and accelerate rank/select queries.

Tunneling techniques, originally for repetitive datasets, can be applied to Wheeler graphs after eBWT construction, further compressing repeated isomorphic blocks beyond what RLE can achieve (Alanko et al., 2018).

5. Applications Across Bioinformatics, Indexing, and Pattern Matching

The eBWT paradigm is exploited across a spectrum of computational biology and text retrieval tasks:

  • Reference-free/Alignment-free genomics: eBWT supports clustering of reads covering the same genomic locus, with the expected cluster size and boundaries governed by Poisson statistics and determined rapidly via LCP array monotonicity (single scan for cluster detection) (Prezza et al., 2018).
  • SNP/INDEL detection: By leveraging the positional clustering effect in eBWT and LCP arrays, small variants and sequencing errors can be detected without prior reference, and filtered via Poisson model expectations (Prezza et al., 2018).
  • Haplotype phasing, alternative splicing, error correction, assembly overlap detection: All these tasks benefit from consensus detection inside eBWT clusters, with the general workflow being eBWT+LCP construction, cluster delimitation by LCP local minima, filtering by cluster size/distribution, and local reconstruction (Prezza et al., 2018).
  • Indexing repetitive databases: State-of-the-art indexes (e.g., run-length FM-indexes, XBWTs) for highly repetitive sequence collections rely on the eBWT for compressibility and navigation efficiency (Olbrich, 27 Apr 2025, Gagie et al., 2018).
  • Tree and graph-based indexing: The generalized eBWT naturally extends to labeled trees (XBWT), Wheeler graphs, and advanced objects supporting efficient counting/locating/extracting (Gagie et al., 2018, Alanko et al., 2018).
  • Pattern matching on circular or structurally complex texts: The eBWT and its extensions (cBWT, XBWT) can support pattern match queries under generalized equivalences (e.g., Cartesian-tree matching), with succinct data structures and dynamic update capabilities (Osterkamp et al., 2024).

6. Practical Performance and Benchmarks

Empirical studies demonstrate that grammar-based or Lyndon-grammar-based eBWT construction is feasible at the scale of human chromosomes or entire viral pangenomes, with significant memory and time benefits over classical suffix array-based BWT construction (Olbrich, 27 Apr 2025). For instance:

  • For 1000 human Chromosome 19 haplotypes (total ≈6×10106 \times 10^{10} bp): Lyndon grammar eBWT completes in 1444s (2.0 GiB RAM), outperforming libsais, r-pfbwt, CMS-BWT, and ropebwt3.
  • For 10610^6 SARS-CoV-2 genomes (≈3×10103 \times 10^{10} bp): eBWT in 782s, using 2.7 GiB.
  • Multithreading further reduces runtime to seconds for these datasets while keeping memory <10 GiB (Olbrich, 27 Apr 2025).

Run-count reductions (e.g., dollarless eBWT and XBWT) translate to full-text indexes up to 30% smaller with no loss in indexing functionality (Gagie et al., 2018).

7. Limitations, Open Problems, and Ongoing Developments

Fundamental limitations arise from the combinatorial explosion of possible decompositions: brute-force optimization of run counts is infeasible due to exponential growth in decomposition space (Ingels et al., 5 Jun 2025). Known decompositions such as the Lyndon factorization are not universally optimal with respect to RLE (Ingels et al., 5 Jun 2025). Practical heuristics to discover nearly minimal run decompositions are an open problem.

Tunneling and block-based compression techniques offer additional reductions in index size, especially on Wheeler graphs, but the design and implementation of optimal tunneling algorithms remain active areas of research (Alanko et al., 2018).

Extensions to dynamic, online, or partial-indexing for eBWT-based data structures (e.g., incremental construction, dynamic insertions in cBWT) are studied and possess succinct space guarantees, but with polylogarithmic slowdowns on update/query (Osterkamp et al., 2024).

The algebraic and combinatorial underpinnings of eBWT inversion, its connections to syntactic semigroups, and theoretical properties (e.g., de Bruijn word construction, factor enumeration) continue to enrich both the foundational and applied aspects of the eBWT framework (Higgins, 2019).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Extended Burrows-Wheeler Transform (eBWT).