<s>
In	O
computer	B-General_Concept
science	I-General_Concept
,	O
a	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
(	O
or	O
GSA	O
)	O
is	O
a	O
suffix	B-Algorithm
array	I-Algorithm
containing	O
all	O
suffixes	O
for	O
a	O
set	O
of	O
strings	O
.	O
</s>
<s>
The	O
functionality	O
of	O
a	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
is	O
as	O
follows	O
:	O
</s>
<s>
In	O
the	O
case	O
where	O
different	O
strings	O
in	O
have	O
identical	O
suffixes	O
,	O
in	O
the	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
,	O
those	O
suffixes	O
will	O
occupy	O
consecutive	O
positions	O
.	O
</s>
<s>
A	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
can	O
be	O
generated	O
for	O
a	O
generalized	B-Algorithm
suffix	I-Algorithm
tree	I-Algorithm
.	O
</s>
<s>
When	O
compared	O
to	O
a	O
generalized	B-Algorithm
suffix	I-Algorithm
tree	I-Algorithm
,	O
while	O
the	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
will	O
require	O
more	O
time	O
to	O
construct	O
,	O
it	O
will	O
use	O
less	O
space	O
than	O
the	O
tree	O
.	O
</s>
<s>
Algorithms	O
and	O
tools	O
for	O
constructing	O
a	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
include	O
:	O
</s>
<s>
Mnemonist	O
,	O
a	O
collection	O
of	O
data	O
structures	O
implemented	O
in	O
JavaScript	B-Language
contains	O
an	O
implementation	O
for	O
a	O
generalized	B-Algorithm
suffix	I-Algorithm
tree	I-Algorithm
and	O
can	O
be	O
found	O
publicly	O
on	O
npm	B-Language
and	O
GitHub	B-Application
.	O
</s>
<s>
Generalized	B-Algorithm
suffix	I-Algorithm
arrays	I-Algorithm
can	O
be	O
used	O
to	O
solve	O
the	O
pattern	B-Language
matching	I-Language
problem	I-Language
:	O
</s>
<s>
Using	O
the	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
of	O
,	O
then	O
first	O
,	O
the	O
suffixes	O
that	O
have	O
as	O
a	O
prefix	O
need	O
to	O
be	O
found	O
.	O
</s>
<s>
By	O
comparison	O
,	O
solving	O
this	O
problem	O
using	O
suffix	B-Architecture
trees	I-Architecture
takes	O
time	O
.	O
</s>
<s>
Note	O
that	O
with	O
a	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
,	O
the	O
space	O
required	O
is	O
smaller	O
compared	O
to	O
a	O
suffix	B-Architecture
tree	I-Architecture
,	O
since	O
the	O
algorithm	O
only	O
requires	O
space	O
for	O
words	O
and	O
the	O
space	O
to	O
store	O
the	O
string	O
.	O
</s>
<s>
A	O
generalized	B-Algorithm
suffix	I-Algorithm
array	I-Algorithm
can	O
be	O
utilized	O
to	O
compute	O
the	O
longest	O
common	O
subsequence	O
of	O
all	O
the	O
strings	O
in	O
a	O
set	O
or	O
collection	O
.	O
</s>
