Thanks to visit codestin.com
Credit goes to github.com

Skip to content

generalize somewhat and add first round of two-round election #4

@aeggers

Description

@aeggers

The outcomes are pairs of candidates. Voters vote for one candidate.

A pivot event is a tie for second determining whether the second round is i and j or i and k.

conditions for ij_k
v_i > v_j, v_k, . . .
v_j > v_k, v_l
set second condition to a tie.

P matrix: rows are pairs of candidates, columns are candidates
ij 1 1 0 1 1 . . .
ik 0 0 1 0 0 . . .
il 0 0 0 0 0 0...
etc

so I think the generalization I need is just in reshuffling the rows, and then I can do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions