Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compression > #3811

Re: Basics of LZ77 Algorithm

Path csiph.com!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From nobody@example.org (Scott)
Newsgroups comp.compression
Subject Re: Basics of LZ77 Algorithm
Date Tue, 11 Jun 2019 22:05:38 GMT
Organization XMission http://xmission.com/
Message-ID <5d0022a4.3069941455@core> (permalink)
References <21aa0da4-5408-4857-8429-470264e607d7@googlegroups.com>
Injection-Info news.xmission.com; posting-host="shell.xmission.com:2607:fa18:0:beef::4"; logging-data="21827"; mail-complaints-to="abuse@xmission.com"
X-Newsreader Forte Free Agent 1.21/32.243
Xref csiph.com comp.compression:3811

Show key headers only | View raw


On Tue, 11 Jun 2019 08:11:11 -0700 (PDT), yasar11732@gmail.com wrote:

>I am trying to understand how LZ77 algorithm work. From what I read from va=
>rious sources, I have come to following conclusion:
>
>According to LZ77 compression algorithm, if I encode jump and length using =
>4 bits, and character as 8 bits, I will use 16bits for each token. If the t=
>ext I am compressing doesn't have any repetition, I will actually double th=
>e size of my input.
>
>I was wondering if I had arrived to correct conclusion, because it doesn't =
>sound right.

It does sound odd at first, but that's more or less right. It's a
fundamental fact of information theory and applies to all (lossless)
compression methods. Basically, over the set of all possible messages
of length N, the average length of the corresponding compressed
messages is also N.

So yes, every method will have certain inputs that produce larger
outputs. The trick to practical compression is to find algorithms that
work well with patterns that you find in certain useful inputs, which
AIUI is how LZ was designed. Then you check as you go, and if you have
a chunk that is anti-compressible, you just store it without
compression.

Back to comp.compression | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Basics of LZ77 Algorithm yasar11732@gmail.com - 2019-06-11 08:11 -0700
  Re: Basics of LZ77 Algorithm nobody@example.org (Scott) - 2019-06-11 22:05 +0000
  Re: Basics of LZ77 Algorithm flemingsarah015@gmail.com - 2019-07-01 10:49 -0700

csiph-web