Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compression > #3810 > unrolled thread
| Started by | yasar11732@gmail.com |
|---|---|
| First post | 2019-06-11 08:11 -0700 |
| Last post | 2019-07-01 10:49 -0700 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.compression
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
| From | yasar11732@gmail.com |
|---|---|
| Date | 2019-06-11 08:11 -0700 |
| Subject | Basics of LZ77 Algorithm |
| Message-ID | <21aa0da4-5408-4857-8429-470264e607d7@googlegroups.com> |
Hello, I am trying to understand how LZ77 algorithm work. From what I read from various 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 text I am compressing doesn't have any repetition, I will actually double the size of my input. I was wondering if I had arrived to correct conclusion, because it doesn't sound right. Thanks in advance, Yaşar Arabacı
[toc] | [next] | [standalone]
| From | nobody@example.org (Scott) |
|---|---|
| Date | 2019-06-11 22:05 +0000 |
| Message-ID | <5d0022a4.3069941455@core> |
| In reply to | #3810 |
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.
[toc] | [prev] | [next] | [standalone]
| From | flemingsarah015@gmail.com |
|---|---|
| Date | 2019-07-01 10:49 -0700 |
| Message-ID | <409b3323-c503-4ca8-94a2-ad8fea32b0f5@googlegroups.com> |
| In reply to | #3810 |
On Tuesday, June 11, 2019 at 4:11:12 PM UTC+1, yasar...@gmail.com wrote: > Hello, > > I am trying to understand how LZ77 algorithm work. From what I read from various 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 text I am compressing doesn't have any repetition, I will actually double the size of my input. > > I was wondering if I had arrived to correct conclusion, because it doesn't sound right. > > Thanks in advance, > > Yaşar Arabacı
[toc] | [prev] | [standalone]
Back to top | Article view | comp.compression
csiph-web