Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R - Longest common substring

Does anyone know of an R package that solves the longest common substring problem? I am looking for something fast that could work on vectors.

like image 629
gappy Avatar asked Sep 15 '09 20:09

gappy


People also ask

How do you find the longest common substring of multiple strings?

The longest common substrings of a set of strings can be found by building a generalized suffix tree for the strings, and then finding the deepest internal nodes which have leaf nodes from all the strings in the subtree below it.


1 Answers

Check out the "Rlibstree" package on omegahat Github

This uses http://www.icir.org/christian/libstree/.

like image 122
Shane Avatar answered Oct 21 '22 13:10

Shane