Search:

Type: Posts; User: Sean4u

Search: Search took 0.07 seconds.

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

    Did your instructor give you javadocs for their HashMap class which explains the novel behaviour? You can't even try out java.util.HashMap, LinkedHashMap or TreeMap because your instructor's HashMap...
  2. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Waidaminnit! Since when did HashMap have an iterator() method?


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

    You should use LinkedHashMap or TreeMap if you care about the order of your iterators. I'm agog at the order *changing* though - I'd be interested to see an SSCCE that demonstrated that behaviour. I...
  4. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Uh? HashMap isn't in any way sorted, so the out-of-order is to be expected. Changing order is as weird as in-order. TreeMap would give you sorting, LinkedHashMap reliable ordering. Do you remove /...
  5. Re: Depth-Limited Search using Recursive Backtracking...please help!

    D'oh! duplicate post...
  6. Re: Depth-Limited Search using Recursive Backtracking...please help!

    That's your solution's natural ground, where it's behaving not only as a success flag but also as a communications channel. If the task in hand is 'can a matching item be found?', then a Boolean /...
  7. Re: Depth-Limited Search using Recursive Backtracking...please help!

    Returning something from a successful search method invocation seems like a good way of terminating your search. Can you continue / break your loop depending on the return value of the search method?...
Results 1 to 7 of 7