Search:

Type: Posts; User: dabdi

Search: Search took 0.26 seconds.

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

    As sean4u pointed out hashmap uses hash tables i.e (key,value) pair, so it is not sorted in any way. Interestingly it seems it is non-deterministic as well (you get different sequence every time you...
  2. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Yes proper back propagation is required for more complex goals. The OP's problem is very simple as to not require advanced solutions. He can even use a longjump once he encounters a goal at a leaf...
  3. Re: Depth-Limited Search using Recursive Backtracking...please help!

    You have isGoalState inside the for loop as well so make the same change.


    // recursively expands search space
    output = recursiveExpandNode( current );
    if( problem.isGoalState(...
  4. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Did you try my suggestion ? It is pretty straight forward and I can not see why it will not work.
    Declare a member variable goalFound.

    Boolean goalFound;

    Set it to false initially (in...
  5. Re: Depth-Limited Search using Recursive Backtracking...please help!

    I think your termination criteria is wrong. You should unwind the recursion when a goal is found anywhere in the tree (not just when the current node is a goal). A simple solution is to have a...
Results 1 to 5 of 5