项目作者: jicksta

项目描述 :
Working implementation of the Tideman Ranked Pairs (TRP) Condorcet voting method
高级语言: Go
项目地址: git://github.com/jicksta/ranked-pairs-voting.git
创建时间: 2018-04-11T00:47:47Z
项目社区:https://github.com/jicksta/ranked-pairs-voting

开源协议:GNU General Public License v3.0

下载


Tideman Ranked Pairs Election Algorithm

GoDoc

See this Wikipedia page for a full description of TRP.

This implementation is tested with Ginkgo/Gomega and uses the “workbench” samples from condorcet.ca to assert this project’s results are identical to what that reference implementation generates (thereby also proving their reference implementation is at least as correct as this one).

This implementation was not based on any other code reference: just the Wikipedia article and the outputs from condorcet.ca’s Java Swing-based vote counter desktop app (no code was found for it).