Manuals/calci/LZWCOMPRESS

Revision as of 03:26, 27 February 2020 by Devika (talk | contribs) (Created page with "<div style="font-size:30px">'''LZWCOMPRESS (uncompressed)'''</div><br/> *<math>uncompressed</math> is any uncompressed string. ==Description== *This function gives the compre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
LZWCOMPRESS (uncompressed)


  • is any uncompressed string.

Description

  • This function gives the compressed value in its simplest form.
  • A quick examination of the algorithm shows that LZW is always trying to output codes for strings.
  • And each time a new code is output, a new string is added to the string table.

Examples

  1. LZWCOMPRESS("Ttestst a s") = 84 116 101 115 116 259 32 97 32 115
  2. LZWCOMPRESS("Holiday") = 72 111 108 105 100 97 121
  3. LZWCOMPRESS("a^ h*&webvcddeee") = 97 94 32 104 42 38 119 101 98 118 99 100 100 101 269

See Also

References