Skip to main content

Algorithm solves cake-cutting problem that has haunted mathematicians

cake cutting algorithm fruitcake
Image used with permission by copyright holder
We’ve all been there before: moving into a new apartment with housemates and trying to figure out who owes what each month. It’s easy enough if everyone gets the same identical room, but inevitably there is one person who gets the slightly larger bed, or the nice view with no road noise, or the ceiling that doesn’t leak, or the en-suite bathroom.

The same is true of a variety of other division tasks: from dividing up leftover pizza — does one slice of meat feast equal two slices of cheese? — to more serious examples like divorce settlements.

Recommended Videos

It is this type of problem that mathematicians have long investigated with the so-called ‘cake-cutting problem.’ Cake cutting is based around a scenario in which a varying amount of siblings or friends divide up a cake with multiple toppings, where everyone wants to be treated equally, but has different requirements and preferences.

“Fair division is something a lot of real world problems rely on,” Simon Mackenzie, a postdoctoral researcher at Carnegie Mellon University, told Digital Trends. “Cake cutting is a good metaphor to think about these fairness problems. It’s also an incredibly elegant problem from a mathematical perspective.”

As Quanta Magazine notes, in the 1960s an algorithm was created that could divide up a cake between three players, without sparking any envy. But for more than three players, people have been relying on a 1995 algorithm which could conceivably run for a virtually unlimited number of steps to come up with an answer.

In a new paper, due to be shown off at next week’s 57th annual IEEE Symposium on Foundations of Computer Science, Mackenzie and colleague Haris Aziz describe a more efficient, envy-free cake cutting algorithm, capable of solving the problem in a finite number of steps. This can be anywhere between three and 203 cuts of the cake. They have previously come up with solutions to both the tree and four-person variants of the puzzle.

“Even before I started my Ph.D. and got interested in fair division, this is a problem I’d been interested in out of pure curiosity,” Mackenzie said. “What got me working on it seriously was my co-author on the paper coming to me and saying we should collaborate. He thought there were some interesting communication complexity problems in cake cutting that we could look at. That’s what got us started.”

The algorithm the pair have come up with shows a drastically reduced running time is possible — and they have plans to make it even simpler and faster. It is already being hailed by computer scientists as an impressive breakthrough, partially on the complexity of the solution alone.

“This is a problem a lot of people are surprised is doable,” Mackenzie noted. “A lot of people thought it would be totally impossible.”

While part of this is certainly most exciting from a theoretical perspective — showing that a puzzle people once thought couldn’t be done, actually can be — it also has some promising implications for future solutions to real-world fair division problems and making these systems more efficient.

And who can really get upset about making the world a fairer and more efficient place?

Luke Dormehl
Former Digital Trends Contributor
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
I have Meta Quest 3S and this is the best VR accessory yet — it’s on sale
Kiwi Design best VR accessory Meta Quest 3 headstrap

Ahead of the holidays and some prime family time, I've picked up the Meta Quest 3S. So far, my family is absolutely loving it, and my kids are constantly bugging me to play games, explore worlds, and get virtual. Naturally, I manage the time we're all spending -- you don't want too much screen time. But regardless, every one of us ends up becoming immersed, which means spending a lot of time with the headset on. One of the biggest drawbacks of the stock setup is that the headstrap is uncomfortable, and it puts a lot of pressure on your face. That means, the Meta Quest 3S's best VR accessory -- and the Meta Quest 3, too -- is a new, custom strap.

We grabbed the Kiwi Design Quest 3-Quest 3S headstrap and it's fantastic. It's also on sale right now for 20% off. Normally $30, it's discounted to $24 with a coupon code. Why am I sharing? If you pick up a Meta Quest 3 or 3S for yourself, or you're planning to gift one to someone over the holidays, I highly recommend ordering one of these straps. It vastly improves the experience and makes wearing the headset much more comfortable. It's also easy to adjust the fit, which is a big deal for kids. You have no idea how frustrating it was to constantly adjust the headstrap for my children between each turn.

Read more
Best early GPU Black Friday deals: Save on top graphics cards now
The Gigabyte RX 6750 GRE graphics card over a dark background.

Building a PC from scratch can be a lot of fun, and with the upcoming Black Friday on November 29, it's a perfect time for you to pick up hardware. One of the most fun bits of any build is picking the parts, and for that, graphics cards are probably the most fun to pick between. That said, GPUs also tend to be the most expensive pieces of hardware that go into a desktop, especially if you're trying to aim for something in the mid-to-high-end range that can easily reach $500 or even $1,000. That's why we've gone out and collected some of our favorite early Black Friday GPU deals for you below.
GIGABYTE NVIDIA GeForce RTX 3060 -- $290 $350 17% off

This RTX 3060 is a great starter card for those who want to be on a budget and will handle most slightly older games pretty well at 1080p and 60Hz, potentially up to 100. It may struggle a bit with newer titles without compromises, but that's fine given the reduced $290 price point.

Read more
Nvidia just scaled down DLSS 3, and that’s a good thing
The RTX 4080 Super graphics card sitting on a pink background.

Nvidia's signature tech, DLSS 3, just got yet another update -- and although it's subtle, it actually seems like a good thing for some of the best graphics cards. The latest version, 3.8.10, bundled with the GeForce 566.14 driver, doesn't seem to introduce any major changes, but Nvidia enthusiasts noticed that it's about half the size that it used to be. Where's that difference coming from?

No, Nvidia didn't downgrade DLSS 3 -- at least not in any major way. Although this hasn't been confirmed by Nvidia itself, it appears that the company removed a whole bunch of DLSS presets and replaced them with just two. These presets make it easier for gamers to choose the type of focus they want to apply to each game.

Read more