Subversion Repositories Remote Hare Voting

Rev

Rev 45 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

SUMMARY AFTER 10 TIMES
  5 ['A', 'C']
  5 ['A', 'B']

INPUT SUMMARY AND SINGLE RUN TRACE
        6 ballots
        Choosing 2 winners
        Need ceil((6 + 1)/(2 + 1)) = 3 ballots to win

        BALLOT MARKS    1ST     2ND     NONE
        A                 6       0        0
        B                 0       3        0
        C                 0       3        0

CURRENT ASSIGNMENT OF BALLOTS (3 needed to win)
        A:
                ['A', 'B', 'C']
                ['A', 'B', 'C']
                ['A', 'B', 'C']
                ['A', 'C', 'B']
                ['A', 'C', 'B']
                ['A', 'C', 'B']

SELECTION #1: A
        redistributing 3 effective of 3 excess ballot(s) at random from A
        random choice = ['A', 'B', 'C']
        to B: ['A', 'B', 'C']
        random choice = ['A', 'C', 'B']
        to C: ['A', 'C', 'B']
        random choice = ['A', 'B', 'C']
        to B: ['A', 'B', 'C']

CURRENT ASSIGNMENT OF BALLOTS (3 needed to win)
        A:
                ['A', 'B', 'C']
                ['A', 'C', 'B']
                ['A', 'C', 'B']
        C:
                ['A', 'C', 'B']
        B:
                ['A', 'B', 'C']
                ['A', 'B', 'C']

ELIMINATED: C
        redistributing 1 ballot(s) from C
        to B: ['A', 'C', 'B']

CURRENT ASSIGNMENT OF BALLOTS (3 needed to win)
        A:
                ['A', 'B', 'C']
                ['A', 'C', 'B']
                ['A', 'C', 'B']
        C:
        B:
                ['A', 'B', 'C']
                ['A', 'B', 'C']
                ['A', 'C', 'B']

SELECTION #2: B
        no excess ballots to redistribute

CURRENT ASSIGNMENT OF BALLOTS (3 needed to win)
        A:
                ['A', 'B', 'C']
                ['A', 'C', 'B']
                ['A', 'C', 'B']
        C:
        B:
                ['A', 'B', 'C']
                ['A', 'B', 'C']
                ['A', 'C', 'B']

Number of random choices made: 3

FINAL RESULTS
        A
        B