## Voting

What’s the best way to choose a classroom lunch? Or the best way to elect a leader? The answer isn’t so simple.

Imagine your class of 30 students has earned a lunch party. Your teacher says the class can choose one of the following meals: pizza, hamburgers, or sandwiches. The class votes and the final count is recorded in the chart below:

 Number of Students 1st choice 2nd choice 3rd choice 12 pizza sandwich hamburger 10 hamburger sandwich pizza 8 sandwich hamburger pizza

By examining this chart we see that pizza received twelve first place votes, while hamburger and sandwich only received ten and eight respectively. Since more people’s first choice is pizza than any of the other choices, your class gets a pizza party, right?

If it seems to you that there might be a problem with hosting a pizza party based on the votes in the example above, you are onto something. This is because although pizza has the most first place votes, 12, it also has the most last place votes, 18. To make sure we get the most overall satisfaction at the party, we wouldn’t want to serve a dish that over half of the students put in last place.

As a matter of fact, if we take what is known as a pairwise vote we get a very different result. Compare each choice with just one of the other choices. For example, if the students in this class could choose between only pizza and hamburger, we would see that 12 students would choose pizza but 18 students would choose hamburgers. How about pizza compared to sandwiches? Again, 12 people would rather have pizza and 18 would be happier with a sandwich. And if they could only choose between hamburgers and sandwiches then 20 would choose a sandwich and 10 would choose a hamburger. Even though sandwich received the fewest first choice votes, it actually beats both pizza and hamburger if we compare choices two at a time.

These are examples of two of many systems of voting. The first, in which the choice that receives the most first place votes wins, is called plurality. In the second example we did a pairwise comparison of each choice. This is known as majority rule, and the winner is sometimes referred to as the Condorcet winner, after the French philosopher and mathematician Marquis de Condorcet. Around the time Condorcet proposed his voting method, another French mathematician (and sailor) John Charles de Borda, popularized yet another system, now known as the Borda count. Using the Borda count a voter gives her/his first choice one point, second choice two points, third choice three points and so on. The winner of the election is the candidate with the lowest point count. Can you determine the Borda count winner in our vote between pizza, sandwiches, and hamburgers?

In the United States, the method of counting votes in local elections can vary city to city. Check out the voting system in the country, state, or city where you live. You might be surprised at what you find!

#### Elections and Strategic Voting – Condorcet and Borda

http://pi.math.cornell.edu/~mec/Summer2008/anema/condorcetandspv.html

#### Voting Methods

http://faculty.georgetown.edu/kingch/Electoral_Systems.htm

#### Electoral Systems

http://www.chickennation.com/2013/08/18/you-cant-waste-your-vote/

## Author

• Jennifer is a math teacher by training, with an interest in computer science. While working on a computational thinking project at Google, she dived a bit deeper into CS education. Jennifer now teaches computer science to both high school and elementary school students, in addition to mathematics.

### Also In The April 2019 Issue

Use SketchUp to create this fascinating mathematical pattern that appears everywhere in nature.

Learn about the STEAM star’s amazing journey onto Mythbusters Junior and beyond.

What activities are best for teaching STEM to young kids?

What’s the best way to choose a classroom lunch? Or the best way to elect a leader? The answer isn’t so simple.

How a teapot became the most important object in computer graphics.

Bring your coding skills and your desserts to new levels in this simple Python coding activity.

Bakuro puzzles are a fun way to learn about binary numbers and how to calculate their values.

Learn about the shiny new technology that allows us to be connected like never before.

Squares, checkerboards, and hollow boxes… what pattens can you imagine in Python?

A fun, DIY electronics project that’ll keep you from bumping around in the dark!

It’s time for a throw back to old school programming. Dive into the nuts and bolts of coding instructions!

Use your favourite block language to animate this fascinatingly odd game.

Can we make a computer using only three simple rules?

How science and tech led to an exciting discovery in one of the most dangerous areas of space.

How did video games become popular before the internet? It’s all about shareware, floppy disks, and human cleverness!

Links from the bottom of all the April 2019 articles, collected in one place for you to print, share, or bookmark.

Interesting stories about science and technology for April 2019.

Interested but not ready to subscribe? Sign-up for our free monthly email newsletter with curated site content and a new issue email announcement that we send every two months.

No, thanks!