govote icon indicating copy to clipboard operation
govote copied to clipboard

Schulze method seems to give erroneous results when parallelized

Open Sam-Izdat opened this issue 6 years ago • 1 comments

@WIZARDISHUNGRY - I reverted schulze.go to its previous state before your commit, because I was getting erroneous poll results. I'm afraid I don't have time to investigate at the moment. The test on the main README gave the following output when parallelized:

[Memphis] [{Memphis 3} {Nashville 2} {Chattanooga 1} {Knoxville 0}]

The expected output is :

[Nashville] [{Nashville 3} {Chattanooga 2} {Knoxville 1} {Memphis 0}]

At a cursory glance, I don't know if this is maybe a race condition or a more trivial bug. Let me know if you figure out and I'll add the feature back. Thanks.

Sam-Izdat avatar Oct 01 '19 20:10 Sam-Izdat

how embarrassing; let me think about this 😞

wizardishungry avatar Oct 01 '19 20:10 wizardishungry