Partial similarity of objects, or how to compare a