1983-01-01

# A Common Basis for Similarity Measures Involving Two Strings

## Publication

### Publication

*International Journal of Computer Mathematics , Volume 13 - Issue 1 p. 17- 40*

Many numerical indices which quantify the similarity and dissimilarity between a pair of strings, X and Y have been defined in the literature. Some of these include the Length of their Longest Common Subsequence (LLCS(X Y)), the Length of their Shortest Common Supersequence (LSCS(X, Y)), and their Generalized Levenshtein Distance (GLD(X, Y)). Some non-numerical indices relating the strings are the set of their common subsequences, the set of their common supersequcnces and the set of their shuffles. In this paper, we consider an abstract measure between X and Y, written as D(X, Y), defined in terms of two abstract operators e and 0 and a binary function d(-, •) whose arguments are symbols of an alphabet A. Depending on the various concrete operators used for $ and 0 and the specific function used for d(•,), all the quantities discussed above can be seen to be particular cases of D(X, 7). We have presented an algorithm to recursively compute D(X, Y) which can serve to be a common scheme to compute all these quantities. Many new results are obtained using this abstract formulation, such as an explicit linear relationship between the LLCS and the LSCS between two strings. It can also be seen that the algorithm to compute the LLCS between X and Y is a special case of the algorithm to compute D(X, Y). In addition, by using different concrete values for 0, 0 and d(.•), new one-pass algorithms can be developed to compute various quantities such as the set of Longest Common Subsequences (LCS), the set of all the Shortest Common Supersequences (SCS) without backtracking, and the set of all the shuffles of two strings.

Additional Metadata | |
---|---|

Keywords | common basis for properties involving strings, distances between strings, longest common subsequence, sets of shuffles of two strings, shortest common supersequence, Similarity measures for strings |

Persistent URL | dx.doi.org/10.1080/00207168308803349 |

Journal | International Journal of Computer Mathematics |

Citation |
Kashyap, R.L. (R. L.), & Oommen, J. (1983). A Common Basis for Similarity Measures Involving Two Strings.
International Journal of Computer Mathematics, 13(1), 17–40. doi:10.1080/00207168308803349 |