Consider the given table and determine a. The source code using Fano Coding technique. b. Determine the average length of code. c. Determine the entropy of the source. d. Determine the efficiency of the code.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Question 1: Consider the given table and determine a. The source code using Fano Coding technique. b. Determine the average length of code. c. Determine the entropy of the source. d. Determine the efficiency of the code.
Note: Please the solution must be the same as
this step
Fano Coding: Example
Average Length of code
LA
= 0.5 * 1+ 2 0.125 * 3 +3 0.0625 * 4 + 2 * 0.03125 S1
Src
Pi
Code
0.5
b
* 5 = 2.3125
S
S2
0.125
100
Entropy of Source
S3
0.125
101
H(S)
S4
0.0625
1100
0.35(0.5) + 2 * 0.125log2(0.125)
(+ 3 + 0.0625log2(0.0625) + 2 • 0.03125log2(0.03125)
S5
0.0625
1101
= 2.3125 -
S6
0.0625
1110
• Efficiency of Code
H(s)
2.3125
NA
* 100 = 100%
S7
0.03125
11110
La
2.3125
S8
0.03125
11111
Transcribed Image Text:Note: Please the solution must be the same as this step Fano Coding: Example Average Length of code LA = 0.5 * 1+ 2 0.125 * 3 +3 0.0625 * 4 + 2 * 0.03125 S1 Src Pi Code 0.5 b * 5 = 2.3125 S S2 0.125 100 Entropy of Source S3 0.125 101 H(S) S4 0.0625 1100 0.35(0.5) + 2 * 0.125log2(0.125) (+ 3 + 0.0625log2(0.0625) + 2 • 0.03125log2(0.03125) S5 0.0625 1101 = 2.3125 - S6 0.0625 1110 • Efficiency of Code H(s) 2.3125 NA * 100 = 100% S7 0.03125 11110 La 2.3125 S8 0.03125 11111
Note: this table
with Question 1
Source
Pi
S1
0.3
S2
0.2
S3
0.2
S4
0.1
S5
0.1
S6
0.05
S7
0.05
Transcribed Image Text:Note: this table with Question 1 Source Pi S1 0.3 S2 0.2 S3 0.2 S4 0.1 S5 0.1 S6 0.05 S7 0.05
Expert Solution
steps

Step by step

Solved in 5 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY