Encode the string <> 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
Encode the string <> 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
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...
Related questions
Question
Encode the string <<TRAM PARAM PAM>> green grass is
getting greener " using the LZ77
dictionary size is 8 characters
N.B: the methode in the picture is in the picture

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)
.

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps

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
Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY