Huffman and Arithmetic Coding, Posting List Compression




CS267

Chris Pollett

Oct 23, 2019

Outline

Huffman Coding

Huffman Tree Construction

Example

Huffman tree Example

In-Class Exercise

Suppose the `i`th letter of the English alphabet occurs with probability `i/650` for the letters `a` through `y` and that the letter `z` occurs with probability `1/2` what would the Huffmann tree look like?

Post your solution to the Oct 23 In-Class Exercise Thread.

Facts About Huffman Codes

Canonical Huffman Codes

Motivating Arithmetic Coding

Arithmetic Coding

More Arithmetic Coding

Redux