Show that the given algorithm is a 2-approximation algorithm

Assignment Help Computer Engineering
Reference no: EM132142180

Question :

Suppose that you have a set of n files that have to be copied on 1GB USB drives. You can assume that the file sizes are known and always less than or equal to 1GB.

The objective is to use the minimum possible number of USB drives. Suppose that you use the following algorithm: if the file fits in the current USB drive, add the file to the drive, otherwise, put this USB drive aside and start a new one.

The algorithm is simple in that it does not pre-arrange the files according to their sizes and it never tries to revisit previously closed USB drives to scavenge for additional space.

a. Show an example in which the algorithm uses n/2 drives but the optimum file arrangement uses only n/4 + 1.

b. Show that the given algorithm is a 2-approximation algorithm.

Reference no: EM132142180

Questions Cloud

What is the equilibrium value of a share of jones inc today : The required return on the cash flows of Jones' dividends is 14% per year. a) What is the equilibrium value of a share of Jones Inc today?
How many sandwiches do you make : Suppose you are planning a party for 10 friends. You decide to make sandwiches to serve at the party, no more than one sandwich per person.
What is the effective yield to maturity : Use Appendix B for an approximate answer but calculate your final answer using the formula and financial calculator methods.
Find sum of firms profits in the subgame perfect equilibrium : Firm 1 must decide whether to enter an industry in which firm 2 is an incumbent. To enter this industry, firm 1 must choose to build either a plant with a small
Show that the given algorithm is a 2-approximation algorithm : Show an example in which the algorithm uses n/2 drives but the optimum file arrangement uses only n/4 + 1.
Develop preliminary prototype of proposed e-commerce website : CIS5101 Management of Business Online - Describe the website structure and the purpose of each element (include snapshots and diagrams where appropriate)
Is the firm making profits or losses : A firm is currently producing 30 units of output. At this level of output produced: Its average total cost is 110 (ATC =110) The market price per unit of output
What does that indicate and how do you fix it : Suppose you are in the process of drawing the DFDs, and you have found that one of your Level 1 DFD describing a process in level 0.
Calculate the quantity of units : A firm has demand equation Q = 10 - 2P. The firm must sell an integer quantity of product and charge the same price per unit of product for all units sold.

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