We'll discuss the ideas behind Huffman Coding.
There's a lot of context and background (probability, mostly) here - please ask questions.
I have a code example from an information theory course I taught a few years back which I'll try to explain.