Note: I have an updated article on LZW posted here. Please check out the new article and tell me what you think. I hope it improves on this post and makes LZW easier to understand. Thanks to Jan Hakenberg for correction of a couple of errors! In Figure 4, the values for new table entries 259 and 265 were truncated. Thanks to David Littlewood for pointing out the missing line of pseudocde in Figure
![LZW Data Compression | Mark Nelson](https://cdn-ak-scissors.b.st-hatena.com/image/square/4731c353f48f785201f17461180f2075d6ae8f8e/height=288;version=1;width=512/https%3A%2F%2Fmarknelson.us%2Fassets%2Fimages%2Fcompress.png)