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


Groups > comp.compression > #3114 > unrolled thread

Lempel Ziv compression implementation

Started bymathieu <mathieu.malaterre@gmail.com>
First post2015-07-25 06:30 -0700
Last post2015-08-04 14:11 -0700
Articles 5 — 4 participants

Back to article view | Back to comp.compression


Contents

  Lempel Ziv compression implementation mathieu <mathieu.malaterre@gmail.com> - 2015-07-25 06:30 -0700
    Re: Lempel Ziv compression implementation Robert Wessel <robertwessel2@yahoo.com> - 2015-07-25 15:28 -0500
      Re: Lempel Ziv compression implementation mathieu <mathieu.malaterre@gmail.com> - 2015-07-28 03:55 -0700
        Re: Lempel Ziv compression implementation glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-07-28 17:41 +0000
        Re: Lempel Ziv compression implementation Dave Brown <0ntariokingston@gmail.com> - 2015-08-04 14:11 -0700

#3114 — Lempel Ziv compression implementation

Frommathieu <mathieu.malaterre@gmail.com>
Date2015-07-25 06:30 -0700
SubjectLempel Ziv compression implementation
Message-ID<3db57d56-ba70-4caa-a78d-fc08909da195@googlegroups.com>
Hi there,

I am starring at page 43 and up (5.4 Example For Lempel-Ziv encoding) from the following document:

ftp://medical.nema.org/medical/dicom/1989/PS2_1989.pdf

Does anyone recognize the associated algorithm ? Is it available in a publicly available library ?

Thanks much for comments

[toc] | [next] | [standalone]


#3115

FromRobert Wessel <robertwessel2@yahoo.com>
Date2015-07-25 15:28 -0500
Message-ID<o9s7ra1epfam5nnkub9pu5922i2lkbjhdb@4ax.com>
In reply to#3114
On Sat, 25 Jul 2015 06:30:55 -0700 (PDT), mathieu
<mathieu.malaterre@gmail.com> wrote:

>Hi there,
>
>I am starring at page 43 and up (5.4 Example For Lempel-Ziv encoding) from the following document:
>
>ftp://medical.nema.org/medical/dicom/1989/PS2_1989.pdf
>
>Does anyone recognize the associated algorithm ? Is it available in a publicly available library ?
>
>Thanks much for comments


Page 11 seems to be clear that it's just LZW as described in the
original Welch paper, per reference #21.

[toc] | [prev] | [next] | [standalone]


#3116

Frommathieu <mathieu.malaterre@gmail.com>
Date2015-07-28 03:55 -0700
Message-ID<02bee337-9e43-46a3-bcb0-9f12b515babf@googlegroups.com>
In reply to#3115
On Saturday, July 25, 2015 at 10:28:20 PM UTC+2, robert...@yahoo.com wrote:
> On Sat, 25 Jul 2015 06:30:55 -0700 (PDT), mathieu
> <mathieu.malaterre gmail.com> wrote:
> 
> >Hi there,
> >
> >I am starring at page 43 and up (5.4 Example For Lempel-Ziv encoding) from the following document:
> >
> >ftp://medical.nema.org/medical/dicom/1989/PS2_1989.pdf
> >
> >Does anyone recognize the associated algorithm ? Is it available in a publicly available library ?
> >
> >Thanks much for comments
> 
> 
> Page 11 seems to be clear that it's just LZW as described in the
> original Welch paper, per reference #21.

Any implementation out there that support 16bits input. Most implementations I found assume 8bits input.

[toc] | [prev] | [next] | [standalone]


#3117

Fromglen herrmannsfeldt <gah@ugcs.caltech.edu>
Date2015-07-28 17:41 +0000
Message-ID<mp8erv$scn$1@speranza.aioe.org>
In reply to#3116
mathieu <mathieu.malaterre@gmail.com> wrote:
> On Saturday, July 25, 2015 at 10:28:20 PM UTC+2, robert...@yahoo.com wrote:
(snip) 
>> Page 11 seems to be clear that it's just LZW as described in the
>> original Welch paper, per reference #21.
 
> Any implementation out there that support 16bits input. 
> Most implementations I found assume 8bits input.

LZW finds repetitions in the data.  Repetitions in 16 bit data are
also repeitions in 8 bit data, so it will still find them.

LZW initializes the dictionary with all 8 bit values, which isn't
so bad.  If you made one that initialized with all 16 bit values,
it would have to start with 17 bit codes, which could be a lot
less efficient.

LZW also works well for smaller data, for example files full of
binary (ASCII '0' and '1') data, even if the actual 0's and 1's
are random, will compress well. It will find strings of 1's and
0's and code for them.

-- glen

[toc] | [prev] | [next] | [standalone]


#3130

FromDave Brown <0ntariokingston@gmail.com>
Date2015-08-04 14:11 -0700
Message-ID<ab116455-0409-417d-a477-e5f1d4047afd@googlegroups.com>
In reply to#3116
On Tuesday, July 28, 2015 at 6:55:48 AM UTC-4, mathieu wrote:
> On Saturday, July 25, 2015 at 10:28:20 PM UTC+2, robert...@yahoo.com wrote:
> > On Sat, 25 Jul 2015 06:30:55 -0700 (PDT), mathieu
> > <mathieu.malaterre gmail.com> wrote:
> > 
> > >Hi there,
> > >
> > >I am starring at page 43 and up (5.4 Example For Lempel-Ziv encoding) from the following document:
> > >
> > >ftp://medical.nema.org/medical/dicom/1989/PS2_1989.pdf
> > >
> > >Does anyone recognize the associated algorithm ? Is it available in a publicly available library ?
> > >
> > >Thanks much for comments
> > 
> > 
> > Page 11 seems to be clear that it's just LZW as described in the
> > original Welch paper, per reference #21.
> 
> Any implementation out there that support 16bits input. Most implementations I found assume 8bits input.

https://github.com/JavaScript-Packer/lzw-javascript-packer.js

[toc] | [prev] | [standalone]


Back to top | Article view | comp.compression


csiph-web