Docsity

Assignment 2 Problems - Computer Science II | CSCE 1040, Assignments of Computer Science

Toggle sidebar
bg1
CSCE 1040 Homework 2 Due: on / before Thurs, Feb. 12 in class
Late Assignments Shredded and Eaten
Five robbers have stolen 100 bearer bond certificates and they have to divide the
certificates between themselves. The most senior robber proposes a distribution of the
certificates. (Robber 5 is most senior, Robber 1 is least senior) The robbers all vote and if
at least fifty percent accept the proposal, the certificates are divided as proposed.
Otherwise, the most senior robber will be executed, and the remaining robbers will start
over again with the next senior robber. What solution does the most senior robber
propose?
Your solution must adhere to the following constraints:
Every robber is intelligent. This means they will analyze the situation thoroughly,
consider all alternatives, and act in their best interest.
Every robber is as greedy as possible. They will not accept 20 certificates when they
could get 25.
No robber is suicidal.
"At least fifty percent" means that three robbers must vote for the proposal when there
are five for the proposal to pass; two must vote for the proposal if there are four
robbers, etc. You can and will vote for your own proposal.
Turn in a written proposal by Robber 5 similar to this:
Robber 5 gets ____ certificates.
Robber 4 gets ____ certificates
…
and an explanation of how you arrived at your solution. There is a single best answer,
and it should adhere to the 3 constraints above. The robbers do not split the bonds
evenly.
You must turn in a sheet of paper with your solution. E-mail submissions will not be
accepted.

Partial preview of the text

Download Assignment 2 Problems - Computer Science II | CSCE 1040 and more Assignments Computer Science in PDF only on Docsity!

CSCE 1040 Homework 2 Due: on / before Thurs, Feb. 12 in class Late Assignments Shredded and Eaten Five robbers have stolen 100 bearer bond certificates and they have to divide the certificates between themselves. The most senior robber proposes a distribution of the certificates. (Robber 5 is most senior, Robber 1 is least senior) The robbers all vote and if at least fifty percent accept the proposal, the certificates are divided as proposed. Otherwise, the most senior robber will be executed, and the remaining robbers will start over again with the next senior robber. What solution does the most senior robber propose? Your solution must adhere to the following constraints:  Every robber is intelligent. This means they will analyze the situation thoroughly, consider all alternatives, and act in their best interest.  Every robber is as greedy as possible. They will not accept 20 certificates when they could get 25.  No robber is suicidal. "At least fifty percent" means that three robbers must vote for the proposal when there are five for the proposal to pass; two must vote for the proposal if there are four robbers, etc. You can and will vote for your own proposal. Turn in a written proposal by Robber 5 similar to this: Robber 5 gets ____ certificates. Robber 4 gets ____ certificates … and an explanation of how you arrived at your solution. There is a single best answer, and it should adhere to the 3 constraints above. The robbers do not split the bonds evenly. You must turn in a sheet of paper with your solution. E-mail submissions will not be accepted.