
31 Mar
2005
31 Mar
'05
3:24 p.m.
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