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 language | English |
---|---|
Title of host publication | Reversible Computation - 16th International Conference, RC 2024, Proceedings |
Editors | Torben Aegidius Mogensen, Lukasz Mikulski |
Publisher | Springer |
Publication date | 2024 |
Pages | 94-102 |
ISBN (Print) | 9783031620751 |
DOIs | |
Publication status | Published - 2024 |
Event | 16th International Conference on Reversible Computation, RC 2024 - Torun, Poland Duration: 4 Jul 2024 → 5 Jul 2024 |
Conference
Conference | 16th International Conference on Reversible Computation, RC 2024 |
---|---|
Country/Territory | Poland |
City | Torun |
Period | 04/07/2024 → 05/07/2024 |
Series | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|
Volume | 14680 LNCS |
ISSN | 0302-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