Bob has two strings a and b, he wants to calculatethe similarity of them. The similarity is defined by the sum of the number of times in string a for each substring in string b.
Bob has two strings a and b, he wants to calculate the similarity of them. The similarity is defined by the sum of the number of times in string a for each substring in string b.
(图片来源网络,侵删)