mirror of
https://github.com/tgorordo/smithy.git
synced 2026-06-05 16:22:15 -07:00
update README
This commit is contained in:
parent
22765fe052
commit
2f07283f26
1 changed files with 7 additions and 4 deletions
11
README.md
11
README.md
|
|
@ -5,10 +5,13 @@ The Smith set is the minimal set of election candidates which can beat all other
|
||||||
(by simple majority ranking preference) - if there is a single winner in the set they are
|
(by simple majority ranking preference) - if there is a single winner in the set they are
|
||||||
guaranteed the standard Condorcet i.e. Majority winner (they beat all others pairwise).
|
guaranteed the standard Condorcet i.e. Majority winner (they beat all others pairwise).
|
||||||
|
|
||||||
`smithy` currently identifies the set by brute-force search which is combinatoric complexity
|
`smithy` identifies the Smith set via graph Strongly Connected Component (SCC) analysis of
|
||||||
in the worst case (TODO: better [algorithm](https://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm))
|
the pairwise majority graph using [`rustworkx`](https://www.rustworkx.org/).
|
||||||
but appears approximately O(n^2) on-average in the number of candidates for typical/random ballots,
|
Pairwise majority comparisons scale quadratically in the number of candidates and linearly
|
||||||
and linear in the number of ballots.
|
in the number of ballots, while while the SCC and condensation graph analysis is
|
||||||
|
approximately quadratic in the number of candidates for the dense tournament graphs typical
|
||||||
|
of Condorcet elections. Internally, repeated ballots are compressed/cache-counted before
|
||||||
|
pairwise evaluation to improve performance over duplicate rankings.
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue