Please fill out this quiz, and press the "Submit" button at the end. Don't collaborate with anyone on quiz exercise solutions.
Please answer all questions.
SID: [No spaces and no dashes.]
Login ID :
1. Suppose we have some alphabet, and we are given the frequency of each letter in the alphabet. Suppose we use the Huffman coding technique to build an optimal variable-length prefix-free binary encoding for this alphabet. Professor Argyle makes the following claim:
Let X,Y be any pair of letters in the alphabet. If the frequency of X is less than the frequency of Y, then the encoding of X is guaranteed to be at least as long as the encoding of Y.
F(x,0) = F(x+1,0) + F(x+1,1) if x<n F(x,1) = 2 F(x+1,0) + F(x+1,1) if x<n F(n,0) = 1 F(n,1) = 0
(Revised 3/14:) To qualify as "efficient", it's enough that your answer be strictly faster than exponential time. (Exponential time is too slow.)
Which of the following options would you prefer? (Note that Midterm 2 will be held on Monday, April 6.)
Either way, the difficulty level of HW9 would be the same. Do you have a preference between these two options? If yes, which do you prefer?