User-based or memory-based filtering is a recommendation technique that finds similar users based on item ratings. It is a 3-step process: 1) find a target user's item ratings, 2) find the most similar other user based on item rating similarity, 3) recommend items to the target user that were highly rated by the similar user and not yet rated by the target user. Several measures can calculate user similarity, including distance measures like Manhattan distance, cosine similarity, and Pearson correlation, which accounts for different user rating scales. The k-nearest neighbors technique recommends items based on the ratings of the k most similar users.