Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
Define Huffman coding.
Think about the goal of encoding data efficiently.
What is a prefix code?
Consider how codes can overlap or not.
What is the primary goal of Huffman coding?
Consider what efficient data transmission entails.
Is a prefix code necessarily unique?
Think about how one code could lead to confusion if it was a prefix of another.
Given the letters A (0.1), B (0.2), C (0.3), and D (0.4), demonstrate the construction of the Huffman tree step-by-step.
Draw each step as you combine nodes.
How would the encoding differ if 'E' (0.5) suddenly became more common than 'A' (0.1)?
Watch how changes in frequencies affect the tree.
5 more questions in this section. Enroll free to practise them all.
Enroll free