subject

You and your friends are driving to Tijuana for spring break. You discover that you are bringing a lot of gear, luggage, and people and may have to take multiple cars. You have n items you want to bring. Each item weighs between 1 pound and 1000 pounds. Each car can hold at most 1000 pounds. You want to determine how to assign items to cars so that you use the minimum number of cars.1. State the input and output conditions for this problem as precisely as possible.2. If you have n items what is the maximum number of cars you will need? If you haven items what is a lower bound on the minimum number of cars you will need?3. Your friend Alice has a plan to pack the cars. She suggests placing each item in the first car that it will fit in. She calls this the first-fit algorithm. Come up with a counter example to show this algorithm will not produce the least number of cars.4. Your friend Bob has a plan to pack the cars. He suggests placing each item in the car it fits best in. He thinks an item fits best in a car if it leaves the car with the least amount of free space. He calls this the best-fit algorithm. Come up with a counter example to show this algorithm will not produce the least number of cars.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 22.06.2019 20:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Text or graphics that print at the bottom of every page are called footings footers headers headings
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
You know the right answer?
You and your friends are driving to Tijuana for spring break. You discover that you are bringing a l...
Questions
question
Mathematics, 18.02.2020 06:57
question
Mathematics, 18.02.2020 07:01
Questions on the website: 13722359