A UNSW Sydney computer scientist has made a major advance in solving a decades-old mathematical problem about how to divide resources fairly among any number of people.
Most people know a simple way to share a cake fairly between two people: one cuts it into two pieces, and the other chooses which slice they prefer.
But what happens when there are three people? Or ten? Or even 100 – all with different preferences about which part of the cake they would most like to eat?
Finding a way to divide the cake so that nobody thinks someone else has received a better share is a surprisingly difficult mathematical problem that has challenged researchers for decades.
Now, Professor Haris Aziz, from UNSW’s School of Computer Science and Engineering, has made a major breakthrough, developing a new mathematical procedure that dramatically reduces the theoretical number of questions needed to guarantee a fair division, regardless of how many people are involved.
“It’s really a problem about the mathematics of fairness. It’s a very fundamental problem in that sense with potential implications for how competing interests can be balanced when allocating limited resources,” says Prof. Aziz.
A problem of astronomical proportions
The mathematical challenge is known as envy-free cake cutting.
Unlike simply dividing something into equally sized portions, the goal is to ensure that everybody values their own allocation at least as highly as anyone else’s.
Imagine a cake with chocolate icing, strawberries and sponge. One person might particularly enjoy the icing, another might prefer the strawberries, while a third would happily sacrifice both for a bigger portion of sponge.
A fair division therefore doesn’t necessarily mean equal-sized slices. Instead, it means finding an arrangement that satisfies everyone’s individual preferences.
For two people, the familiar method of one person cutting and the other choosing provides a simple solution. But with larger groups, the challenge becomes extraordinarily complicated.
In 2016, Prof. Aziz and fellow researcher Simon Mackenzie made a significant breakthrough by proving that an envy-free division could always be achieved within a mathematically bounded number of questions, no matter how many people were involved.
However, there was a remarkable catch.
For just five people, the theoretical upper bound on the number of questions was greater than the estimated number of atoms in the observable universe.
That didn’t mean such an enormous number of questions would actually be necessary in practice. Rather, it demonstrated how extraordinarily inefficient the mathematical guarantee could become.
Over the following decade, researchers made significant improvements, but the number of questions potentially needed to guarantee a fair division still grew exponentially. That is, with just one additional person added, the number of questions required was multiplied.
Professor Aziz’s latest discovery – in a paper titled ‘A Deterministic Polynomial-Query Protocol for Envy-Free Cake Cutting’ – changes that.
A new way of finding fairness
The new procedure establishes what mathematicians call a polynomial bound, meaning the maximum number of questions grows far more manageably as the number of people increases.
Put simply, Prof. Aziz has demonstrated that the information needed to guarantee a fair division can be gathered much more efficiently than previously established.
The breakthrough involves finding ways to reuse information about people’s preferences across many possible divisions, rather than repeatedly asking separate questions about every potential arrangement.
Mathematical comparisons then help eliminate unsuitable possibilities while ensuring the eventual distribution remains envy-free.
Further work is needed before such procedures could become practical tools for allocating resources.
Nevertheless, the advance substantially changes what researchers know is theoretically possible.
“In 2016 we showed that a fair division can always be reached in a bounded number of steps,” Prof. Aziz says. “But the number was absurdly large. Now we can show that it is polynomial, and nobody expected that, so this is a huge surprise.”
Why does sharing cake matter in the real world?
Although birthday cakes provide an easily understood example, the underlying research concerns a much broader question: how can people with different preferences share limited resources fairly?
In a world where resources are increasingly contested, understanding the mathematical principles of fair allocation is potentially valuable.
“We live in a highly constrained world where we are short on resources,” Professor Aziz says.
He points to resources such as water, minerals and computing capacity as areas where questions about fair allocation arise.
Prof. Aziz stresses, however, that the immediate significance of his discovery is not a ready-made solution to real-world resource disputes but a deeper understanding of the mathematics underpinning fair decision-making.
Human insight meets artificial intelligence
The breakthrough also highlights the emerging role of artificial intelligence in mathematical research.
Prof. Aziz used AI tools including ChatGPT and Claude to help explore mathematical ideas and refine approaches to the problem.
But he emphasises that AI alone was not responsible for the discovery, and that human expertise, intuition and mathematical insights developed over many years were essential.
The research builds on ideas Prof. Aziz had developed during his earlier work, combined with more recent advances that encouraged him to revisit the challenge.
The resulting proof has also been subjected to computer-assisted formal verification using a system called Lean, designed to check the logical correctness of mathematical arguments.
Having helped establish two major milestones in the history of envy-free cake cutting, Prof. Aziz is now exploring whether the mathematical bounds can be reduced further and the procedure simplified.
“The jump from finite to bounded questions was a big breakthrough, and in a similar way, a jump from huge exponential to polynomial is similar in terms of qualitative progress. I’m happy to be part of the history of this problem, which is a very famous one in mathematics,” he says.