المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to iterate in recursion?



C# Programming
02-27-2011, 05:02 PM
Hi,

Is there any good and easy way to iterate through all the outcomes of recursion? Basically, I've a maze solver algorithm which solves maze instantly and prints the solved maze. I've broken down the code into each recursive call, and I need iterate to through it one by one..like if I press some button, then execution should stop at that point and maze state should be returned to main class and execution should proceed from the same point when I press some button. There is java applet on this website, I need to make one similar to it.

[/URL][[URL="http://www.cs.bu.edu/teaching/alg/maze/"]^ (http://www.cs.bu.edu/teaching/alg/maze/)]

Any help would be appreciated.

Thanks,
Shivam Kalra