|
Boost : |
From: christopher diggins (cdiggins_at_[hidden])
Date: 2005-03-31 10:24:41
I made an error before: IRV is not guaranteed to provide a winner, ties are
still possible. My apologies.
> If I made any errors in my implementation of the voting algorithm,
> please let me know. I hope someone finds this useful, but if not, at
> least it was fun to write :)
The algorithm appears to be correct and I also think somewhat clever [my
only criticism, is I could have understood and verified it quicker if you
had broken it up into functions] ;-)
Christopher Diggins
Object Oriented Template Library (OOTL)
http://www.ootl.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk