trie_rcv
Ranked Choice Voting (RCV) implementation using Tries in Rust
RCV differs from normal first past the post voting in that voters are allowed
to rank candidates from most to least preferable. To determine the winner of an RCV election, the
least votes for the least popular candidate(s) are transferred to their next choice until
some candidate reaches a majority.
Example usage:
use trie_rcv;
use RankedChoiceVoteTrie;
use VoteStruct;
This implementation also supports votes containing withhold and abstain votes,
where the withhold vote allows the voter to declare for none of the candidates, and
the abstain vote allows the voter to voluntarily remove himself from the poll
(this is useful for improving the chances that the rest of the votes are able
to conclude with a winning candidate)
use trie_rcv;
use RankedChoiceVoteTrie;
use ;
Build instructions
Build crate using cargo build, run integration tests with cargo test