A website streams movies to customers

Assignment Help Chemistry
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 

Reference no: EM13900928

Questions Cloud

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.

Reviews

Write a Review

Chemistry Questions & Answers

  Steps in the mechanism for the following reaction

Show all the steps in the mechanism for the following reaction, When benzene is mixed with deuterated sulfuric acid, deuterium is slowly incorporated onto the ring. Show the mechanism for this reaction and explain how this relates the sulfonation of ..

  Prior to placing piece of metal into the graduated cylinder

This assignment inhibits chemistry Laboratory Questions.

  Write the structures of the saytzeff elimination

Write the structures of the saytzeff elimination

  Calculate ph - chemistry questions

Chemistry Questions on Calculate P H

  How many mols of hydrogen can produce

how many mols of H 2 can produce

  Analysis of corrosion mechanisms

Analysis of corrosion mechanisms and preventative measures

  Chemical and pharmaceutical science

Write an equation for the formation of an acetal from reaction of excess methanol with benzaldehyde in the presence of an acid catalyst.

  Calculate the approximate sulphur

Calculate the approximate SO 2 mass emission in lb/day.

  What is the structure - stereochemistry

What is the structure (including functional groups)? Stereochemistry (racemic or single enantiomer)?

  Design a qualitative analysis scheme

Design a qualitative analysis scheme

  What will be the resultant pressure

What will be the resultant pressure when the stopcock is opened?

  The 1h nmr spectrum

Integrals for some of the resonances in the 1H NMR spectrum are higher than they should be due to the shear number of hydrogens in this compound

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd