8-puzzle
8-puzzle copied to clipboard
java.lang.OutOfMemoryError: Java heap space
When trying the following case: int[][] initial = { {7, 2, 4}, {5, 0, 6}, {8, 3, 1} };
we get a lot of lag and this error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at Node.
Process finished with exit code 1