Skip to main content
QUICK REVIEW

[Paper Review] Faster Average Case Low Memory Semi-External Construction of the Burrows-Wheeler Transform

German Tischler|arXiv (Cornell University)|Apr 22, 2016
Natural Language Processing TechniquesComputer Science6 citations
TL;DR

This paper presents a faster, low-memory semi-external algorithm for constructing the Burrows-Wheeler Transform (BWT) with an average-case time complexity of $O(n\log^2\log n)$ when a fixed fraction of the input text fits in internal memory. It improves upon prior methods by reducing average-case runtime while maintaining $O(n)$ external memory space, and introduces a parallel version that achieves $O(n/p \cdot \max\{\log^2\log n, \log p\})$ average-case time using $p$ processors.

ABSTRACT

The Burrows Wheeler transform has applications in data compression as well as full text indexing. Despite its important applications and various existing algorithmic approaches the construction of the transform for large data sets is still challenging. In this paper we present a new semi external memory algorithm for constructing the Burrows Wheeler transform. It is capable of constructing the transform for an input text of length $n$ over a finite alphabet in time $O(n\log^2\log n)$ on average, if sufficient internal memory is available to hold a fixed fraction of the input text. In the worst case the run-time is $O(n\log n \log\log n)$. The amount of space used by the algorithm in external memory is $O(n)$ bits. Based on the serial version we also present a shared memory parallel algorithm running in time $O(\frac{n}{p}\max\{\log^2\log n+\log p\})$ on average when $p$ processors are available.

Motivation & Objective

  • To address the challenge of constructing the Burrows-Wheeler Transform (BWT) efficiently for large texts using limited internal memory.
  • To reduce the average-case time complexity of BWT construction below existing semi-external algorithms while maintaining low external memory usage.
  • To enable BWT construction with less than 8 bits per symbol in internal memory, making it suitable for compact data like DNA sequences.
  • To design a shared-memory parallel version that scales efficiently with the number of processors.
  • To improve practical performance by minimizing space overhead and I/O operations in external memory.

Proposed method

  • The algorithm partitions the input text into blocks and uses a balanced merge tree structure to recursively merge BWTs of adjacent blocks.
  • It computes suffix orders for blocks of size $b$ in $O(b)$ time using a succinct data structure for minimal periods and repetition information.
  • A preprocessing phase collects repetition data in $O(n)$ time and $O(b\log b)$ bits to support efficient block sorting.
  • The BWTs of two adjacent blocks are merged in $O((b_l + b_r)\log\log(b_l + b_r))$ time using a rank dictionary for the left block.
  • The algorithm uses a gap array construction technique that relies on forward searches on block suffix arrays to determine correct sorting positions.
  • A parallel version distributes block sorting and merging across $p$ processors, achieving $O(n/p \cdot \max\{\log^2\log n, \log p\})$ average-case time with high probability.

Experimental results

Research questions

  • RQ1Can the BWT construction be accelerated in the average case while using only $O(n)$ bits of external memory and a fixed fraction of internal memory?
  • RQ2How can block-based BWT construction be optimized to reduce the impact of long common prefix (LCP) values that degrade performance?
  • RQ3Is it possible to design a parallel BWT construction algorithm that scales efficiently with the number of processors while maintaining low memory usage?
  • RQ4Can the algorithm be made practical for very compact alphabets like DNA, where only 2 bits per symbol are needed?
  • RQ5What is the I/O complexity and practical space usage of the algorithm in external memory, and how do the constants affect real-world performance?

Key findings

  • The proposed algorithm achieves an average-case time complexity of $O(n\log^2\log n)$, outperforming the $O(n\log n\log\log n)$ worst-case time of prior semi-external methods.
  • In the worst case, the algorithm runs in $O(n\log n\log\log n)$ time, which is only $O(\log\log n)$ slower than the average case, a small penalty for rare pathological inputs.
  • The algorithm uses $O(n)$ bits of external memory, making it suitable for large-scale data where main memory is limited.
  • The parallel version runs in $O(n/p \cdot \max\{\log^2\log n, \log p\})$ time on average with high probability, enabling efficient scaling on multi-core systems.
  • The method supports internal memory usage as low as 2 bits per symbol (e.g., for DNA), significantly below the 8 bits per symbol required by prior approaches.
  • Empirical observations suggest low I/O complexity, with $O(n\log\log n)$ bits of I/O for $gt$ arrays and $O(n\log\sigma\log\log n)$ for BWT merging, all streaming in practice.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.