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, 21.06.2019 22:40
State the parts of a variable declaration?
Answers: 2
question
Computers and Technology, 22.06.2019 20:10
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
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
Social Studies, 23.06.2019 08:30
question
Mathematics, 23.06.2019 08:30
question
English, 23.06.2019 08:30
Questions on the website: 13722360