Archive for May, 2008

Algoritma LZW Compression

Algoritma LZW Compression

BEGINs = next input character;

while not EOF

{ c = next input character;

if s + c exists in the dictionary

s = s + c;

else

{ output the code for s;

add string s + c to the dictionary with a new code;

s = c;

}

}

output the code for s;

END

Read the rest of this entry »

Comments (7487)