We are given a set of boxes B, where each box i is represented by its...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
We are given a set of boxes B, where each box i is represented by its dimensions (ai, bi, ci), denoting its length, width, and height, respectively. Given are a set of items T, where each item j is represented by its dimensions (a,, bj, C;), denoting its length, width, and height, respectively. Note that for any two items i and j with i < j, we know a aj, bi b, and ci cj. We can put at most 1 item in a box. Item j can be put into box i if one of the following is true: aj a, and b; b, and c; ci; or aj a, and b; c and cj bij or a b, and b; a, and c; c; or a, b; and b; c and c; ai; or aj c and b; b, and c; a,; or a; c and b; a, and c; b. (a) (10 points) Please design an efficient greedy algorithm for solving this problem, briefly argue the running time and prove the correctness of the algorithm. (b) (5 points) Given the boxes and items provided below, please implement your algorithm and provide the optimal packing solution of your algorithm, e.g., put item 1 to box 1, ... 7 boxes of size {(2, 1,5), (2, 7, 5), (4, 6, 8), (5, 8, 3), (9, 6, 8), (8, 2, 5), (5,2,4)}. 7 items of size {(2, 2, 1), (2, 3, 2), (5, 3, 2), (5, 8, 4), (5, 8, 5), (5, 9, 8), (6, 9, 8)}. We are given a set of boxes B, where each box i is represented by its dimensions (ai, bi, ci), denoting its length, width, and height, respectively. Given are a set of items T, where each item j is represented by its dimensions (a,, bj, C;), denoting its length, width, and height, respectively. Note that for any two items i and j with i < j, we know a aj, bi b, and ci cj. We can put at most 1 item in a box. Item j can be put into box i if one of the following is true: aj a, and b; b, and c; ci; or aj a, and b; c and cj bij or a b, and b; a, and c; c; or a, b; and b; c and c; ai; or aj c and b; b, and c; a,; or a; c and b; a, and c; b. (a) (10 points) Please design an efficient greedy algorithm for solving this problem, briefly argue the running time and prove the correctness of the algorithm. (b) (5 points) Given the boxes and items provided below, please implement your algorithm and provide the optimal packing solution of your algorithm, e.g., put item 1 to box 1, ... 7 boxes of size {(2, 1,5), (2, 7, 5), (4, 6, 8), (5, 8, 3), (9, 6, 8), (8, 2, 5), (5,2,4)}. 7 items of size {(2, 2, 1), (2, 3, 2), (5, 3, 2), (5, 8, 4), (5, 8, 5), (5, 9, 8), (6, 9, 8)}.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
PLEASE GIVE CORRECT ANSWERS Prove that the number of comparators in any sorting network is (n log n). [4 marks] (ii) What does Part (d)(i) imply in terms of the depth of any sorting network? [1 mark]...
-
Strickland Co. currently charges manufacturing over-head costs to products using machine hours. However, company management believes that the use of ABC would provide more realistic cost estimates...
-
What competitive advantage does Pinterest (www.pinterest.com) have over other social media that might make its "Buy" button more successful? Amazon is the big gun in e-commerce that has disrupted...
-
Draw a possible transition state for the bimolecular reaction depicted here. (The blue spheres are nitrogen atoms, and the red ones are oxygen atoms.) Use dashed lines to represent the bonds that are...
-
Consider the following cash flow profile, and assume MARR is 10 percent/year. a. What does Descartes' rule of signs tell us about the IRR(s) of this project? b. What does Norstrom's criterion tell us...
-
You have just been hired by Internal Business Machines Corporation (IBM) in their capital budgeting division. Your first assignment is to determine the free cash flows and NPV of a proposed new type...
-
If f(x) = x + 3 and g(x) = x + 8x + 15. Determine an equation for y = f(x) * g(x)
-
Where, Consider the following Database schema: Company (name, city, country) Dancer (did, name, birthyear, country) Show (sid, title, choreographer, composer, year) Role (did, sid, role, company) [4...
-
You have saved $26,273.00 for a three-year vacation to Germany. You will keep your money invested in an account paying 7.08% APR with monthly compounding while you live in Munich. You will make your...
-
Turning first to our current development activity. As you can see on Slide 11, we completed $740 million in new developments for the year which meets our initial underwriting and delivers very...
-
Assume that MSQM Blockchain Incorporated provided services to customers during 2021 at a total value of $900,000, of which $130,000 was collected in cash during 2021; the balance of 770,000 will be...
-
Techie Ted operates as a consultant on technical matters to start up businesses. Ted's average gross receipts for the past three years is $3,000,000. He operates the business from a very old building...
-
Your laboratory has just been purchased by a new health care organization. You, as the manager, are asked to participate in the design of a new organizational structure which will increase the...
-
Leonard Company is preparing its third quarter production budget. Projected sales in units are 600 for July, 680 for August, and 750 for September. Leonard's policy is to have finished goods...
-
Time Solutions, Inc. is an employment services firm that places both temporary and permanent workers with a variety of clients. Temporary placements account for 70% of Time Solutions' revenue;...
-
How large an angle in radians and degrees does the diameter of the Moon subtend to a person on the Earth?
-
Why are chromatic and spherical aberrations important factors in refracting telescopes, but not in reflecting telescopes?
-
The wall of a house is composed of a solid concrete block with an outside brick veneer and is faced on the inside with fiberboard, as illustrated in Fig. 11.23. If the outside temperature on a cold...
-
Compare and contrast the terms public interest and public benefit in the context of public financial management.
-
Discuss M1, M2 and M3 monetary aggregates.
-
Compare and contrast direct and indirect taxes.
Study smarter with the SolutionInn App