Search:

Type: Posts; User: Zaxx81

Search: Search took 0.14 seconds.

  1. Re: Depth-Limited Search using Recursive Backtracking...please help!

    The order is always the same the first time: 4, 5, 6, 7, 8, 1, 2, 3 and everytime after that it is 1, 2, 3, 4, 5, 6, 7, 8.
  2. Re: Depth-Limited Search using Recursive Backtracking...please help!

    That was instructor provided and it is in the correct order every time it loops back. I can live with it for a HW assignment, but it just kind of bugs me.
  3. Re: Depth-Limited Search using Recursive Backtracking...please help!

    New code puzzle. The first time I run the program the menu of test cases print in the wrong order. When it loops back to give the user a chance to enter another case the menu order is correct. Can...
  4. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Finally got it to work, with everyone's help. I ended up creating a class variable "Boolean goalFound" and "Successor goalNode". So once I find a goal node, I set goalFound to true and store it in...
  5. Re: Depth-Limited Search using Recursive Backtracking...please help!

    How do I stop the for loop? Because even with goalFound, the other Successor nodes in the this will return themselves or null...
  6. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Gonna try the boolean idea after lunch. Attached is a flow diagram for just that method. The problem is when a recursive node is terminated, the previous recursive branch is still in the "for loop",...
  7. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Executable code was requested. I am only struggleing with one method in one class. As mentioned above I am having problems terminating all recursive branches when a goal state is found. The method is...
  8. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Attached is the source code for the entire program. The class I am working on is in src > ai > searches > DepthLimitedSearch.java and the main class is src > VacuumWorld > VacuumWorldDriver.java
    ...
  9. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Yep, I am not terminating properly. If someone would please provide some code to try that would be awesome.
  10. Depth-Limited Search using Recursive Backtracking...please help!

    Writing a Depth-Limited Search Java Class in an Artificial Intelligence course. I have included the code for my class below and attached a flow diagram I came up with. This project is based on the...
Results 1 to 10 of 10