Author Topic: Strategy for identifying Fox  (Read 801 times)

  • Newbie
  • *
  • Posts: 24
  • Karma: +3/-2
    • View Profile
Strategy for identifying Fox
« on: November 18, 2012, 09:55:37 pm »
 Consider five holes in a line. One of them is occupied by a fox. Each night, the fox moves to a neighboring hole, either to the left or to the right. Each morning, you get to inspect a hole of your choice. What strategy would ensure that the fox is eventually caught?

Share on Bluesky Share on Facebook


  • Moderator
  • Full Member
  • *****
  • Posts: 126
  • Karma: +1/-0
  • Location: Puttaparthi
    • View Profile
Re: Strategy for identifying Fox
« Reply #1 on: November 19, 2012, 11:23:30 am »
Randomly pick one hole to inspect and the inspect every alternate hole the next day (in only one direction). This will lead us to the fox. 
Don't think you are. Know you are -Kranthi

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +4/-2
    • View Profile
    • kprocks
Re: Strategy for identifying Fox
« Reply #2 on: November 19, 2012, 12:13:34 pm »
@Kranthi: So the worst case of catching the fox is 5 for this example.............. since we go by randomness............. Is there efficient way to do this.........
kp
Live life off the edge.......... Just do it...........

  • Newbie
  • *
  • Posts: 24
  • Karma: +3/-2
    • View Profile
Re: Strategy for identifying Fox
« Reply #3 on: November 19, 2012, 12:54:49 pm »
How is it possible?
Consider for example

1 2 3 4 5. Initially fox is in the 5 th hole, now as per Kranthi's method first randomly choose 3 in the first morning.

But, that night fox will be in 4 th hole, but then next day you will be checking 5 th hole, then what?

  • Newbie
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Re: Strategy for identifying Fox
« Reply #4 on: November 19, 2012, 04:19:04 pm »
given holes 1 2 3 4 5

check hole 1 first day : if fox in 1 caught  ;D

if in 2, next day either to 1 or 3 so simply check 2 : if it had gone to 1 next day on checking 2 caught. That's day 3.  if it had gone to 3 and comes back to 2 again caught.

So on day three if fox not caught we know fox is in  4 5. (since from 3 it would move to 2 or 4)

So on 4th day check 3rd hole if fox comes back it  ;D otherwise in 4 or 5 . If in 4 next day to 3 or 5 so check 3rd hole on 5th day again. if 3 then  ;D otherwise sure 5 so check 4 next day. 6 days  ???



  • Newbie
  • *
  • Posts: 24
  • Karma: +3/-2
    • View Profile
Re: Strategy for identifying Fox
« Reply #5 on: November 19, 2012, 04:42:11 pm »
Hint - Identify what is the sequence  if the fox was initially in the even holes(like 2 or 4)

  • Newbie
  • *
  • Posts: 24
  • Karma: +3/-2
    • View Profile
Re: Strategy for identifying Fox
« Reply #6 on: November 20, 2012, 10:47:02 am »
The answer is as follows -

234234-

Initially fox can be in either {1,2,3,4,5}. Assume in the first day fox can be in either {2,4}- then strategy to catch the fox is 2,3,4. But if we are not able to catch then which means initially fox was in {1,3,5}. So on 2nd day fox will be in {2,4}, on third day {1,3,5,}, on fourh day again on {2,4}. Hence, we have to repeat the same sequence - 2,3,4 again to catch the fox.

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +4/-2
    • View Profile
    • kprocks
Re: Strategy for identifying Fox
« Reply #7 on: November 20, 2012, 11:38:36 am »
@Techie: Awesome...........
Live life off the edge.......... Just do it...........

  • Moderator
  • Full Member
  • *****
  • Posts: 126
  • Karma: +1/-0
  • Location: Puttaparthi
    • View Profile
Re: Strategy for identifying Fox
« Reply #8 on: November 20, 2012, 11:43:49 am »
@ravu Good question
Don't think you are. Know you are -Kranthi

  • Newbie
  • *
  • Posts: 24
  • Karma: +3/-2
    • View Profile
Re: Strategy for identifying Fox
« Reply #9 on: November 20, 2012, 11:51:43 am »
@kranthi - what is this?

Don't think you are. Know you are -Kranthi?