subject

Bonnie and clyde have just robbed a bank. they have a bag of money and want to divide it up. for each of the following scenarios, either give a polynomial-time algorithm, or prove that the problem is np-complete. the input in each case is a list of the n items in the bag, along with the value of each.
a. the bag contains n coins, but only 2 different denominations: some coins are worth x dollars, and some are worth y dollars. bonnie and clyde wish to divide the money exactly evenly.
b. the bag contains n coins, with an arbitrary number of different denominations, but each denomination is a nonnegative integer power of 2, i. e., the possible denominations are 1 dollar, 2 dollars, 4 dollars, etc. bonnie and clyde wish to divide the money exactly evenly.
c. the bag contains n checks, which are, in an amazing coincidence, made out to "bonnie or clyde." they wish to divide the checks so that they each get the exact same amount of money.
d. the bag contains n checks as in part (c), but this time bonnie and clyde are willing to accept a split in which the difference is no larger than 100 dollars.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Your boss wants you to configure his laptop so that he can access the company network when he is on the road. you suggest a vpn connection to him. he is very concerned about security and asks you how secure vpn is. what do you tell him?
Answers: 1
question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
You know the right answer?
Bonnie and clyde have just robbed a bank. they have a bag of money and want to divide it up. for eac...
Questions
question
Mathematics, 06.10.2019 17:00
question
Social Studies, 06.10.2019 17:00
question
Mathematics, 06.10.2019 17:00
question
English, 06.10.2019 17:00
Questions on the website: 13722363