Skip to content

Instantly share code, notes, and snippets.

@hediet
Created December 1, 2025 22:45
Show Gist options
  • Select an option

  • Save hediet/a0e9b88aaf9f26ceb349cbf7a5a7fcba to your computer and use it in GitHub Desktop.

Select an option

Save hediet/a0e9b88aaf9f26ceb349cbf7a5a7fcba to your computer and use it in GitHub Desktop.
Puzzle

🎯 Puzzle: Finding the Survivor in the Middle

…or why one-dimensional two-way cellular automata operating in linear time are likely more powerful than their real-time counterparts.

The evacuation platform creaks in the waves — a long, narrow beam with a line of shipwreck survivors standing shoulder-to-shoulder, all facing the distant lights of the rescue ship.
Each survivor sees everyone ahead, but the chaos behind them is a mystery.

Over the roar of the storm, a rescue helicopter swoops in from behind.
To lift the platform without capsizing it, the hoist rope must be attached to the one survivor standing exactly in the middle.
Attach it anywhere else, and the whole platform will flip like a seesaw.

The survivors are hoarse from smoke; none of them can speak.
Yet they can hear the helicopter pilot — the only person able to give instructions.

The pilot, half-blinded by sea spray, can see only the last survivor at the back of the line.
No idea how many others are hidden in the storm — could be dozens, hundreds, or more.

Before lowering the rope, the pilot shouts down:

  • A strategy every survivor must follow,
  • A finite set of distinct items (colored tags, numbered clips, strange shapes…),
  • And attaches those items to the rope in a chosen initial order.

Then the rope descends into the darkness.


How the rope travels

The last survivor grabs the rope.
One by one, as the rope moves only forward, each survivor may:

  • Glance at all survivors ahead of them,
  • Inspect the current order of the items on the rope,
  • Rearrange those items however they like,
  • And then choose:

⚓ Attach the rope

If they believe they are the true middle, they fix the rope to the platform and signal the helicopter.

➡️ Pass it forward

If not, they hand it to the next survivor.
The rope cannot move backward.
Only the first attachment counts.


❓ The Challenge

Can the pilot choose a finite set of items, their initial order, and a strategy such that — no matter how many survivors are on the platform — the correct middle survivor is always the one who attaches the rope?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment