java recommendation algorithm
<p>can you please help me with the following?  </p>

<p>Assume we have about 100 movies which are rated by users in a <strong>1-10</strong> scale. Each user has a <em>unique</em> name and rates as many movies as he wants. I want to implement an algorithm that finds out common interests between users. Specifically, when a user presses a ''get Recommendations'' button, the system would search for everyone's else common movies with that user and does the following:<br>
For every movie two users have seen in common, it subtracts the two scores made by these two users for this movie. Then it finds the average of all these subtractions. The smaller this average number is, the more same interests they have. So, let's assume User_A gets the smallest average with User_B. Then, the system should recommend for User_A something that User_B has seen, while User_A hasn't.</p>

<p>Could you give me an idea of how to do that?<br>
Some code snippets would be really helpful but if that's not the case, could you at least tell me what java structures do I need to implement this algorithm? </p>

<p>Thank you..</p>
