Some compression terminology

本文介绍了几种常见的数据压缩算法,包括LZ77、LZ78和LZW的工作原理及其实现方式,并探讨了循环冗余校验(CRC)在确保数据完整性和一致性方面的作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Some compression terminology

The Cyclic Redundancy Check (CRC) performs a mathematical calculation on a block of data. It returns a number that represents the content and organization of that data with the idea that the CRC returns a number that uniquely identifies the data, a fingerprint (called the checksum. It's calculated by performing a modulo 2 division of the data by a generator polynomial and recording the remainder after division.

Lempel-Ziv coding are substitutional compression schemes proposed by Jakob Ziv and Abraham Lempel in 1977-78. The two main schemes are LZ77 and LZ78.

Lempel-Ziv Welch compression (LZW) is the algorithm used by the UNIX compress command to reduce the size of files for archival or transmission efficiency. It was designed by Terry Welch in 1984 for hardware implementation in high-performance disk controllers. The algorithm relies on the reoccurrence of byte sequences (or strings) in its input.

LZ77 scans through a fixed-length block of data and eliminates repeating data by substituting a pointer back to the original data.

LZ78 scans through a block of data and creates a dictionary of repeating phrases. Then, instead of repeating a section of data, a pointer that indicates the original data is substituted.

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值