Given that I have two lists, each of which contains a separate subset of a common superset, is there an algorithm to give me a similarity measurement?
Example:
A = {John, Mary, Kate, Peter} and B = {Peter, James, Mary, Kate}
How similar are these two lists? Note that I do not know all the elements of a common superset.
Update: I was obscure, and I probably used the word βsetβ carelessly. My apologies. Clarification: The order is important. If identical elements occupy the same position in the list, we have the highest similarity for this element. The similarity decreased further than identical elements. The similarity is even lower if an item exists in only one of the lists.
I could even add the additional dimension that lower indices are more important, so aa [1] == b [1] costs more than [9] == b [9], but thatβs basically the reason I'm curious.
Cubed source share