Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is Huffman coding?
It involves using shorter codes for more frequent characters.
What does a prefix code ensure?
Think about how codes might overlap.
What is the purpose of Huffman coding?
Think about how efficiency can be enhanced using frequency.
True or False: In a prefix code, one code can be a prefix of another.
Consider what happens during decoding.
Assume we need to encode the letters 'A', 'B', 'C', 'D', 'E' with frequencies 0.4, 0.3, 0.2, 0.1. Create the Huffman tree, and derive the encoding for each character.
Start by pairing the lowest frequencies and build upwards.
What would happen if we allow one of the codes in a Huffman tree to be the prefix of another? Discuss the implications for encoding and decoding.
Think about how this overlaps during the decoding process.
5 more questions in this section. Enroll free to practise them all.
Enroll free