8-puzzle icon indicating copy to clipboard operation
8-puzzle copied to clipboard

java.lang.OutOfMemoryError: Java heap space

Open matheusgomes062 opened this issue 4 years ago • 0 comments

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.(Node.java:17) at Puzzle.solve(Puzzle.java:87) at Puzzle.main(Puzzle.java:104)

Process finished with exit code 1

matheusgomes062 avatar Mar 22 '20 22:03 matheusgomes062