Can suffix trees or suffix arrays be used effectively with numbers?
For example:
Can it be used with the array [1,2,3,4,5,3,9,8,5,3,9,8,6,4,5,3,9,11,9,8,7,11]
to extract all possible non-overlapping repeating sub-strings of all sizes from the array's contents?
If so, could you provide an implementation for the same.
I am trying to achieve the same but haven't reached an effective solution.
Expected results:
4,5
4,5,3
4,5,3,9
5,3
5,3,9
5,3,9,8
...
Considering the array : [1,2,3,4,5,9,3,4,5,9,3,3,4,5,9,3]
,
the non overlapping repeating sequence implies that the extracted group:3,4,5,9,3
is derived from the repetitions starting at indexes 2 to 6 and 11 to 15 and NOT 6 to 10