Changed several implementation details and added depth-first-search
This commit is contained in:
1 parent
481b292d17
commit
82e7e618d7
10 files changed
+216
-78
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package search;
|
||||
|
||||
public class SearchTestUtils
|
||||
{
|
||||
public static <T> void printSolution(Node<T> targetNode)
|
||||
{
|
||||
var node = targetNode;
|
||||
|
||||
System.out.println("Read from down to top!");
|
||||
System.out.println("END");
|
||||
|
||||
while (node != null)
|
||||
{
|
||||
System.out.println(node);
|
||||
node = node.getParent();
|
||||
}
|
||||
|
||||
System.out.println("START");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user