COMP 3200 - Intro to Artificial Intelligence - Lecture 11 - Voting Algorithms
Overview
Dave Churchill frames voting as preference aggregation, a problem that applies both to elections and to AI systems where agents or algorithms must select a shared outcome. He compares first-past-the-post, runoff and instant-runoff voting, Borda scoring, Condorcet, approval voting, and single transferable vote, showing how each trades simplicity and expressiveness against problems such as spoiler effects, strategic voting, and gerrymandering. Arrow's impossibility theorem explains why ranked-choice systems cannot satisfy all five of the discussed fairness criteria at once.
Key takeaways
- FPTP records only a voter's top choice, so adding a similar candidate can split support and let a candidate opposed by most voters win.
- IRV uses ranked ballots to simulate successive runoffs, but it can be non-monotonic: a change in first-round support can change the elimination order and the eventual winner.
- A Condorcet winner must defeat every opponent head-to-head, but majority preferences can cycle, as in burgers beating pizza, pizza beating sushi, and sushi beating burgers.
- Arrow's impossibility theorem says no ranked-choice method can simultaneously meet unanimity, independence from irrelevant alternatives, individual sovereignty, consistent group ranking, and non-dictatorship.
- District boundaries can change seat outcomes even when voter locations and preferences stay fixed, making plurality-based district elections vulnerable to gerrymandering.
- Preference aggregation is relevant beyond politics: distributed agents, recommender systems, search rankings, and AI systems also combine competing inputs into shared or ordered outcomes.
Chapters
- Dave Churchill defines voting as combining individual preferences over shared options into one collective decision.
- Examples include choosing political representatives, party food, employees, grant recipients, committees, or an algorithm.
- In computer science, voting can coordinate agents, processes, and users in distributed systems, multi-agent environments, and recommender systems.
- A voting function takes a set of candidates and voter preferences, then returns an output suited to the decision.
- Possible outputs include one winner, multiple winners, or a ranked list, such as a hiring committee's ordered list of professor candidates.
- Ballots can request a single mark, approval of several candidates, a ranking, or numerical scores, and the chosen input format constrains the algorithm.
- Churchill identifies fairness, simplicity, expressive power, resistance to manipulation, and practical computability as key design considerations.
- He proposes maximizing the sum of voters' utility for the outcome, rather than allowing a result that leaves nearly all voters dissatisfied.
- Systems differ both in what voters report and how those reports are aggregated: categories include plurality, ranked, approval, score-based, positional, Condorcet, and proportional methods.
- First-past-the-post (FPTP) asks each voter to choose one candidate, then elects the candidate with the most votes, even without a majority.
- Counting is linear in the number of ballots, and the single-choice format is easy to understand and tabulate.
- FPTP discards every preference except the voter's top choice, so voters with very different opinions can submit identical ballots.
- In Churchill's food example, pepperoni pizza initially beats hamburgers by 60% to 40%; adding Hawaiian pizza splits the pizza vote and lets hamburgers win.
- The spoiler effect occurs when a similar new candidate divides support for an existing candidate, allowing a less-preferred option to win.
- Churchill discusses the 2000 Florida contest involving George W. Bush, Al Gore, and Ralph Nader as a frequently cited example, while noting the claim that Nader drew votes that might otherwise have gone to Gore.
- Churchill links FPTP's spoiler risk to Duverger's Law: voters may avoid minor parties, helping first-past-the-post systems converge toward two dominant parties.
- Strategic voting means choosing a viable candidate over one's genuine favorite; Churchill gives Canada's "Anything but Conservative" movement as an example.
- A runoff requires a majority; if no candidate exceeds 50%, the lowest-ranked candidate is removed and another election is held.
- Runoffs can reduce the spoiler effect by letting voters reconsider eliminated candidates, but repeated elections add logistical burden and can raise counting time to quadratic in the number of voters.
- Instant-runoff voting (IRV) collects ranked ballots, counts first preferences, eliminates the candidate with the fewest, and transfers those ballots to the next remaining preference.
- A single ranked ballot can simulate successive runoff elections without requiring voters to return for another vote; Churchill distinguishes IRV's counting rule from ranked-choice voting as a broader ballot category.
- IRV can exhibit a non-monotonic outcome: changing first-round support can alter which candidate is eliminated and cause a candidate with fewer initial votes to win.
- Positional voting converts rankings into points and elects the candidate with the largest total.
- Under the Borda method, with four candidates, first place earns 3 points, second 2, third 1, and fourth 0.
- Churchill connects positional scoring to Mario Kart 64, where race placements earn different point totals, and to the Eurovision Song Contest.
- Arbitrary numerical ratings allow more expressive ballots but can be manipulated; Amazon or Uber reviews often cluster at one or five stars instead of using intermediate scores.
- A Condorcet winner beats every other candidate in separate head-to-head comparisons; ranked ballots can supply each voter's preference in every pair.
- Pairwise comparisons can form a cycle rather than produce a winner, as in rock-paper-scissors.
- Churchill demonstrates a food cycle where burgers beat pizza, pizza beats sushi, and sushi beats burgers, leaving no candidate that defeats all others.
- He also describes a StarCraft AI tournament in which the top three agents' head-to-head results formed a cycle despite their overall win-rate ranking.
- Kenneth Arrow's five criteria include unanimity, freedom from irrelevant alternatives, individual sovereignty, a consistent group ranking, and non-dictatorship.
- Freedom from irrelevant alternatives means removing one candidate should not change the relative ranking of the remaining candidates.
- Arrow's impossibility theorem shows that no ranked-choice voting system can satisfy all five criteria simultaneously, so every such system must give up at least one.
- Approval voting lets each voter mark every candidate they would accept; the candidate with the most approvals wins.
- For a six-seat town council election with 19 candidates, voters can approve up to six, and the six most-approved candidates win.
- Approval voting omits preference order, but Churchill presents it and ranked-choice methods as alternatives that can avoid some FPTP pitfalls.
- There is no single provably best system; the lecture contrasts simplicity and familiarity with methods intended to better reflect voter preferences.
- Gerrymandering manipulates electoral boundaries to advantage a group by changing how voters are divided among districts.
- In a 10-house example with four owl voters, three cheetah voters, and three gorilla voters, the owls win one district under FPTP but lose both after the boundaries are redrawn.
- Keeping voters in the same locations while changing district shapes can change which party wins the most seats.
- Churchill notes that district manipulation can split a geographically concentrated community across districts, weakening its ability to elect a preferred representative.
- Single transferable vote (STV) uses ranked ballots to elect multiple winners and can improve representation while reducing gerrymandering's effects.
- Churchill recommends CGP Grey's illustrated explanation for the mechanics of STV and says exam questions may compare outcomes across voting rules.
- Voting-system tradeoffs also apply to AI and computing, including distributed decision-making, online voting, recommender systems, search rankings, and attempts to influence AI-generated results.
Transcript excerpt
0:01 So, lecture number 11 is on the topic of voting algorithms. And you look at the term voting algorithm, you may think this is some it's only political. It's not. There's lots of places in life where we vote on things, and I'll have some examples of that. But this lecture has traditionally it's this particular lecture slot in this course has evolved over the years. One year it was about one thing, another year was about another thing. I couldn't find anything that really fit. I think last year it was a snow day, so I just left it there. I can't remember exactly what happened. But I thought that, you know, why not give you um some information on decision-making. And one of the ways that we collectively make decisions as a society and as groups is by voting on things. Um and it may not be as trivial as you think, and
0:48 you may actually be quite surprised by how terrible some of the algorithms that we implement in the real world are in comparison to other algorithms that exist that we should probably implement. Uh just before we get started, there's a lot of great uh resources. Of course, there's papers and academic things, but there are lots of great YouTube videos, which is how I like to learn. I I like to watch videos as well. So, these are um very, very great videos and also served as the inspiration for this video. But something I will mention at some point in the lecture, I'm going to be talking about uh choosing food that we have at a party or whatever as one of the examples. I um before I watched this Art of the Problem video, I chose uh burgers, pizza, and sushi. And then I
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Dave Churchill.