← Latest papers
🔢 mathematics

Some Generalizations of the Bridge and Torch Problem

This paper derives closed-form expressions for the optimal crossing times in the classic bridge and torch problem with capacities of two and three, and extends the analysis to star graphs to recover identities involving sums of floor functions.

Original authors: Pang Ern Thang, Gerard Sayson

Published 2026-08-07
📖 7 min read🧠 Deep dive

Original authors: Pang Ern Thang, Gerard Sayson

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where the most exciting puzzles aren't about finding hidden treasure or solving a murder, but about getting a group of friends across a dark, rickety bridge before the sun comes up. This is the realm of combinatorial optimization, a branch of mathematics that asks: "What is the absolute best way to do something when you have strict rules?" Think of it as the ultimate game of Tetris, but instead of blocks, you're fitting people into time slots, and the goal is to finish the level in the shortest time possible. The classic version of this game, known as the "Bridge and Torch Problem," is famous for its deceptively simple rules: a group of people must cross a bridge at night with only one flashlight. The bridge is narrow (only two people fit at once), the flashlight must be carried every time someone crosses, and if two people cross together, they move at the speed of the slower person. It sounds easy, but finding the fastest schedule is a tricky dance of timing and strategy that has stumped many.

Now, imagine taking that same puzzle and turning the dial up. What if the bridge could hold three people? Or what if, instead of a single bridge, you had a hub with many spokes, like a spiderweb, where people could cross to different destinations at the same time? That is exactly what Thang Pang Ern and Gerard Sayson explored in their paper. They took the classic "two-person bridge" puzzle, where everyone has a specific crossing time from 1 to nn, and they didn't just solve it; they found a magical formula that predicts the exact minimum time needed for any number of people. Then, they pushed the boundaries further, figuring out the rules for a bridge that holds three people, and even for a star-shaped network of paths. They discovered that while the answers get complicated, they follow beautiful, repeating patterns that can be written down in a single equation.

The Classic Two-Person Dance

Let's start with the original puzzle. You have a group of nn people, and their crossing times are simply the numbers 1,2,3,,n1, 2, 3, \dots, n. The person with time 1 is a sprinter, while the person with time nn is a slowpoke. The goal is to get everyone from the left side of the river to the right side.

The authors proved that for this specific setup, there is a perfect, closed-form formula to calculate the minimum time, T(n)T(n). It's not just a guess; they derived it by breaking the problem down into smaller chunks. They realized that the best strategy involves sending the two fastest people (1 and 2) across first, having one of them return with the torch, sending the two slowest people across together, and then having the other fast person return. This "block" of moves clears out the two slowest people and leaves the system ready to repeat the process for the remaining group.

By adding up the costs of these blocks, they found that the total time for nn people is:
T(n)=n24+3n5+(1)n18T(n) = \frac{n^2}{4} + 3n - \frac{5 + (-1)^n - 1}{8}
This formula works for every number of people nn greater than or equal to 2. They also noted that the sequence of times generated (1, 2, 6, 11, ...) is a known pattern in the world of math, but they provided a fresh, direct proof for why this specific formula works. Interestingly, they showed that the "standard" strategy of just sending the fastest person back and forth with everyone else isn't always the best. For example, with 4 people, the standard way takes longer than the clever "block" method.

The Bridge That Holds Three

Next, the authors asked: "What if the bridge is wider?" They imagined a bridge that can hold up to 3 people at once, but still only has one flashlight. This changes the game entirely. With three people, you can send a trio across, but you still need someone to bring the light back.

They found that for this "capacity 3" version, the optimal time, T3(n)T_3(n), follows a different, more complex rhythm. The formula involves a mix of a quadratic curve (like n2/6n^2/6) and some wiggly wave-like terms involving cosine and (1)n(-1)^n. Specifically, for n7n \ge 7, the time is:
T3(n)=n26+2n18136+(1)n429cos(2nπ3)T_3(n) = \frac{n^2}{6} + 2n - \frac{181}{36} + \frac{(-1)^n}{4} - \frac{2}{9} \cos\left(\frac{2n\pi}{3}\right)
This formula is so unique that it created a brand new sequence of numbers in the Online Encyclopedia of Integer Sequences (A392834). The authors proved this by showing that the best strategy involves moving groups of six people at a time in a specific cycle, reducing the problem from nn people to n6n-6 people with a predictable cost added each time. They also checked smaller numbers (like 1 through 6) by brute force to make sure the formula fits the start of the line.

They briefly looked at a bridge that holds 4 people, but they admitted that the pattern gets messy and they couldn't find a simple formula for that yet. They suspect a formula exists, but it's much harder to find.

The Star-Shaped Network

Finally, the paper takes a giant leap away from a single bridge. Imagine a central hub (like a train station) with many roads (spokes) leading out to different destinations (leaves). This is called a "star graph." In this version, you have nn people at the center, kk roads leading out, and tt flashlights.

The rules here are a bit different: in one "step," you can send people down different roads at the same time, as long as no two people use the same road and no person is in two places at once. The time for that step is determined by the slowest person moving in that step.

The authors found that the minimum time depends heavily on how many flashlights and roads you have. If you have enough flashlights and roads to send everyone out in one big burst, the time is just the time of the slowest person (nn). But if you are limited, the time grows roughly like n2n^2. They derived a lower bound formula:
T(n,k,t)snms(s1)T(n, k, t) \ge sn - ms(s-1)
where mm is the smaller of the number of roads or flashlights, and ss is the number of "rounds" needed to get everyone out.

One of the coolest parts of this section is how it connects back to pure math. When they looked at the numbers generated by this star-graph problem, they realized they were recreating famous mathematical identities involving the "floor function" (which just means rounding down to the nearest whole number). For instance, by solving the puzzle for specific numbers of people and roads, they "rediscovered" a known identity about the sum of floor functions, showing how a fun scheduling puzzle can reveal deep truths about number patterns.

In short, this paper takes a classic riddle, solves it with a precise formula, expands it to wider bridges, and then spins it into a multi-path network, all while uncovering hidden mathematical beauty along the way. It shows that even in a simple game of crossing a bridge, there are layers of strategy and structure waiting to be discovered.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →