Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions Icon

Related questions

Question

 Encode the string <<TRAM PARAM PAM>> green grass is
getting greener " using the LZ77 algorithm. The buffer size is 6 characters and the
dictionary size is 8 characters

N.B: the methode in the picture  is in the picture

Example 33. Encode the string «ЗЕЛЕНАЯ_ ЗЕЛЕНЬ_ЗЕЛЕНЕЕТ " green grass is
getting greener " using the LZ77 algorithm. The buffer size is 7 characters and the
dictionary size is 9 characters.
Solution
Словарь (9)
Буфер (7)
1 2 3 4 5 6 7 8 9 12 3 4 5 6 7
ЗЕЛЕНАЯ
.
.
.
.
.
3 (0,0,JI)
3 E (7,1,H)
ЗЕЛЕНАЯ ЗЕ Л Е (0,0,A)
ЗЕЛЕНАЯ
.
ЗЕЛЕНАЯ
ЗЕЛЕНАЯ
ЗЕЛЕНАЯ
ЗЕЛЕНАЯ
ЗЕЛЕНАЯ
АЯ ЗЕЛЕН Ь
НЬ
ЗЕЛЕНЬ
ЗЕЛЕН (0,0, Я)
(0,0,
(1,5, b)
(2,6,E)
(4,1, T)
ЗЕЛЕНЬ
ЗЕЛЕН Е
ЗЕЛЕHEET
Код
(0,0,3)
(0,0, E)
.
expand button
Transcribed Image Text:Example 33. Encode the string «ЗЕЛЕНАЯ_ ЗЕЛЕНЬ_ЗЕЛЕНЕЕТ " green grass is getting greener " using the LZ77 algorithm. The buffer size is 7 characters and the dictionary size is 9 characters. Solution Словарь (9) Буфер (7) 1 2 3 4 5 6 7 8 9 12 3 4 5 6 7 ЗЕЛЕНАЯ . . . . . 3 (0,0,JI) 3 E (7,1,H) ЗЕЛЕНАЯ ЗЕ Л Е (0,0,A) ЗЕЛЕНАЯ . ЗЕЛЕНАЯ ЗЕЛЕНАЯ ЗЕЛЕНАЯ ЗЕЛЕНАЯ ЗЕЛЕНАЯ АЯ ЗЕЛЕН Ь НЬ ЗЕЛЕНЬ ЗЕЛЕН (0,0, Я) (0,0, (1,5, b) (2,6,E) (4,1, T) ЗЕЛЕНЬ ЗЕЛЕН Е ЗЕЛЕHEET Код (0,0,3) (0,0, E) .
The code length is calculated as follows: the length of the string cannot be
greater than the size of the buffer +1, and the offset cannot be greater than the size
of the dictionary. Therefore, the offset binary length will be rounded up by
log(dictionary size), and the binary length for the string length will be rounded up
by log(buffer size +1). A character is encoded with 8 bits (for example, ASCII+).
Length of the resulting code: 10 (log(9) + log(7 + 1) + 8) ≈ 10 (4 + 3 + 8),
those. 150 bits. The length of the original line is 23 characters, i.e. 23* 8 = 184
bits.
expand button
Transcribed Image Text:The code length is calculated as follows: the length of the string cannot be greater than the size of the buffer +1, and the offset cannot be greater than the size of the dictionary. Therefore, the offset binary length will be rounded up by log(dictionary size), and the binary length for the string length will be rounded up by log(buffer size +1). A character is encoded with 8 bits (for example, ASCII+). Length of the resulting code: 10 (log(9) + log(7 + 1) + 8) ≈ 10 (4 + 3 + 8), those. 150 bits. The length of the original line is 23 characters, i.e. 23* 8 = 184 bits.
Expert Solution
Check Mark
Still need help?
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

I can't see the result.  The width is bad. Can you adjust it for me please 

Solution
Bartleby Expert
by Bartleby Expert
SEE SOLUTION
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

I can't see the result.  The width is bad. Can you adjust it for me please 

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