You are here:

Advanced Math/Algorithm to Divide up a Pie

Advertisement


Question
QUESTION: Hi Scott,

Could you tell me what is the algorithm to divide up a pie between 2, 3, 4, ... N number of people so that all are satisfied?  

I read about this a long time ago and I hope it can help me and my 3 roommates divide up the rent on our new apartment.  However, the details escape me.  It goes something like this:

2 People - One person divides the pie into two halves which he believes are even.  The other person chooses between the two halves.  Satisfaction is guaranteed to be >=100%.  The first person thinks he/she got an even deal and the second believes he/she got an even deal or better.  

3+ People - This is more complicated.  Person #1 divides the pie into 3 equal slices.  Person #2 judges the slices and shaves a portion off the largest one to make it even with the second largest. Person #3 chooses? ... The process goes on but this is where my memory escapes me.  

Thanks You!

ANSWER: n people: Let the 1st person cut out an nth of the pie.
Let each next person cut out another nth of the pie.

Note that the slices have all been made when it gets down to the last person,
so let the last person decide which piece he gets.

Starting with the 1st person, let them all choose which piece of pie they want.

If anyone tries to make a piece bigger than the rest,
he'll be the last one to decide on getting that piece.


---------- FOLLOW-UP ----------

QUESTION: Thanks very much for the answer.  After thinking about this for a while, I think there is also a more complex, though perhaps less known, algorithm.  Or perhaps I'm misunderstanding the one you posted.  The one you posted ensures that no one gets what they think is the smallest piece, but the algorithm I'm thinking of ensures that everyone gets what they think is the largest piece.  

Let me illustrate my issue with the above algorithm with a 3 person scenario:
1) Person 1 is blind and instead of cutting a 1/3 slice of the pie, he cuts a large 4/9 slice.  
2) Person 2 decides to cut the remainder into two equal 5/18 slices. He could cut it differently, but no matter how he divides up the remainder, he is not going to get the largest slice in the end.   
3) Per the above algorithm, person 3 now gets to choose a slice, and he of course picks the 4/9 slice.  
4) Person 1 is next and chooses one of the two 5/18 slices.  That's OK with him because he's blind and thinks he cut the original slice fairly, so from his view he is still getting an even deal.  
5) Person 2 is last and is stuck with a 5/18 slice.  He's not happy because it's clear to him that person 1 got the better end of the deal.  Had he decided not to cut the remainder evenly at Step #2, he would still be stuck with a 2nd largest slice, at best.  

Again, the algorithm I'm thinking of gets exponentially more complicated as you add more people / slices, but it ensures a fair outcome.  Thanks!  

Answer
I'm not sure if this was suppose to be answered, but I've got to answer everything I get.
Now I could have just sent a, "You're Welcome," but I think this needs a little more.

Yes, the first few people could make a biased choice, but if you're the first one to choose,
you're the last one to decided.  It might not be fair, but if a bad choice is made,
there are other people who get to decide which one they get.

In other words, if a bad choice is made by someone, they surely won't get it.
As far as the blind person, don't tell him about it.

That last was just a thought to make you smile....

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott A Wilson

Expertise

I can answer any question in general math, arithetic, discret math, algebra, box problems, geometry, filling a tank with water, trigonometry, pre-calculus, linear algebra, complex mathematics, probability, statistics, and most of anything else that relates to math. I can even tell you it takes me over 2,000 steps to go a mile, but is that relevant?

Experience

Experience in the area; I have tutored people in the above areas of mathematics for almost two years in AllExperts.com. I have tutored people here and there in mathematics since before I received a BS degree almost 25 years ago. In just two more years, I received an MS degree as well, but more on that later. I tutored at OSU in the math center for all six years I was there. Most students offering assistance were juniors, seniors, or graduate students. I was allowed to tutor as a freshman. I tutored at Mathnasium for well over a year. I worked at The Boeing Company for over 5 years. I received an MS degreee in Mathematics from Oregon State Univeristy. The classes I took were over 100 hours of upper division credits in mathematical courses such as calculus, statistics, probabilty, linear algrebra, powers, linear regression, matrices, and more. I graduated with honors in both my BS and MS degrees. Past/Present Clients: College Students at Oregon State University, various math people since college, over 7,500 people on the PC from the US and rest the world.

Publications
My master's paper was published in the OSU journal. The subject of it was Numerical Analysis used in shock waves and rarefaction fans. It dealt with discontinuities that arose over time. They were solved using the Leap Frog method. That method was used and improvements of it were shown. The improvements were by Enquist-Osher, Godunov, and Lax-Wendroff.

Education/Credentials
Master of Science at OSU with high honors in mathematics. Bachelor of Science at OSU with high honors in mathematical sciences. This degree involved mathematics, statistics, and computer science. I also took sophmore level physics and chemistry while I was attending college. On the side I took raquetball, but that's still not relevant.

Awards and Honors
I earned high honors in both my BS degree and MS degree from Oregon State. I was in near the top in most of my classes. In several classes in mathematics, I was first. In a class of over 100 students, I was always one of the first ones to complete the test. I graduated with well over 50 credits in upper division mathematics.

Past/Present Clients
My clients have been students at OSU, people nearby, friends with math questions, and several people every day on the PC, and you're probably make one more.

©2012 About.com, a part of The New York Times Company. All rights reserved.