Mike was doing just fine traveling around Europe until he discovered a Bäckerei with dozens of delicious-looking pastries and breads. He needs to fill a small bag with edibles for a train ride he is...


Mike was doing just fine traveling around Europe until he discovered a Bäckerei with dozens of delicious-looking pastries and breads. He needs to fill a small bag with edibles for a train ride he is about to take, but he has several constraints: 1. He wants variety; no more than two of any item, 2. He wants the maximum number of calories, which is not necessarily related to the item volume, and 3. He cannot exceed the volume limit of the bag. Develop a parallel program to select quickly the items for his trip from the set of 5-tuples describing the Bäckerei items for sale (length, width, thickness, item type, calorie value). In addition to the program, develop a set of 20 test-data items and use them to check your program.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here