 The algorithm works best on data with repeated patterns, so the initial parts of a message see little compression.As the message grows, however, the compression ratio tends asymptotically to the maximum (i.e., the compression factor or ratio improves on an increasing curve, and not linearly, approaching a theoretical maximum inside a limited time period rather than over infinite time).The decoding algorithm works by reading a value from the encoded input and outputting the corresponding string from the initialized dictionary.