LZW Compression algorithm



I am trying to create a simple compression algorithm using the LZW system based on the 128 ascii character set and I can find a lot of information on the general description of it, but how exactly does the dictionary that is used work. Is it just stored in an array or do you need to write it to a file so that it can be used the next time you need to decompress a file. I would think it would need to be stored in a file and then read into an array since if you compressed the file and then shut down the program, would you not lose everything in the dictionary and then not be able to decompress the file? Any help would be appreciated.

Thanks,

Z.K.
.



Relevant Pages

  • Re: LZW Compression algorithm
    ... based on the 128 ascii character set and I can find a lot of information on ... file so that it can be used the next time you need to decompress a file. ... array since if you compressed the file and then shut down the program, ... note that if you are looking for a simple compressor that does fairly well, ...
    (comp.compression)
  • Compression algorithm
    ... I not really sure this is the right newsgroup so please excuse me if it is not. ... I am trying to create a simple compression algorithm using the LZW system and I can find a lot of information on the general description of it, but how exactly does the dictionary that is used work. ... Is it just stored in an array or do you need to write it to a file so that it can be used the next time you need to decompress a file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to check if byte array is compressed or not?
    ... I have some data stored in the database as blob. ... Now I need to read the byte array using ... *every* byte array can be viewed as 'compressed' if you specify an adequate compression algorithm. ...
    (comp.lang.java.programmer)