next up previous
Next: Build the Frequency table

Assignment 11: Huffman Codes

Due: Wednesday 1 December

Reading: Standish Chapter 8.11

For this assigment you are going to write a program that reads a sample string and constructs a Huffman code for it. The Huffman code will be encapsulated in an object; one of the operations you can perform on this object is encode, which takes a String and encodes it.

In order to get the whole thing working, you need three pieces:



 

Allen Downey
1999-11-20