Efficient algorithm that returns the minimum total cost

Assignment Help Computer Engineering
Reference no: EM133423601

Question: There are n libraries L1, L2, . . . , Ln. We want to store copies of a book in some of the libraries. Storing a copy at Li incurs an integer purchase cost ci > 0. A copy of the book is always stored at Ln. If a user requests the book from Li and Li does not have it, then Li+1, Li+2, . . . are searched sequentially until a copy of the book is found at Lj , for some j > i. This results in a user delay of j - i. (Note that, in this case, no library Lk with an index k smaller than i is searched; also, if the user finds the book at Li , then the user delay is 0.) We define the total cost as the sum of all the purchase costs and all the user delays, assuming that there is one user in each of the n libraries. For example, if there are 4 libraries, and copies of the book are stored at L1 and L4, the total cost is c1 + c4 + 2 + 1. Give an efficient algorithm that returns (a) the minimum total cost; and (b) a set of libraries where copies of the books must be placed to achieve the minimum total cost.

Reference no: EM133423601

Questions Cloud

What is the number of passes needed to sort the data : What is the number of passes needed to sort the data using external merge sort in this scenario.
Discuss importance of teaching secondary science education : Discuss the importance of teaching secondary science education. Discuss and Note critical points in lectures, discussions, and demonstrations.
How data will influence the future of storytelling : How Data will Influence the Future of Storytelling Introduction, Findings and Conclusion, with last 5 years industrial examples
What is human population size that the earth can support : What is human population size that the Earth can support if everyone had your ecological footprint? Explain the basis on which you determined this number.
Efficient algorithm that returns the minimum total cost : Give an efficient algorithm that returns the minimum total cost; and (b) a set of libraries where copies of the books must be placed to achieve the minimum
Describe the biological levels of organization from : Describe the biological levels of organization from the smallest unit of matter called the atom to highest level of organization, the biosphere.
Draw an erd with crows foot notation : Draw an ERD with crows foot notation and How many database tables are we going to have based on the ERD
What was the cause of michael jackson addiction to drugs : What was the cause of Michael Jackson addiction to drugs?
Cultural and linguistic skills with particular community : You have been employed because of your cultural and linguistic skills with a particular community of newly arrived forced migrants.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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