Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Longest Common Substring Algorithm

String Algorithm

The longest common substring of two or more strings is the longest string that appears as a contiguous substring of all of them, with applications including data deduplication and plagiarism detection; there may be more than one longest common substring for a given input. It differs from the longest common subsequence problem, which allows insertions or deletions within the shared text, because the longest common substring problem requires the shared text to be contiguous.

Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.