[go: up one dir, main page]

0% found this document useful (0 votes)
11 views15 pages

DAA Lab Practice 2

The document explains Huffman Coding, a greedy algorithm used for lossless data compression through variable length encoding based on character frequency. It assigns shorter codes to more frequent characters and implements a prefix rule to avoid decoding ambiguities. The process includes calculating character frequencies, building a Huffman tree, and encoding the data, resulting in reduced message size from 120 bits to 75 bits in the example provided.

Uploaded by

kshitijhinge7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
11 views15 pages

DAA Lab Practice 2

The document explains Huffman Coding, a greedy algorithm used for lossless data compression through variable length encoding based on character frequency. It assigns shorter codes to more frequent characters and implements a prefix rule to avoid decoding ambiguities. The process includes calculating character frequencies, building a Huffman tree, and encoding the data, resulting in reduced message size from 120 bits to 75 bits in the example provided.

Uploaded by

kshitijhinge7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 15

You might also like