I'm trying to understand how LZW decodes a string.
For example suppose that we have a dictionary where:
- a=0
- b=1
and we have to encode the string "aabbabaabb", so the output of the encoding process (if I have not made mistakes) produces the string "0011324" and the dictionary became(using a tree representation):
(source: f.cl.ly)
The decoder will just know "0011324" and the starting dictionary where there are just a=0 and b=1.
How does it work the decoding process with just these 2 informations?