Towards Clean Reversible Lossless Compression

Therese Lyngby*, Rasmus Ross Nylandsted, Robert Glück, Tetsuo Yokoyama

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingArticle in proceedingsResearchpeer-review

Abstract

Zip and unzip are everyday tools in today’s digital world. Since they are inherently inverse to each other, they are ideal for studying reversible computing methods on real-world problems. In this work-in-progress study, we take steps to develop a reversible zip tool. As a proof of concept, we designed clean (garbage-free) reversible versions of two algorithms, which are officially recognized by the zip-specification. Our design goal was not merely to achieve reversibility, but rather to maintain the asymptotic complexity of the irreversible counterparts. Because of their efficiency and different approaches to compression, we chose the dictionary-based Lempel–Ziv–Welch Compression (LZW) and the transformation-based Burrows–Wheeler Transform (BWT). As part of the challenge, we found a way to zero-clear the LZW dictionary and reversibly sort rotations for BWT. We have successfully created clean reversible versions of both algorithms and fully implemented and tested them in the reversible language Janus. Our reversible LZW has a worst-case runtime of Θ(n), just like the most efficient irreversible version. Our reversible BWT is, in the worst case, a factor n2 slower than the most efficient irreversible version. There are currently no better trace-free reversible methods for lossless compression.

Original languageEnglish
Title of host publicationReversible Computation - 16th International Conference, RC 2024, Proceedings
EditorsTorben Aegidius Mogensen, Lukasz Mikulski
PublisherSpringer
Publication date2024
Pages94-102
ISBN (Print)9783031620751
DOIs
Publication statusPublished - 2024
Event16th International Conference on Reversible Computation, RC 2024 - Torun, Poland
Duration: 4 Jul 20245 Jul 2024

Conference

Conference16th International Conference on Reversible Computation, RC 2024
Country/TerritoryPoland
CityTorun
Period04/07/202405/07/2024
SeriesLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14680 LNCS
ISSN0302-9743

Bibliographical note

Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2024.

Keywords

  • Burrows–Wheeler transforms (BWT)
  • Clean reversible algorithms
  • Lempel–Ziv–Welch compression (LZW)
  • Lossless compression algorithms
  • Reversible software

Cite this