You are tasked with developing a movie recommendation system. You are given a list of movies...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are tasked with developing a movie recommendation system. You are given a list of movies (their names) and a list of similarities between movies (pairs of movies that are similar). You are also given a list of user's friends, and for each friend a list of movies that he has already seen. Your system should recommend one movie with the highest discussability and uniqueness. Discussability is the number of friends of user, who have already seen that movie. Uniqueness is 1 divided by the mean number of similar movies that user's friends have already seen. So you should return the film with the highest number: F/S, where F = number of friends who have seen this movie, and S = mean of number of similar movies seen for each friend. Exclude the movies with S = 0. If (a, b) and (b, c) are pairs of similar movies, then (a, c) is a pair of similar movies too. Each movie is not counted in its Uniqueness. Input example. Basically it is up to you to come up with data structure you like or you think easy to work with. In a nutshell you have as an input these parameters (they can be in form of a list/dict etc): movies = ["Parasite","1917","Ford v Ferrari","Jojo Rabbit","Joker"] similarities = [['Parasite","1917"], ["Parasite", "Jojo Rabbit"], ["Joker", "Ford v Ferrari"]] friends = [['Joker"], ["Joker","1917"], ["Joker"], ["Parasite"], ["1917"], ["Jojo Rabbit", "Joker"]] Your code should work, it should be the same time and space complexity as your algorithm (or better, if you have come up with a better solution). It should be clean and easily understandable. Please provide the proof that your algorithm will come up with correct/optimal solution. What is the time complexity of your algorithm? Please provide proof for it. What is the memory complexity of your algorithm? Please provide proof for it. You are tasked with developing a movie recommendation system. You are given a list of movies (their names) and a list of similarities between movies (pairs of movies that are similar). You are also given a list of user's friends, and for each friend a list of movies that he has already seen. Your system should recommend one movie with the highest discussability and uniqueness. Discussability is the number of friends of user, who have already seen that movie. Uniqueness is 1 divided by the mean number of similar movies that user's friends have already seen. So you should return the film with the highest number: F/S, where F = number of friends who have seen this movie, and S = mean of number of similar movies seen for each friend. Exclude the movies with S = 0. If (a, b) and (b, c) are pairs of similar movies, then (a, c) is a pair of similar movies too. Each movie is not counted in its Uniqueness. Input example. Basically it is up to you to come up with data structure you like or you think easy to work with. In a nutshell you have as an input these parameters (they can be in form of a list/dict etc): movies = ["Parasite","1917","Ford v Ferrari","Jojo Rabbit","Joker"] similarities = [['Parasite","1917"], ["Parasite", "Jojo Rabbit"], ["Joker", "Ford v Ferrari"]] friends = [['Joker"], ["Joker","1917"], ["Joker"], ["Parasite"], ["1917"], ["Jojo Rabbit", "Joker"]] Your code should work, it should be the same time and space complexity as your algorithm (or better, if you have come up with a better solution). It should be clean and easily understandable. Please provide the proof that your algorithm will come up with correct/optimal solution. What is the time complexity of your algorithm? Please provide proof for it. What is the memory complexity of your algorithm? Please provide proof for it.
Expert Answer:
Answer rating: 100% (QA)
import pandas as pd Define the movies similarities and friends data movies Parasite 1917 Ford v Ferrari Jojo Rabbit Joker similarities Parasite 1917 Parasite Jojo Rabbit Parasite Joker Ford v Ferrari ... View the full answer
Related Book For
Business Intelligence And Analytics Systems For Decision Support
ISBN: 9781292009209
10th Global Edition
Authors: Efraim Turban, Ramesh Sharda, Dursun Delen, Pearson Education Limited, Dennis G. Zill
Posted Date:
Students also viewed these programming questions
-
What is the role of grassroots activism in catalyzing social change, and how can these grassroots movements effectively influence larger political and economic structures to achieve lasting impact ?...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
A red laser ( lambda r = 6 3 3 nm ) is shone through a narrow slit located 2 m from a screen. When the light source is replaced by a blue laser ( b = 4 8 8 nm ) the position of the first minimum of...
-
With the pressure held constant at 260 kPa, 43 mol of a monatomic ideal gas expands from an initial volume of 0.75 m3 to a final volume of 1.9 m3. (a) How much work was done by the gas during the...
-
The comparative statement of financial position for Charmaine Retailers Ltd. follows: Additional information: 1. Profit was $62,000 in 2015. 2. Depreciation expense was $21,000 in 2015. 3. Payments...
-
The comparative financial statements of Bien Taco Restaurants for 2010, 2009, and 2008 include the following selected data: Requirements 1. Compute these ratios for 2010 and 2009: a. Quick ratio. b....
-
In Problem 3- 27, Farm Grown, Inc. has reason to believe the probabilities may not be reliable due to changing conditions. If these probabilities are ignored, what decision would be made using the...
-
Sunland and Crede, CPAs, are preparing their service revenue (sales) budget for the coming year (2022). The practice is divided into three departments: auditing, tax, and consulting. Billable hours...
-
5.5 Table 5.15 shows a regression output obtained from fitting the model Y = Bo + BX + to a set of data consisting of n workers in a given company, where Y is the weekly wages in $100 and X is the...
-
- Explain The impact of national culture on leadership direction and increased awareness of the factors that contribute to effective leadership.
-
describe the culture of leadership and observed leadership behaviors in an organization or department. Use transactional and transformational leadership.
-
How can an organization cultivate a culture that embraces diversity, equity, and inclusion, and what challenges might arise during this process?
-
In the figure below, each charged particle is located at one of the four vertices of a square with side length = a. In the figure, A = 3, B = 2, and C = 8, and q> 0. Aq E= a Bq a 2kq a 9 (a) What is...
-
What paradigmatic shifts have influenced contemporary perspectives on organizational structure, and how do these shifts manifest in modern organizational frameworks?
-
The actual temperature drop across the heating surface in an evaporator depends on the feed. depth of liquid over heating surface. pressure difference between steam chest and vapour space. all (a),...
-
a. Determine the domain and range of the following functions.b. Graph each function using a graphing utility. Be sure to experiment with the window and orientation to give the best perspective of the...
-
Go to the teradata.com and/or asterdata.com Web sites. Find at least three customer case studies on Big Data, and write a report where you discuss the commonalities and differences of these cases.
-
Go to teradatauniversitynetwork.com. Find the assignment for SAS Visual Analytics. Using the information and step-by-step instructions provided in the assignment, execute the analysis on the SAS...
-
At teradatauniversitynetwork.com, go to the podcasts library. Find podcasts about Big Data analytics. Summarize your findings.
-
What is a wave equation? What is a traveling-wave solution?
-
Fill in the Blank. In the wave-solution \(w(x, t)=w_{1}(x-c t)+w_{2}(x+c t)\), the first term represents the wave that propagates in the __________ directions of \(x\). conditions
-
Find the time it takes for a transverse wave to travel along a transmission line from one tower to another one \(300 \mathrm{~m}\) away. Assume the horizontal component of the cable tension as 30,000...
Study smarter with the SolutionInn App