This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi, I need to check several sets of data D1 (dataA, dataB, dataC ...), D2 (dataD, dataE, dataF ...), against several criterias: criteria1, criteria2, criteria3, criteria4 etc ...
The objective is to get the unique set of data which satisfies all the crierias OR is the nearest one to the criterias.
So my idea is to affect them a score: If D1.dataA= criteria1 then I increase D1's score by 1 If D1.dataB= criteria2 then I increase D1's score by 1 and I add all the scores and give D1 a total score,etc
and at the end I select the set Dx which has the biggest score.
what solution do you recommend ? I am looking for any kind of solution, and information on the implementation as well of course. Hashmap ? TreeSet ? Comparable ?
If someone has already done something like that, please let me know.