Skip to main content
  1. Home
  2. Computing
  3. Emerging Tech
  4. News

Algorithm solves cake-cutting problem that has haunted mathematicians

Add as a preferred source on Google

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
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Apple’s new child safety tools are now available with better controls for screen time, web access, and harmful content
Parents can now start child accounts with a smaller set of approved apps and add more access later
Apple child safety features revealed at WWDC 2026

Apple first previewed a new set of child safety features at WWDC in June, and parents can now start using them with iOS 27, iPadOS 27, and macOS 27. The update gives families more control over which apps children can access, what websites they can visit, who they can communicate with, and how much time they spend in certain app categories.

Apple is also changing Screen Time to make those controls easier to manage. Parents get a clearer view of device usage, quicker access to restrictions, and age-based guidance for setting limits across categories such as Games, Social Media, and Entertainment.

Read more
Your NVIDIA RTX PC can now run Perplexity’s AI agent locally
Portable Computer brings agentic AI to Windows, with cloud escalation only when needed.
Perplexity and NVIDIA Partnership

Perplexity and NVIDIA are bringing Portable Computer to Windows PCs, giving owners of compatible GeForce RTX and RTX PRO machines a local AI agent that can actually get things done. The catch is hardware: Windows support requires an NVIDIA GPU with 24GB or more of VRAM.

Think of it as an AI co-worker that doesn't need the cloud for everything

Read more
macOS 27 is finally here with Apple’s biggest AI upgrades yet
Apple's latest Mac update brings a smarter Siri, deeper Apple Intelligence integration, and a host of useful improvements to everyday macOS tasks.
macOS 27 on a Mac on black background

Apple has officially released macOS 27 Golden Gate, bringing the latest generation of Apple Intelligence to the Mac alongside a collection of performance, search, connectivity, and usability improvements.

The biggest addition in today's release is Siri AI, which Apple describes as an entirely new version of the assistant. On Mac, Siri can understand personal context, answer questions about what's on your screen, take systemwide actions, and pull information from the web. It can also work with information from messages, emails, photos, and other personal content to provide more relevant answers.

Read more