An implementation of Dijkstra's algorithm to solve a given maze.
- The maze must use the PPM file format (and contain only black/white colour values)
- The start of the maze must be at pixel (0,0) and end at (X, Y), where X & Y are the dimensions of the image
This script requires Python 3. To install dependencies: pip install requirements.txt in the root directory.
To execute: python MazeSolver.py. When prompted, enter the path to the PPM file (for example: images/maze.ppm).
Results will be saved in the "output" folder, and there are two sample images in the "images" folder included.
Note: Some images can take several seconds to process.
This was created as part of the second-year "Design and Analysis of Data Structures" course at the University of Toronto.