A2 - Text Encoding, due Mon, Sept. 24
in CS 101 on Assignments
Read the lecture notes on Text Encoding & Compression.
Then, using the given Huffman Tree, encode the following words.
- King
- Queen
- Bishop
- Knight
- Rook
- Pawn
Finally, encode the letters of your last name. For example, my last name (RAMNAUTH) encoded using the Huffman algorithm would be:
R=0000A=1100M=111101N=0101A=1100U=111111T=1110H=0001
Therefore, RAMNAUTH can be represented as 0000 1100 111101 0101 1100 111111 1110 0001.
Reminder: Notebooks are collected and graded on Mondays.