01Chapter 1: Why Fixed-Length Codes Waste BitsThis chapter assumes you know binary numbers and bits, basic Python, binary trees, and simple probability, meaning frequencies and proportions.2 min read
02Chapter 2: Building the Huffman Tree with a Min-HeapThis chapter assumes you know Python, binary trees, min-heaps (heapq), and basic probability. It also assumes you have read the previous chapter, which covered prefix-free codes and code trees.2 min read
03Chapter 3: Why the Greedy Choice Is OptimalThis chapter assumes you have already built a Huffman tree with a min-heap and compared its average length with entropy. You should also be comfortable with Python and bit shifts.2 min read