I am doing a community website that requires me to calculate the similarity between any two users. Each user is described with the following attributes:
Look at algorithms for computing srting difference. Its very similar to what you need. Store your attributes as a bit string and compute the distance between the strings