Crossing the Bridge at Night

Image by Rezuanur Rahman Mubin from Unsplash

The Bridge and Torch Problem is a classic logic puzzle made famous by tech job interviews at companies like Microsoft and Google.

The intuitive trap of the puzzle lies in assuming that the fastest person should always act as the group’s “shuttle driver”, escorting others across and returning with the torch. However, when the speed differences among group members are large, this strategy is sub-optimal.

Imagine four people (A, B, C, and D) standing on the left bank of a river at night, needing to cross to the other side via a narrow, dangerous bridge. The rules for crossing are:

  1. Individual Speeds: Each person takes a different amount of time to cross the entire bridge:
    • Person A: 1 minute.
    • Person B: 2 minutes.
    • Person C: 5 minutes.
    • Person D: 10 minutes.
  2. Bridge Capacity: The bridge can hold at most two people at a time.
  3. Torch Requirement: It is dark, and they have only one shared torch. To cross safely in either direction, the group crossing must carry the torch at all times.
  4. Walking Pace: When two people cross together, they walk at the pace of the slower person.

The key question to answer is: What is the minimum total time required for all four people to reach the other side?


This puzzle can be formulated systematically as a Mixed Integer Linear Optimization model. Care to give it a try?


Want to keep exploring the world of Operations Research? Discover more posts on the topic here.




If you found this useful, please cite this as:

Martín-Campo, F. Javier (May 2026). Crossing the Bridge at Night. https://www.fjmartincampo.com/blog/2026/bridgecrossing/.

or as a BibTeX entry:

@misc{martín-campo2026crossing-the-bridge-at-night,
  title   = {Crossing the Bridge at Night},
  author  = {Martín-Campo, F. Javier},
  year    = {2026},
  month   = {May},
  url     = {https://www.fjmartincampo.com/blog/2026/bridgecrossing/}
}



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • A crime has been committed... in a sudoku!
  • The harmony of digits in solving Kakuro
  • Killer Sudoku, the empty board challenge that math can solve
  • Solving the Number Sums board using mathematical optimization
  • Building bridges with linear optimization, the Hashi puzzle