Learn R Programming

PTXQC (version 1.1.2)

LCS: Compute longest common substring of two strings.

Description

Implementation is very inefficient (dynamic programming in R) --> use only on small instances

Usage

LCS(s1, s2)

Value

String containing the longest common substring

Arguments

s1

String one

s2

String two