The Collaborative filtering follow the following steps:
Weight all users with respect to similarity with the active user.
Select a subset of the users (neighbors) to use as predictors.
Normalize the ratings and compute a prediction from a weighted combination of the selected neighbors ratings.
Present items with highest predicted ratings as recommendations.
Nikhil Pratap