Reference no: EM13900928
A website streams movies to customers' TVs or other devices. Movies are in one of several genres such as action, drama, mystery, etc. Every movie is in exactly one genre (so that if a movie is an action movie as well as a comedy, it is in a genre called "action-comedy"). The site has around 10 million customers, and around 25,000 movies, but both are growing rapidly. The site wants to keep track of the most popular movies streamed. You have been hired as the lead engineer
to develop a tracking program.
i) Every time a movie is streamed to a customer, its name (e.g. "A Very Harold & Kumar 3D Christmas") and genre ("Comedy") is sent to your program, which then updates the data structures it maintains. (Assume your program can get the current year with a call to an appropriate Java class, in O(1) time.)
ii) Customers want to know what were the top k most streamed movies in genre g in year y. (If y is the current year, then accounting is done up to the current date.) For example, what were the top 10 most streamed comedy movies in 2012? Here k = 10, g="comedy" and y = 2012. This query is sent to your program which should output the top k movie names, in descending order of number of times streamed.
- a)Describe the data structures used to implement the above.
b)For (i), describe the algorithm, step by step, to update the data structures. Analyze its big O running time.
Show your work. Specify whether the running time is worst case or something else.
c) For (ii), analyze the big O running time to output the top k streamed movies. Describe additional data
structures, if any, used in this process. Show your work. Specify whether the running time is worst case
Compute the total amount of each installment payment
: On October 1, 2013, Gordon Enterprises borrows $ 150,000 cash from a bank by signing a three year installment note bearing 10% interest.
|
Explain what is meant by the concept of discounted cash flow
: Explain what is meant by concept of discounted cash flow? How does it help in decision- taking in an organization? Show how standard costing concepts can help in controlling costs in your organization.
|
Determine the distribution of scalar magnetic potential
: The stator and rotor teeth arrangement of an electromechanical device is given in Figure P12.5. Determine the distribution of scalar magnetic potential between the stator and rotor teeth and inside the slots of the given system, using the FEM.
|
Discuss the relationships between operating and combined
: Discuss the relationships between operating, financial and combined leverage?
|
A website streams movies to customers
: A website streams movies to customers' TVs or other devices. Movies are in one of several genres such as action, drama, mystery, etc. Every movie is in exactly one genre (so that if a movie is an action movie as well as a comedy, it is in a genre cal..
|
Use principle of marginal costing to decide about problem
: You decide that you will use the principle of marginal costing to decide on which courses will be dropped, given that the overhead resources, such as heating, and room hire are likely to be the same for all courses. How will you do this?
|
Write a one-page description of a film that uses jazz music
: Write a one-page description of a film that uses jazz music as its primary score. An example would be Otto Preminger's Anatomy of a Murder. It was filmed in 1959
|
What is the difference between a one dimensional array
: What is the difference between a one dimensional array and a two dimensional array, how would you call a specific point in the array for each?
|
Determine the equipotential lines between the 100-v and 0-v
: Determine the equipotential lines between the 100-V and 0-V potential conductors in Figure P12.4 using the FEM.
|