I have few sets. Each sets has few elements, (in varying numbers). Whenever I introduce a new set, I like to establish a one to one relationship with all closely matching existing sets. "Close matches' could be defined in various ways.
Relationship should be relationship between sets. Some examples: A is subset of B, B is subset of A, A and B has difference of 3 elements, etc..
How do I go about this? Existing algorithm/modules would be useful. I am open to new ideas.