All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Hide and destroy (Posted on 2006-02-15) Difficulty: 3 of 5
You must randomly place a destroyer (a 1x2 sized ship) on a 5x5 grid such that if I searched in any single square, my probability of finding the destroyer there is exactly 2/25. Is such a probability distribution possible? You cannot simply choose randomly one of the 40 possible positions of a destroyer because corners would have a 1/20 chance to contain the destroyer, while the center would have 1/10 chance.

Generalize to a 1xN sized ship in a MxM grid. When is it possible to place the ship with an even probability distribution in each square?

  Submitted by Tristan    
Rating: 3.4000 (5 votes)
Solution: (Hide)
ABABA
BABAB
ABABA
BABAB
ABABA
No matter where you put the destroyer in the above 5x5 grid, one A will be covered, and one B will be covered. Therefore, the total probability of finding the destroyer on a B square is 1. But since there are 12 B squares, and each should have a probability of 2/25, the probability should total 24/25, not 1. Therefore, the desired probability distribution is not possible.

In general the probability distribution is possible if and only if M is a multiple of N. If M is a multiple of N, divide the whole grid into a (M/N)^2 squares of NxN size, and place the ship randomly within any of these NxN-sized squares.

If M is not a multiple of N, the probability distribution can be proven impossible in the same way the first case was. For example, take N=4 and M=6.

ABCDAB
BCDABC
CDABCD
DABCDA
ABCDAB
BCDABC
No matter where the 4x1 ship is placed, it covers one A, one B, one C, and one D. There are 9 As, 10 Bs, 9 Cs, and 8 Ds. Each square should have a 1/9 probability of containing part of the ship, but no matter how you split it, some of the D squares will have a higher probability.

Similarly, with any M that is not a multiple of N, you can label the grid with letters such that some letters will be more likely on average to contain part of the ship.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
Some ThoughtsPuzzle Thoughts K Sengupta2024-04-12 09:30:57
re: Solutionbernie2006-02-17 17:37:57
SolutionSolutionAvalonXQ2006-02-17 05:00:59
re(3): Clarification, if you're lostRichard2006-02-16 19:19:23
re(2): Clarification, if you're lostTristan2006-02-16 18:13:51
Not a valid solution?Richard2006-02-16 15:41:42
re: Clarification, if you're lostbernie2006-02-16 13:46:31
Hints/TipsClarification, if you're lostTristan2006-02-15 21:36:39
re: What constitutes an answer here?bernie2006-02-15 17:49:59
Some ThoughtsWhat constitutes an answer here?Richard2006-02-15 17:18:41
Try thisbernie2006-02-15 17:01:32
Some ThoughtsA solutionLeming2006-02-15 16:24:16
Soviet RussiaHugo2006-02-15 16:17:18
ThoughtsEric2006-02-15 15:29:16
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information