wangsix / vmo

Python Modules of Variable Markov Oracle
GNU General Public License v3.0
25 stars 10 forks source link

Algorithm for finding LRS #15

Closed himito closed 8 years ago

himito commented 8 years ago

Hi,

I saw that vmo implements the algorithm found at

Lefebvre, A., Lecroq, T., & Alexandre, J. (2003). An Improved Algorithm for Finding Longest Repeats with a Modified Factor Oracle. Journal of Automata, Languages and Combinatorics, 8(4), 647–657.

However, the factor oracle for the string abbcabcdabc built by vmo does not correspond to the shown in the paper (figure below). VMO returns lrs[11] = 2 and sfx[11] = 4

capture d ecran 2016-09-13 a 11 35 39

Cheers, Jaime.

wangsix commented 8 years ago

Fixed by @himito.