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

Home > Logic
Catching your enemy (Posted on 2008-08-25) Difficulty: 2 of 5
You are hot on the trail of an enemy, who is hiding in one of 17 caves.

The caves form a linear array, and every night your enemy moves from the cave he is in to one of the caves on either side of it.

You can search two caves each day, with no restrictions on your choice. For example, if you search (1, 2), (2, 3), ..., (16, 17), then you are certain to catch him, though it might take you 16 days.

What is the shortest time in which you can be guaranteed of catching your enemy?

See The Solution Submitted by pcbouhid    
Rating: 2.3333 (3 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts interesting question | Comment 6 of 20 |
ok maybe this is a dumb question, but if we are able to move from any cave to any other cave at will then would that not imply that our enemy could do the same?  I see nothing in the problem desription that could explain this.  So pending the resolution of this question I am going to answer another question.  If he is able to move as freely as we are then obviously there is no way to guarentee to catch him, so if we choose 2 caves at random to search each day and he moves to a random cave each day, what is the expected number of searches to catch him?  well the odds of catching him each day is 2/17, thus the expected number of searches is 8.5.  Now the question I leave open is if this is better than the expected number of searches for already submitted search methods?
  Posted by Daniel on 2008-08-25 21:15:49
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (14)
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