k2
k2 copied to clipboard
Changed klaap-LCP to kmp-LCP
Updated the CreateLcpArray function with a faster algorithm. The results are identical to the previous algorithm and all the tests are passed. The previous algorithm is still there but is commented out. The new implementation seems to be faster for longer input strings.
just saw this- thanks! Can you please make the PR to github.com/k2-fsa/k2/ instead though?