Huffman Coding
Huffman Coding
Huffman Coding
Louie Jocson
Rizalina Dauz
Target Objectives
Know the history How does
01 of huffman 02 huffman coding
coding work
03
Sample problem
01 History
How it begin?
History
• In 1951, David A. Huffman and his MIT information
theory classmates were given the choice of a term
paper or a final exam. The professor, Robert M. Fano,
assigned a term paper on the problem of finding the
most efficient binary code. Huffman, unable to prove
any codes were the most efficient, was about to give up
and start studying for the final when he hit upon the
idea of using a frequency-sorted binary tree and quickly
proved this method the most efficient.
A 3
B 2
C 1
D 1
Visual Help
AABCBAD
A 3
B 2
C 1
D 1
Visual Help
CHARACTER FREQUENCY CODE
A 3 0
B 2 10
C 1 110
D 1 111
GIVEN: AABCBAD
A A B C B A D 0 0 10 110 10 0 111
0 0 10 110 10 0 111 A A B C B A D
References
History of Huffman Coding:
Huffman Coding:
Wikipedia Contributors. (2019, July 12).
● Programiz. (n.d.). Huffman Coding
Huffman coding. Wikipedia; Wikimedia
Algorithm. Www.programiz.com.
Foundation.
https://www.programiz.com/dsa/huffma
https://en.wikipedia.org/wiki/Huffman_coding
n-coding
Definition of Terms (FSB Tree, Lossless,
Huffman Tree :
● Lossless - Data compression - Fundamentals of data ● What is Huffman Coding? - Definition
representation - AQA - GCSE Computer Science Revision - from Techopedia. (n.d.).
AQA. (n.d.). BBC Bitesize.
https://www.bbc.co.uk/bitesize/guides/zd88jty/revision/9
Techopedia.com.
● Huffman Tree - Huffman Trees in Data https://www.techopedia.com/definition/
Structure. (n.d.). Www.tutorialspoint.com. 7627/huffman-coding
https://www.tutorialspoint.com/huffman-
trees-in-data-structure
●
Thank you for
listening!
We can be more, and we
can do so much more -
Unknown