1. This python script is used to solve any n x n sliding number puzzle(Only tested for 3x3, 4x4, 5x5).
2. The algorithm I have implemented uses a priority queue that optimizes the brute force Breadth First Search (BFS) approach.
3. For example: For testcase5 the code is 25.2 times faster with around 15.3 times fewer iterations when comparing my algorithm with the suggested approach.
import numpy as np
import time
import copy
import argparse
python3 project1.py --testCase {enter the number of the testcase you need to run}
python3 project1.py --testCase 4
cat ./nodePath.txt