Algorithm: Build a recommendation for movies you might like

Posted by Faruz on Stack Overflow See other posts from Stack Overflow or by Faruz
Published on 2010-03-31T08:41:35Z Indexed on 2010/03/31 8:43 UTC
Read the original article Hit count: 483

Filed under:
|

I need help designing an algorithm for recommendations on movies.

Every user in the system grades movies on a score between 1-100.

Tables consist of:

Table Movies
ID    Name    Year    Rating    Runtime

Table Con_MoviesToGenres
MovieID    GenreID

Table Con_MovieToUser
MovieID    UserID    Grade

I'm trying to build a SELECT query to return 5 most recommended movies for a specific movie.

Bearing in mind, I want to integrate in some way, similar genres, highest grades & movie Rating (so you want be recommended an R rated movie for a PG rated movie, unless it's really recommended in every other aspect). Also, if movie matches more than one genre, it will increase its recommendation ratio. Bonus: If a user gives a low grade to a movie -> it will lose recommendation ratio.

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about sql