<s>
Lempel	B-Algorithm
–	I-Algorithm
Ziv	I-Algorithm
–	I-Algorithm
Storer	I-Algorithm
–	I-Algorithm
Szymanski	I-Algorithm
(	O
LZSS	B-Algorithm
)	O
is	O
a	O
lossless	B-Algorithm
data	I-Algorithm
compression	I-Algorithm
algorithm	O
,	O
a	O
derivative	O
of	O
LZ77	O
,	O
that	O
was	O
created	O
in	O
1982	O
by	O
James	O
A	O
.	O
Storer	O
and	O
Thomas	O
Szymanski	O
.	O
</s>
<s>
LZSS	B-Algorithm
was	O
described	O
in	O
article	O
"	O
Data	O
compression	O
via	O
textual	O
substitution	O
"	O
published	O
in	O
Journal	O
of	O
the	O
ACM	O
(	O
1982	O
,	O
pp.928	O
–	O
951	O
)	O
.	O
</s>
<s>
LZSS	B-Algorithm
is	O
a	O
dictionary	B-Algorithm
coding	I-Algorithm
technique	O
.	O
</s>
<s>
The	O
main	O
difference	O
between	O
LZ77	O
and	O
LZSS	B-Algorithm
is	O
that	O
in	O
LZ77	O
the	O
dictionary	O
reference	O
could	O
actually	O
be	O
longer	O
than	O
the	O
string	O
it	O
was	O
replacing	O
.	O
</s>
<s>
In	O
LZSS	B-Algorithm
,	O
such	O
references	O
are	O
omitted	O
if	O
the	O
length	O
is	O
less	O
than	O
the	O
"	O
break	O
even	O
"	O
point	O
.	O
</s>
<s>
Furthermore	O
,	O
LZSS	B-Algorithm
uses	O
one-bit	O
flags	O
to	O
indicate	O
whether	O
the	O
next	O
chunk	O
of	O
data	O
is	O
a	O
literal	O
(	O
byte	O
)	O
or	O
a	O
reference	O
to	O
an	O
offset/length	O
pair	O
.	O
</s>
<s>
Green	O
Eggs	O
and	O
Ham	O
is	O
a	O
good	O
example	O
to	O
illustrate	O
LZSS	B-Algorithm
compression	O
because	O
the	O
book	O
itself	O
only	O
contains	O
50	O
unique	O
words	O
,	O
despite	O
having	O
a	O
word	O
count	O
of	O
170	O
.	O
</s>
<s>
Assuming	O
a	O
break	O
even	O
point	O
of	O
2	O
bytes	O
(	O
and	O
thus	O
2	O
byte	O
pointer/offset	O
pairs	O
)	O
,	O
and	O
one	O
byte	O
newlines	O
,	O
this	O
text	O
compressed	O
with	O
LZSS	B-Algorithm
becomes	O
94	O
bytes	O
long	O
:	O
</s>
<s>
Many	O
popular	O
archivers	O
like	O
PKZip	B-Application
,	O
ARJ	B-Application
,	O
RAR	O
,	O
ZOO	B-Application
,	O
LHarc	B-Application
use	O
LZSS	B-Algorithm
rather	O
than	O
LZ77	O
as	O
the	O
primary	O
compression	O
algorithm	O
;	O
the	O
encoding	O
of	O
literal	O
characters	O
and	O
of	O
length-distance	O
pairs	O
varies	O
,	O
with	O
the	O
most	O
common	O
option	O
being	O
Huffman	B-General_Concept
coding	I-General_Concept
.	O
</s>
<s>
Version	O
4	O
of	O
the	O
Allegro	B-Language
library	I-Language
can	O
encode	O
and	O
decode	O
an	O
LZSS	B-Algorithm
format	O
,	O
but	O
the	O
feature	O
was	O
cut	O
from	O
version	O
5	O
.	O
</s>
<s>
The	O
Game	B-Device
Boy	I-Device
Advance	I-Device
BIOS	O
can	O
decode	O
a	O
slightly	O
modified	O
LZSS	B-Algorithm
format	O
.	O
</s>
<s>
Apple	O
's	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
uses	O
LZSS	B-Algorithm
as	O
one	O
of	O
the	O
compression	O
methods	O
for	O
kernel	O
code	O
.	O
</s>
