Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Kangaroo problem, np complete :)
#19
Lanzaa,

I am sorry I didn't respond earlier. I didn't know what to say. You say that you want to be able to write a program to solve it, but you want a simpler program as an example. I could rewrite it, but then you wouldn't have the chance to do it yourself. I am very happy to help you, but if you are to have any satisfaction in writing the program, you will have to do most of the work.

Please, run the program with n = 4. Then group the moves by which way the moving kangaroo is facing (R or L). Then look for a pattern in those groups. This determines your loop structure. When you think you have it, try it with n = 3 to verify it. Let me know what you find. (What is the initial pattern? When does it change? What is the next pattern that comes up? When Does it begin? What happened between these two patterns?)
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)

For God so loved the world, that He gave His only begotten Son,
that whoever believes in Him should not perish, but have eternal life.(John 3:16)
Reply


Messages In This Thread
Kangaroo problem, np complete :) - by Agamemnus - 08-02-2003, 10:58 PM
Kangaroo problem, np complete :) - by xhantt - 08-03-2003, 12:32 AM
kangaroo problem - by SCM - 08-04-2003, 06:15 AM
Kangaroo problem, np complete :) - by na_th_an - 08-04-2003, 07:18 AM
kangaroo challenge - by SCM - 08-05-2003, 03:09 AM
Re: kangaroo challenge - by Phydaux - 08-05-2003, 06:04 AM
Kangaroo problem, np complete :) - by Agamemnus - 08-05-2003, 07:20 PM
Kangaroo problem, np complete :) - by Lanzaa - 08-06-2003, 02:46 AM
Kangaroo problem - by SCM - 08-06-2003, 11:20 AM
Kangaroo problem, np complete :) - by Agamemnus - 08-09-2003, 04:51 AM
Kangaroo problem, np complete :) - by Lanzaa - 10-03-2003, 06:01 AM
Kangaroo problem, np complete :) - by Agamemnus - 10-03-2003, 06:17 AM
Kangaroo problem, np complete :) - by Lanzaa - 10-03-2003, 06:41 AM
Kangaroo problem, np complete :) - by Agamemnus - 10-03-2003, 06:47 AM
Kangaroo problem - by SCM - 10-03-2003, 07:31 AM
Kangaroo problem, np complete :) - by Lanzaa - 10-03-2003, 07:57 AM
Kangaroo problem, np complete :) - by SCM - 10-03-2003, 08:10 AM
Kangaroo problem, np complete :) - by Lanzaa - 10-03-2003, 08:19 AM
Kangaroo problem, np complete :) - by SCM - 10-03-2003, 11:26 PM
Kangaroo problem, np complete :) - by Agamemnus - 10-04-2003, 03:55 AM
Re: Kangaroo problem, np complete :) - by Clippy - 07-12-2009, 01:05 AM
Re: Kangaroo problem, np complete :) - by LPG - 10-30-2009, 08:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)