Design a greedy algorithm using pseudocode

Assignment Help Business Management
Reference no: EM131195246

Part 1: Design a greedy algorithm using pseudocode that solves this optimization problem of transferring files to disk while minimizing unused storage. The inputs to this algorithm are the number of files n, corresponding sizes (in MBs) s1, ... sn, m the number of disks, and corresponding storages amounts t1, ..., tm. The algorithm should return an array map[i] which contains the disk index of which the ith media file should be stored.

Comment your pseudocode for increased readability.

Part 2: Discuss the optimality of your algorithm. Is it guaranteed to return an optimal result? What is the Big-O time complexity of this algorithm in terms of m and n? Justify your answer.

Part 3: If you were to solve this problem using a brute force or exhaustive search method, what would be the time complexity? Justify your response.

Reference no: EM131195246

Questions Cloud

How large a wozac plant the company should build : Determine how large a Wozac plant the company should build to maximize its expected profit over the next 10 years.
Estimate the maximum compaction attainable in the landfill : A landfill operation uses a tractor to compact the waste. The tractor weighs 8 tons and has two tracks, each 2 ft 10 ft. Estimate the maximum compaction attainable in the landfill.
Explain and analysis the routing process of three routers : Configure the backup route through the Serial 0/1/0 interface with 25 AD. Explain and analysis the routing process of three routers in the case of ping from PC-A to Outside Host.
How does the feds monetary policy affect economic conditions : How does the Fed's monetary policy affect economic conditions?- Trade-offs of Monetary Policy Describe the economic trade-off faced by the Fed in achieving its economic goals.
Design a greedy algorithm using pseudocode : Design a greedy algorithm using pseudocode that solves this optimization problem of transferring files to disk while minimizing unused storage. The inputs to this algorithm are the number of files n, corresponding sizes (in MBs) s1, ... sn, m the ..
Assumed to increase at annual compound rate : How much money would have to be placed in a sinking fund each year to replace machine B at the end of 25 years if the fund yields 10% annual compound interest and if the first cost of the machine is assumed to increase at a 6% annual compound rate?
How much sooner will the town need a new landfill : how much more will this cost the town. How much sooner will the town need a new landfill?
Discuss the origins of the therapy : Select one of the therapeutic interventions listed below. Discuss the origins of the therapy, the implications for use, and the benefits and limitations. Additionally, address any concerns about the therapy as viewed from one of the religious be..
Present worth of the annual disbursement is most nearly : The maintenance cost for an investment is $2000 per year for the first 10 years and $1000 per year thereafter. The investment has infinite life. With a 10% interest rate, the present worth of the annual disbursement is most nearly

Reviews

Write a Review

Business Management Questions & Answers

  Explain corporate social responsibility efforts

Put together an action plan that will help improve its corporate social responsibility efforts and pay more attention to environmental ethics.

  Number of warehouses closer to the end customer

Consider a firm redesigning its logistics network. What are the advantages to having a small number of centrally located warehouses. What are the advantages to having a larger number of warehouses closer to the end customer?

  Semantic-lexical ambiguity

**Semantic/lexical ambiguity: The expression contains a word that has more than one meaning, and it is not clear which meaning is intended. FOR EXAMPLE: Joe went to the bank. (The financial institution or the slope bordering a river?)

  Describe the political and legal systems

Describe the political and legal systems

  Contribution of knowledge

Show the contribution of knowledge to effective operations of corporations, to gain advantage in this competitive global environment? defend your discussion with Examples?

  Explain what are the benefits of globally standardized goods

Explain What are the benefits of being able to offer a globally standardized product and What are the drawbacks

  Explain tenants in common and joint tenancy

Explain your understanding of the concepts of "tenants in common" and "joint tenancy". What is your opinion on the issue of eminent domain as it pertains to your right to protect your property

  Differentiate between value-adding service delivery

Differentiate between value-adding service delivery strategies and value-adding support strategies

  Problem regarding the self-development plan

Complete a self-development plan integrating your leadership coaching sessions, journal entries, and research on emotional intelligence. Consider some of your underlying assumptions when you began this journey compared to your current assumptions...

  The internet and modern business technology

Your company wrote its code of ethics in 1986.

  Critique the trends and issues in union membership

Critique the trends and issues in union membership that have led to the decrease of a represented workforce. Recommend the beginnings of a strategic plan that reduces the desire of workers to unionize.

  Evaluate the pros and cons of process

Describe the stage-gate process of new product development and one other new product development process. Include the following: Evaluate the pros and cons of each process.

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