LZW Encoding - PowerPoint PPT Presentation

About This Presentation
Title:

LZW Encoding

Description:

itt. 264. Dictionary. 105. Send. 116. 116. 121. 32. 98. 258. 260. i. Input. t. t. y. b. t. t. y. 262. b ... itt. 264. Dictionary. 105. Send. 116. 116. 121. 32 ... – PowerPoint PPT presentation

Number of Views:72
Avg rating:3.0/5.0
Slides: 39
Provided by: kevin59
Category:
Tags: lzw | encoding | itt

less

Transcript and Presenter's Notes

Title: LZW Encoding


1
LZW Encoding
The input message was taken from
http//www-mtl.mit.edu/Courses/6.095/notes/LZW-exa
mples.html
2
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
3
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
4
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
it
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
5
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
tt
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
6
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
ty
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
7
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
y_
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
8
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
_b
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
9
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
bi
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
10
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
itt
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
11
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
ty_
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
12
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_bi
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
13
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
it_
b
266
i
STOP
257
_bin
268
110
n
257
STOP
14
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
_bin
110
n
257
STOP
15
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
16
LZW Encoding
Send
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
i
_
32
ty
260
258
t

y_
261
t
a
97
_b
262
260
y
b
98
bi
263
_
262
b

itt
264
i
z
122
ty_
265
258
t

_bi
266
_
SEND
256
it_
267
b
266
i
STOP
257
_bin
268
110
n
257
STOP
17
LZW Encoding
Send
Input
256
SEND
105
i
116
t
116
t
121
y
Compression Achieved
32
_
98
b
Words
Message
Bits / word
Total
i
Original
18
8
144
258
t
LZW message
14
9
126
t
260
y
_
262
b
i
258
t
_
b
266
i
110
n
257
STOP
18
LZW Decoding
The input message was taken from
http//www-mtl.mit.edu/Courses/6.095/notes/LZW-exa
mples.html
19
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
20
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
21
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
22
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
23
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
24
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
25
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
26
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
27
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
28
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
29
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
30
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
31
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
32
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
33
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
34
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
35
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
36
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
37
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
38
LZW Decoding
Received
Input
256
SEND
105
i
116
t
Dictionary
116
t
Word
Index
Word
Index
121
y
0
it
258
32
_

tt
259
98
b
258
i
_
32
ty
260
t

y_
261
260
t
a
97
_b
262
y
b
98
bi
263
262
_
b

itt
264
258
i
z
122
ty_
265
t

_bi
266
266
_
SEND
256
it_
267
b
i
STOP
257
_bin
268
110
n
257
STOP
Write a Comment
User Comments (0)
About PowerShow.com