Question: A computer executes four instructions that are designated by the code words (00, 01, 10, 11). Assuming that the instructions are used independently with probabilities
A computer executes four instructions that are designated by the code words (00, 01, 10, 11). Assuming that the instructions are used independently with probabilities (1/2, 1/8, 1/8, 1/4), calculate the percentage by which the number of bits used for the instructions may be reduced by the use of an optimum source code. Construct a Huffman code to realize the reduction.
Step by Step Solution
3.54 Rating (157 Votes )
There are 3 Steps involved in it
00 01 10 00 Computer code 11 01 IN 10 1 10 Probability 12 14 8 0 0 Huffman Code 10 110 12 111 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
19-E-T-E-C-S (132).docx
120 KBs Word File
