Differences between version 4 and previous revision of LZW.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Tuesday, September 10, 2002 8:23:31 pm | by CraigBox | Revert |
Older page: | version 3 | Last edited on Tuesday, September 10, 2002 8:23:13 pm | by CraigBox | Revert |
@@ -29,11 +29,11 @@
* Is the string P+C present in the dictionary?
** If yes, set P to P+C
** If no,
-**
# output the code word for P
-**
# add the string P+C to the dictionary
-**
# Set P to C
+##
# output the code word for P
+##
# add the string P+C to the dictionary
+##
# Set P to C
* When we run out of characters, output the code word for the string P and end.