Design and analysis of algorithms

Assignment Help Basic Computer Science
Reference no: EM131416462

Design and Analysis of Algorithms

You are given a series of boxes. Each box i has a rectangular base with width Wi and length Li, as well as a height Hi. You are stacking the boxes, subject to the following: In order to stack a box i on top of a second box j, the width of box i must be strictly less than the width of box j and the length of box i must be strictly less than the length of box j (assume that you cannot rotate the boxes to turn the width into the length). Your job is to make a stack of boxes with total height as large as possible. You can only use one copy of each box. Design a dynamic programming algorithm to solve this problem.

Part a: Draw and explain the DAG corresponding to this problem. Hint: What is a reasonable way to sort the boxes so that all edges go from earlier nodes to later nodes?

Part b: Describe an efficient algorithm to determine the height of the tallest possible stack. You do not need to write pseudocode (though you can if you want to), but in order to get full credit, you must include all the details that someone would need to implement the algorithm. Hint: think about what the subproblems should be.

Reference no: EM131416462

Questions Cloud

What is the receivables turnover : ACP and Receivables Turnover Music City, Inc., has an average collection period of 39 days. Its average daily investment in receivables is $73,000. What are annual credit sales? What is the receivables turnover?
Who is responsible for preparing the budget document : Describe the two budgets and Describe the main focuses/purposes of the budgets -Explain who is responsible for preparing the budget document
Discuss about the adult learning theory : This week we read chapter 8 and 9 of the Smith text. Over the past three weeks, we learned about adult learning theory and the relationship it has to the workplace. For this learning activity, think of your dream job. It is likely that you are tak..
Whether given would be likely if you were to take a sample : Explain whether each of the following would be likely if you were to take a sample of 190 students from the original population.- The mean hours of sleep for the 190 students would be between 8 and 9 hours.
Design and analysis of algorithms : You are given a series of boxes. Each box i has a rectangular base with width Wi and length Li, as well as a height Hi. You are stacking the boxes, subject to the following: In order to stack a box i on top of a second box j, the width of box i mu..
What is your effective annual interest rate : What is your effective annual interest rate (an opportunity cost) on the revolving credit a rrangement if your firm does not use it during the year?
Present the strongest arguments against your claim : Your word choice and language level show that you have a college-level audience in mind and You present the strongest arguments against your claim.
Find the contribution margin per haircut : Find the contribution margin per haircut. Assume that the barbers' compensation is a fixed cost. Show calculations to support your answer. Determine the annual break-even point, in number of haircuts.
Calculate the cash cycle for each company : Calculate the cash cycle for each company and comment on any similarities or differences.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Structured query language

Create the tables and relationships from the database design

  How reseeding occurs and how the prnc handles reboots

Consider issues including but not limited to the following: how the entropy is collected, how reseeding occurs, and how the PRNC handles reboots.

  Identify the java-based technologies utilized

1. Identify the Java-based technologies utilized in this project and analyze each of them. Then, provide discussion on the purpose of each of the Java-based technologies utilized. 2. Explain why you believe project managers selected these Java-ba..

  Basis of physical and chemical structure

Discuss classification of insulating materials on the basis of physical and chemical structure.

  Discuss what the groups involved hoped to achieve

Your document should have 750-1,000 words (not including the list of works cited), but it is the quality of the answer that matters, not the number of words. Cite and reference all sources use the Harvard Liverpool Referencing System.

  Compose a program that prints a well-formatted

Compose a program that prints a well-formatted calendar for a specified month

  What is the average disk transfer rate

Explain your results from your system evaluation. Considering what type of technology user you are, does your computer meet your needs or should you upgrade in the near future? What features will you include when considering purchasing a new compu..

  Network devices a side from hubs

What other network devices a side from hubs have "bitten the dust" in the recent past?

  What is the order p of a b+-tree

What is the order p of a B+-tree?

  Mariko current dietary pattern

Mariko, age 2, prefers a daily diet of rice or noodles that have been drenched in soy sauce. She will take a few bites of tofu when her mother insists, but refuses meats, fish, and most vegetable. What nutrients is she missing? What health concern..

  Advantages and disadvantages of software suites

List out the virtual company strategies.What are the differences between direct and sequential access in storage divices? Software Suites bundle together a variety of general-purpose software applications. Using your words, explain the advantages ..

  Design a program that generates the sum of numbers

Design a program that generates the sum of numbers.

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