Educypediathe educational encyclopedia
Information technology
Datacomunication
Data acquisition
Internet
Miscellaneous
PC startpages
 
Hardware
Computer - hardware
Computer - Ports
Memory devices
Microprocessors
Modems
Motherboards
 
Software
Animations & applets
Autocad
HTML-XML
Javascripts-applets
MSoffice
Operating systems
Software-download
Webdesign
 
Local sitemap
Sitemap

  
 

Data compression algorithms

Data compression reduces the number of bits needed to store or transmit information by removing redundancy from the data. It falls into two broad kinds. Lossless compression encodes data so that the original can be reconstructed exactly, which is essential for text, programs and other files where every bit matters. Lossy compression achieves smaller sizes by discarding detail judged unimportant, an acceptable trade for images, audio and video but not for data that must remain exact. Compression algorithms are the specific procedures that carry out this encoding and decoding.

A classic lossless method is Huffman coding. It rests on the observation that, in most data, some symbols occur far more often than others. Instead of giving every symbol a code of the same length, Huffman coding assigns shorter codes to frequent symbols and longer codes to rare ones, so that the total length of the encoded data is reduced. The algorithm builds a binary tree from the symbols' frequencies, working up from the least common, and the path through the tree to each symbol defines its code. The codes are constructed so that none is a prefix of another, which lets the decoder read them back without ambiguity.

Ordinary Huffman coding needs to know the symbol frequencies in advance, which usually means examining the data first. Adaptive Huffman coding removes this requirement by building and adjusting the code tree as the data is processed, updating frequencies on the fly so that encoder and decoder stay in step without a separate analysis pass. This makes it suitable for streaming situations where the data is not all available at once, at the cost of continually maintaining the tree as symbols arrive.

Frequently asked questions

What is the difference between lossless and lossy compression?
Lossless compression lets the original data be restored exactly, while lossy compression saves more space by permanently discarding detail deemed less important.
How does Huffman coding save space?
It gives frequently occurring symbols shorter codes and rare ones longer codes, so common data is represented in fewer bits and the total encoded size shrinks.
What does adaptive Huffman coding add?
It builds and updates the code tree as data is processed instead of needing the symbol frequencies in advance, which suits streaming data that is not all available at once.





Data compression Algorithm's   related topic: Audio compression techniques, Digital calculators
Adaptive Huffman compression Adaptive Huffman coding
Basic Compression Library The Basic Compression Library is a set of open source implementations of several well known lossless compression algorithms, such as Huffman and RLE, written in portable ANSI C
Compression algorithms: statistical coders
Compression and the Huffman code
Data Compression Primer This article provides a primer on the basic types of data compression, with an introductory-level explanation of the mathematics and algorithms that go into compression techniques. Brief consideration and examples are given to help the reader evaluate what types of compression tools and techniques are suited for their own applications, and whether any are appropriate ...
Data compression software ftp
Data compression Data compression systems
Data compression Data compression methods
DataCompression.info
Data Compression - Systematisation Data Compression (overview), Coding, Entropy Coding, Precoding, Data Reduction, Decorrelation, Adaptation, Flow chart
Data compression techniques provides a survey of data compression techniques. The focus is on the most prominent data compression schemes, particularly popular archivers, JPEG image compression, and MPEG video and audio compression
Entropy Compression Methods Arithmetic Coding, Huffman Coding, Lempel-Ziv Compression Methods
Huffman code Huffman code applet
Huffman coding an entropy encoding algorithm used for lossless data compression, ...
Huffman compression algorythm Huffman compression algorythm
Huffman coding Huffman compression is a lossless compression algorithm that is ideal for compressing text or program files
Huffman compression algorithm the Huffman Compression algorithm is an algorithm used to compress files. It does this by assigning smaller codes to frequently used characters and longer codes for characters that are less frequently used
JPEG entropy coding
Lossless data compression the basic idea in Huffman coding is to assign short codewords to those input blocks with high probabilities and long codewords to those with low probabilities. This concept is similar to that of the Morse code
Lossless compression algorithms (entropy encoding) The Shannon-Fano Algorithm, Huffman Coding, Huffman Coding of Images, Adaptive Huffman Coding, Arithmetic Coding, Lempel-Ziv-Welch (LZW) Algorithm, Entropy Encoding Summary
Practical Huffman coding Huffman Codes, Canonical Huffman Codes, Code Construction, Maximum Length of a Huffman Code, Calculating Codelengths for a Distribution, Encoding, Decoding
Shannon-Fano coding Shannon-Fano coding
Static defined word schemes Static Huffman Coding
Video and Audio Compression

Home | Site Map | Email: support[at]karadimov.info

Last updated on: 2026-06-24 | Copyright © 2011-2021 Educypedia.

https://educypedia.org

 

 

 

 

 
Powered by ITCom Solutions