See: Longest Common Subsequence (LCS), Learning Classifier System, Leacock Chodorow Similarity Measure.