From 377bfdd3b0d05259e471b73d28912f9a1054caa4 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 30 Jan 2024 08:32:18 -0500 Subject: [PATCH] the number of users, movies, shows, as member variables --- hws/03_amazon_prime/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hws/03_amazon_prime/README.md b/hws/03_amazon_prime/README.md index 0066e51..6a32a65 100644 --- a/hws/03_amazon_prime/README.md +++ b/hws/03_amazon_prime/README.md @@ -197,7 +197,7 @@ The first function returns an integer array, representd by its third argument - The second function returns an integer array, representd by its third argument - *int\* recommendedShows*. Each element of this array is an index of a tv show that will be recommended to the user. It is the caller's responsibility to allocate and reclaim memory for this array. -These two functions assume the **RecommendationSystem** class has two member variables, +These two functions assume the **RecommendationSystem** class has these two member variables, ```cpp int** userMovieRatingsMatrix; @@ -216,6 +216,8 @@ The second argument (*int numRecommendations*) of these two functions is the num On the other hand, if *numRecommendations* is 5, but the algorithm finds 20 movies the user might like, the function would only return 5 indices. In other words, the function will never return more than *numRecommendations* indices. +In addition, the two functions also assume the **RecommendationSystem** class has defined the number of users, the number of movies, the number of tv shows as its member variables, named numUsers, numMovies, numShows, respectively. + ## Program Requirements & Submission Details In this assignment, **you are NOT allowed to use std::vector anywhere in your code**. You must use dynamic memory to store the movie rating matrix, and the show rating matrix.