Question: Exercise 5 : Block Voting Systems Part 2 - The Deciding Vote ( 5 points ) More important than determining how and when ties can
Exercise : Block Voting Systems Part The Deciding Vote points
More important than determining how and when ties can occur in a block voting system, we can also determine how many situations arise in which a given block can cast the deciding vote.
Eg given voting blocks to determine the number of times the last block casts the deciding vote, we observe that:
there are a total of eight ways in which blocks and can vote:
for vsagainstfor vsagainstfor vsagainstfor vsagainstfor vsagainstfor vsagainstfor vsagainstfor vsagainst
in cases the last voter with a block of votes can cause the result to swing one way or the other or end in a tie; we therefore say that the last block has the deciding vote in cases
If you repeat the analysis for blocks and you'll find that they are the deciding voters in and cases, respectively meaning that the blocks with and votes are equally important!
Complete the function decidingvotesperblock, which will take a list of voting blocks and return a list of times that each block is the deciding vote. You may wish to define a separate helper function that computes the number of deciding votes for a given block.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
