Given two strings, S of length m and T of length n, their longest common substrings can be found in O(m+n) time using a generalised suffix tree, or in O(mn) time through dynamic programming (e.g., the Python code here).
Monday, May 03, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment