Longest Common Subsequence
Input data
dp[i][j] = the length of an LCS of the prefixes A[0:i] and B[0:j]
dp[i][j] = max(dp[i-1][j], dp[i][j-1], dp[i-1][j-1] + 𝟙[A[i-1]=B[j-1]])
dp[i][j] = the length of an LCS of the prefixes A[0:i] and B[0:j]
dp[i][j] = max(dp[i-1][j], dp[i][j-1], dp[i-1][j-1] + 𝟙[A[i-1]=B[j-1]])