

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CSE 202 Mid-Term Examination October 23, 2006
Maximum Points: 25 Time: 80 minutes
(a) What is the Huffman encoding of the alphabet? (b) If this encoding is applied to a file consisting of 1,000,000 chatacters with the given frequencies, what is the length of the encoded file?
∑j k=1 lσk.^ The average time^ T¯ over all programs is T¯ = ∑n i=1 Ti.^ Design an efficient algorithm to determine a placement order (σ 1 , σ 2 ,... , σn) to minimize the average access time T¯. Prove its correctness and analyze its time complexity.