I need to solve a problem when element A should be compared with thousands of other elements and find out which elements are most similar to element A.
I want to assign weight to each of these elements depending on how similar they are to element A. Various criteria determine the final weight. For example, if item1.someProperty == otherItem.someProperty , then I increase the weight by 5, if item1.anotherProperty == otherItem.anotherProperty , then I increase the weight only by 1, because someProperty more important than anotherProperty .
The reason I describe all of this is because I want to know if there is any theory that will help me create this system. In particular, how to choose the weight of each criterion, how to calculate the final weight of an element and how to do it all.
Does anyone know if there is any theory that could help? Or maybe there is a better way to do what I'm trying to do?
source share