Hacker News new | ask | show | jobs
by kpga 4392 days ago
Another version of this is "the last torpedo problem": A submarine with only one torpedo left is hiding in a cave. In front of it an enemy convoy is passing. The number of ships in the convoy is known in advance, but not the individual ships, and through the opening of the cave the submarine can see only one ship passing each time. So the question is how to decide in which ship to fire its last, unique torpedo?