No Cover Image

Journal article 217 views 20 downloads

Heuristics for the run-length encoded Burrows–Wheeler transform alphabet ordering problem

Lily Major Orcid Logo, Amanda Clare Orcid Logo, Jacqueline W. Daykin Orcid Logo, Benjamin Mora Orcid Logo, Christine Zarges Orcid Logo

Journal of Heuristics, Volume: 31, Issue: 1, Start page: 11

Swansea University Author: Benjamin Mora Orcid Logo

  • 67539.VOR.pdf

    PDF | Version of Record

    © The Author(s) 2025. This article is licensed under a Creative Commons Attribution 4.0 International License (CC-BY 4.0).

    Download (1.84MB)

Abstract

The Burrows-Wheeler Transform (BWT) is a string transformation technique widely used in areas such as bioinformatics and file compression. Many applications combine a run-length encoding (RLE) with the BWT in a way which preserves the ability to query the compressed data efficiently. However, these...

Full description

Published in: Journal of Heuristics
ISSN: 1381-1231 1572-9397
Published: Springer Nature 2025
Online Access: Check full text

URI: https://cronfa.swan.ac.uk/Record/cronfa67539
Abstract: The Burrows-Wheeler Transform (BWT) is a string transformation technique widely used in areas such as bioinformatics and file compression. Many applications combine a run-length encoding (RLE) with the BWT in a way which preserves the ability to query the compressed data efficiently. However, these methods may not take full advantage of the compressibility of the BWT as they do not modify the alphabet ordering for the sorting step embedded in computing the BWT. Indeed, any such alteration of the alphabet ordering can have a considerable impact on the output of the BWT, in particular on the number of runs. For an alphabet Σ containing σ characters, the space of all alphabet orderings is of size σ!. While for small alphabets an exhaustive investigation is possible, finding the optimal ordering for larger alphabets is not feasible. Therefore, there is a need for a more informed search strategy than brute-force sampling the entire space, which motivates a new heuristic approach. In this paper, we explore the non-trivial cases for the problem of minimizing the size of a run-length encoded BWT (RLBWT) via selecting a new ordering for the alphabet. We show that random sampling of the space of alphabet orderings usually gives sub-optimal orderings for compression and that a local search strategy can provide a large improvement in relatively few steps. We also inspect a selection of initial alphabet orderings, including ASCII, letter appearance, and letter frequency. While this alphabet ordering problem is computationally hard we demonstrate gain in compressibility
Keywords: Alphabet ordering; Burrows-Wheeler Transform; Compression; Local search; Random sampling; Run-Length Encoding
College: Faculty of Science and Engineering
Funders: This work is supported by the UKRI AIMLAC CDT, http://cdt-aimlac.org, grant no. EP/S023992/1, and was part-funded by the European Regional Development Fund through the Welsh Government, grant 80761-AU-137 (West).
Issue: 1
Start Page: 11