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...
-
Many marketers are still learning how to use social media platforms effectively to engage customers in meaningful relationships. Locate three social media platforms used by the Kenneth Cole brand to...
-
The per-store daily customer count (i.e., the mean number of customers in a store in one day) for a nationwide convenience store chain that operates nearly 10,000 stores has been steady, at 900, for...
-
Is overpopulation a critical problem?
-
Casey Hartwig, CPA, was retained by Global Cable to prepare financial statements for April 2017. Hartwig accumulated all the ledger balances per Globals records and found the following. Casey Hartwig...
-
If WHO, the World Health Organization,defines health as a state of completephysical, mental and social well-being and not merely the absenceof disease and infirmity (WHO, 2011)and wellness is...
-
On January 2, 2021, Athol Company bought a machine for use in operations. The machine has an estimated useful life of eight years and an estimated residual value of $2,600. The company provided the...
-
Using \(g\) for the acceleration due to gravity is valid as long as the height \(b\) above Earth's surface is small. Derive an expression for a more accurate value of the acceleration due to gravity...
-
Is approximating the gravitational potential energy near the surface of the Sun as \(m g_{s} \Delta x\) accurate over a smaller or larger range of values than approximating the gravitational...
-
In 1865, Jules Verne wrote a story in which three men went to the Moon by means of a shell shot from a large cannon sunk in the ground. (a) What muzzle speed must the cannon have in order for the...
-
What is the magnitude of the gravitational force exerted (a) by the Sun on Mars and (b) by Mars on the Sun? Approximate Mars's orbit as circular.
-
Becky Sherrick Company has total proceeds from sales of $4,515. If the proceeds include sales taxes of 5%, the amount to be credited to Sales Revenue is: a. $4,000. b. $4,300. c. $4,289.25. d. None...
-
Consider a property investment that you finance with 20% down payment. For the remaining, you borrow 2'300'000 at a 6% rate monthly amortized loan for 25 years. This property, with 2% of EBITDA as...
-
Suppose the spot and six-month forward rates on the Norwegian krone are Kr 5.78 and Kr 5.86, respectively. The annual risk-free rate in the United States is 3.8 percent, and the annual risk-free rate...
-
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...
-
The beam has a constant \(E_{1} I_{1}\) and is supported by the fixed wall at \(B\) and the \(\operatorname{rod} A C\). If the rod has a cross-sectional area \(A_{2}\) and the material has a modulus...
-
The rim on the flywheel has a thickness \(t\), width \(b\), and specific weight \(\gamma\). If the flywheel is rotating at a constant rate of \(\omega\), determine the maximum moment developed in the...
-
The box frame is subjected to a uniform distributed loading \(w\) along each of its sides. Determine the moment developed in each corner. Neglect the deflection due to axial load. EI is constant. E A...
Study smarter with the SolutionInn App