New York City, for the first time in history, is implementing ranked-choice voting for its 2021 mayoral election. As I was reading about it in the news, I thought, “How does this actually work under the hood?” So I set about writing my own ranked-choice voting algorithm to calculate the winner of such an election. I actually found that the method NYC is using is kind of unfair, and not really true to what I think of as ranked-choice voting. So, I decided to improve it.
According to nyc.gov, the way it works is this:
“You can rank up to…