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 the main purpose of encoding messages?
Think about how computers understand data.
Define a prefix code in your own words.
Consider how decoding would work with such a code.
What does variable length encoding do?
Think about how frequent letters would be represented.
True or False: Prefix codes can lead to ambiguous decoding.
Consider how decoding works with non-prefix codes.
You have the frequencies: X=0.5, Y=0.25, Z=0.15, W=0.1. Create a Huffman tree and assign codes based on your construction.
Pair the least frequent nodes first to build the tree iteratively.
If the average length of encoded bits per letter for a given alphabet is calculated as 3.5, and you redesign the encoding to reduce it to 2.8, explain the impact on data transfer.
Think about how much space bytes take up and how averages affect large data sets.
4 more questions in this section. Enroll free to practise them all.
Enroll free