Creating random ballots
-
Please comment, review and update: create Random Ballots for STAR Voting: https://docs.google.com/document/d/1crQ6PPD-v3_GwsV4kvdNn1liD0Ln5M3Q9tC475w8cYs/edit#
-
Regarding the ballot format, you could try to follow the format prescribed by https://www.preflib.org/format (so an academic website collecting elections). I think too many formats flying around is quite bad.
Regarding the preferences generation I am not too sure. I think that it is quite hard in general go generate meaningful preferences. At least for uniform random though, I would say that it probably is not very meaningful.
-
@spelunker The primary ballot format @masiarek uses is the one I have recommended. It is commonly used within forums, and is easy to parse. Even easier to parse if you just drop in the code I wrote for it... (although it's js code not python)
See: https://codepen.io/karmatics/pen/poLPpzW
For example:
134: a[5] b[4] c[2] d[1] e[0] f[0]
64: a[5] b[4] c[3] d[1] e[0] f[0]
94: a[3] b[5] c[4] d[1] e[0] f[0]
70: a[2] b[2] c[5] d[2] e[0] f[0]
63: a[0] b[0] c[0] d[3] e[4] f[5]It's also the format I recommended people use for signatures.
-
This post is deleted!