dpPathPlot4strMatch
Plot the path of dynamic programming for string match.
Contents
Syntax
- dpPathPlot4strMatch(str1, str2, lcsPath, lcsTable, prevx, prevy)
Description
dpPathPlot4strMatch(str1, str2, lcsPath, lcsTable, prevx, prevy) plot the DP path of string match.
This is primarily used in lcs.m and editDistance.m.
To see the result, try "lcs" or "editDistance".
Example
Display the edit distance between 2 strings:
editDistance;
![](dpPathPlot4strMatch_help_01.png)
Display the LCS (longest common distance) between 2 strings:
lcs;
![](dpPathPlot4strMatch_help_02.png)