Skip to content

What is huffman compression? #7

Answered by SusheelThapa
SuprimDevkota asked this question in Q&A
Discussion options

You must be logged in to vote

Huffman compression is a lossless data compression algorithm that uses variable length encoding to represent each symbol in a message with a unique binary code based on its frequency.

The goal is to assign short codes to more common characters and long codes to less common characters to minimize the overall size of the compressed data. This algorithm is based on binary tree construction and is used in various applications such as image and audio compression, data transfer, and file storage.

Code length is proportional to the reciprocal of the symbol occurrence probability. The Huffman coding technique is an efficient technique for data compression because it keeps the length of the compre…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@boorge
Comment options

Answer selected by Rohan69420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants