- 1

Hungry wolves and fishing.

50 hungry wolves went fishing and caught 50 fish. Now they need to allocate these 50 identical fish among them. Their democratic system works as follows: All wolves are ranked by their seniority. First, the most senior wolf (called "pack leader") proposes an allocation plan that states exactly how many fish each wolf would get. The 50 wolves would vote on the plan (no filibuster) and it would pass if more than or equal to half wolves voted for it. If it passes, wolves take their fish and eat it. If it fails, the one who proposed the plan (the pack leader in this case) would be killed, and then the second most senior wolf would take the place of "pack leader" and propose his plan. We repeat the same process above in the order of seniority until someone's plan is passed. Assume every wolf makes his decision based on the following priorities:  1. He doesn't want to die.  2. Given he's not going to die, he would prefer to get as many fish as possible.  3. Given he's going to get the same number of fish, he would

28th Sep 2018, 5:09 PM
manish lamba
manish lamba - avatar
1 Respuesta
0
Since there's no code being supplied to troubleshoot, this seems off-topic and better suited for your personal feed.
28th Sep 2018, 10:56 PM
Janning⭐
Janning⭐ - avatar