Data compression symmetry
{{Multiple issues|
{{more citations needed|date=February 2009}}
{{No footnotes|date=June 2024}}
}}
Symmetry and asymmetry, in the context of data compression, refer to the time relation between compression and decompression for a given compression algorithm.
If an algorithm takes the same time to compress a data archive as it does to decompress it, it is considered symmetrical. Note that compression and decompression, even for a symmetric algorithm, may not be perfectly symmetric in practice, depending on the devices the data is being copied to and from, and other factors such as latency and the fragmentation on the device.
In turn, if the compression and decompression times of an algorithm are vastly different, it is considered asymmetrical.
class="wikitable"
|+ 7zip algorithms comparison{{cite web |last1=Mahoney |first1=Matt |title=Large Text Compression Benchmark |url=https://mattmahoney.net/dc/text.html#1789 |website=mattmahoney.net |access-date=3 January 2025}} | |||
Algorithm | Compression | Decompression | Symmetry |
---|---|---|---|
LZMA | 2286 | 63 | Asymmetrical |
BWT | 1974 | 176 | Asymmetrical |
PPMd | 647 | 655 | Symmetrical |
Uses
Symmetric algorithms are typically used for media streaming protocols, as either the server taking too long to compress the data, or the client taking too long to decompress, would lead to delays in the viewing of the data.
Asymmetrical algorithms wherein the compression is faster than the decompression can be useful for backing up or archiving data, as in these cases data is typically much more often stored than retrieved.
Also asymmetrical algorithm are used in audio compression because decompression must happen in real-time, otherwise playback might get interrupted. {{cite book|title=A Concise Introduction to Data Compression|url=https://archive.org/details/conciseintroduct00salo_179|url-access=limited|author=David Salomon|publisher=Springer|date=2008|isbn=9781848000711}}
References
{{Reflist}}
Further reading
- {{cite book|title=Digital Video Compression|author=Peter D. Symes|pages=[https://archive.org/details/isbn_9780071424875/page/11 11]|chapter=Symmetric and Asymetric Systems|publisher=McGraw-Hill Professional|date=2004|isbn=9780071424875|url-access=registration|url=https://archive.org/details/isbn_9780071424875/page/11}}
{{Compression methods}}
{{Compu-stub}}