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.
Sources
NIST Dictionary of Algorithms and Data Structures: longest common substring
NIST Dictionary of Algorithms and Data StructuresIn Group: String Searching Algorithms, DefinitionQuote, In Group: String Searching Algorithms, Definition
Find the longest substring of two or more strings .
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.