For N = 2 and H=10:
1 2 3 4 5 6 7 8 9 10
|
1
2
3
4 *
5
6
7 *
8
9 *
10
|
A) Your first throw is at 4.
B) If (broke) your next throw sequence is 1, 2, 3. Minimum is 4. {4,1,2,3}
C) It didn't break: Your next throw will be at 7.
D) If it breaks, your next throw sequence will be 5, 6. Minimum is 4. {4,7,5,6}
E) It didn't break: Your next throw will be at 9.
F) If it breaks, your next throw is 8. Minimum is 4 {4,7,9,8}
G) It didn't break: You throw at 10. Minimum is 4{4,7,9,10}
Consider what happens when we try to define each step here in terms of the orginal problem:
B) The solution is (H=3, N=1) + the one throw we already made.
C) We still have 2 phones, but the number of floors we need to try has been reduced. so
the solution is (H=6, N=2) + the one throw we already made.
D) We're again reduced to one phone, and the number of floors to check is 2, so the solution is (H=2, N=1) + the two throws we already made.
E) Our range is reduced to (8-10) and we still have 2 phones, so the solution is (H=3, N=2)+ the two throws we already made.
F) Solution is (H=1, N=1) + three throws already made.
G) Solution is (H=1, N=2) + three throws already made.
Hopefully, that suggests an avenue of approach.