<s>
Re-Pair	B-Algorithm
(	O
short	O
for	O
recursive	B-Algorithm
pairing	I-Algorithm
)	O
is	O
a	O
grammar-based	O
compression	O
algorithm	O
that	O
,	O
given	O
an	O
input	O
text	O
,	O
builds	O
a	O
straight-line	O
program	O
,	O
i.e.	O
</s>
<s>
Re-Pair	B-Algorithm
was	O
first	O
introduced	O
by	O
NJ	O
.	O
</s>
<s>
The	O
experiments	O
showed	O
that	O
Re-Pair	B-Algorithm
achieves	O
high	O
compression	O
ratios	O
and	O
offers	O
good	O
performance	O
for	O
decompression	O
.	O
</s>
<s>
This	O
was	O
the	O
method	O
proposed	O
originally	O
when	O
Re-Pair	B-Algorithm
was	O
first	O
introduced	O
.	O
</s>
<s>
However	O
,	O
most	O
implementations	O
of	O
Re-Pair	B-Algorithm
use	O
the	O
implicit	O
encoding	O
method	O
due	O
to	O
its	O
simplicity	O
and	O
good	O
performance	O
.	O
</s>
<s>
There	O
exists	O
a	O
number	O
of	O
different	O
implementations	O
of	O
Re-Pair	B-Algorithm
.	O
</s>
<s>
The	O
compression	O
algorithm	O
works	O
as	O
Re-Pair	B-Algorithm
but	O
considering	O
the	O
identified	O
phrases	O
as	O
the	O
terminals	O
of	O
the	O
grammar	O
.	O
</s>
<s>
Original	O
2011	O
This	O
is	O
one	O
of	O
the	O
most	O
popular	O
implementations	O
of	O
Re-Pair	B-Algorithm
.	O
</s>
<s>
Most	O
later	O
versions	O
of	O
Re-Pair	B-Algorithm
are	O
implemented	O
starting	O
from	O
this	O
one	O
.	O
</s>
<s>
EncodingSatoshi	O
Yoshida	O
and	O
Takuya	O
Kida	O
,	O
Effective	O
Variable-Length-to-Fixed-Length	O
Coding	O
via	O
a	O
Re-Pair	B-Algorithm
Algorithm	O
,	O
In	O
Proc	O
.	O
</s>
<s>
2013	O
Instead	O
of	O
the	O
implicit	O
encoding	O
method	O
,	O
this	O
implementation	O
uses	O
a	O
Variable	B-Algorithm
Length	I-Algorithm
to	O
Fixed	O
Length	O
method	O
,	O
in	O
which	O
each	O
rule	O
(	O
represented	O
with	O
a	O
string	O
of	O
Variable	B-Algorithm
Length	I-Algorithm
)	O
is	O
encoded	O
using	O
a	O
code	O
of	O
Fixed	O
Length	O
.	O
</s>
<s>
Space-efficient	O
re-pair	B-Algorithm
compression	O
.	O
</s>
<s>
Improvements	O
on	O
Re-Pair	B-Algorithm
grammar	O
compressor	O
.	O
</s>
<s>
2018	O
This	O
algorithm	O
reduces	O
the	O
size	O
of	O
the	O
grammar	O
generated	O
by	O
Re-Pair	B-Algorithm
by	O
replacing	O
maximal	O
repeats	O
first	O
.	O
</s>
