LZW Class |
Namespace: Algs4Net
public class LZW
The LZW type exposes the following members.
Name | Description | |
---|---|---|
![]() | Compress |
Reads a sequence of 8-bit bytes from standard input; compresses
them using LZW compression with 12-bit codewords; and writes the results
to standard output. |
![]() | Expand |
Reads a sequence of bit encoded using LZW compression with
12-bit codewords from standard input; expands them; and writes
the results to standard output. |
![]() ![]() | MainTest |
Sample client that calls compress() if the command-line
argument is "-" an expand() if it is "+". |
For additional documentation, see Section 5.5 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
This class is a C# port from the original Java class LZW implementation by the respective authors.