Character Frequency ? X W e t 27 18 S 15 a 22 5 14 3 11 (1) Please construct the Huffman tree for the above characters and frequencies. (2) Please find the Huffman codes for these characters. (3) A file consisting of 100,000 instances of these seven characters is stored using a fixed-length binary encoding scheme. How many bits are required for each code and what is the toal number of bits needed? (4) Storing the same file using the Huffman code in (2), how many bits are needed?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I only need help with the fourth question, as I'm not sure how to calculate for the number of bits that are needed.

Character
Frequency
?
× W
ets
a
14 3 11 27
18 22
5
(1) Please construct the Huffman tree for the above characters and frequencies.
(2) Please find the Huffman codes for these characters.
(3) A file consisting of 100,000 instances of these seven characters is stored using a fixed-length
binary encoding scheme. How many bits are required for each code and what is the toal number of
bits needed?
(4) Storing the same file using the Huffman code in (2), how many bits are needed?
Transcribed Image Text:Character Frequency ? × W ets a 14 3 11 27 18 22 5 (1) Please construct the Huffman tree for the above characters and frequencies. (2) Please find the Huffman codes for these characters. (3) A file consisting of 100,000 instances of these seven characters is stored using a fixed-length binary encoding scheme. How many bits are required for each code and what is the toal number of bits needed? (4) Storing the same file using the Huffman code in (2), how many bits are needed?
8
/\
5 3
35
8. character: ?
xwe
t
frequency: 14 3 11 27 18 22 5
1)
18. 11 14 187 22 227
814 18 228 222 2277
a
+18
24
19
5 3
59
41
1128 14
11
8
32
27
19 22
41
1432 27.41
14 18
27
18
1922
22
8
19
100
% \!
091 SA
11 0/
22
32
27
E
of \
3
MX
0/4/1/S
8 11/4 18 0/
%\'
58
W
t
2) S: 011
"W: 001 5
sa: 00011
3 x: 00000
18 t: M 7
14?:00-6
27 C: 10+2
3
14 18
HR.
t
Transcribed Image Text:8 /\ 5 3 35 8. character: ? xwe t frequency: 14 3 11 27 18 22 5 1) 18. 11 14 187 22 227 814 18 228 222 2277 a +18 24 19 5 3 59 41 1128 14 11 8 32 27 19 22 41 1432 27.41 14 18 27 18 1922 22 8 19 100 % \! 091 SA 11 0/ 22 32 27 E of \ 3 MX 0/4/1/S 8 11/4 18 0/ %\' 58 W t 2) S: 011 "W: 001 5 sa: 00011 3 x: 00000 18 t: M 7 14?:00-6 27 C: 10+2 3 14 18 HR. t
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Huffman coding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education