Changed several implementation details and added depth-first-search

This commit is contained in:
Niklas Birk committed 2019-03-27 19:59:28 +01:00
1 parent 481b292d17
commit 82e7e618d7
10 files changed
+216 -78

No files matched your search

+20
View File
@@ -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");
}
}