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 14:40
You are working with a professional edition organization. they wish to install the expense tracker which requires the use of 4 custom tabs, 3 custom objects, and one custom app. if the company is already using 4 applications, 36 custom objects, and 7 custom tabs, what will happen when they try to install expense tracker?
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
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