Skip to content

AliDavoodi98/DFS-Maze-Solver-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

DFS Maze Solver Project

Description

This DFS (Depth-First Search) Maze Solver Project is designed to help visualize the process of depth-first search in exploring paths within a given matrix. It highlights the current cell being visited and updates the matrix's state at each step, providing insights into how the DFS algorithm explores all possible paths from each starting cell.

IMG_0723-ezgif com-video-to-gif-converter

Features

  • Visualization of the DFS exploration process in real-time.
  • Calculation and display of the maximum path length found by the DFS.
  • Ability to input custom matrices via command-line arguments for flexible testing.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.6 or higher installed on your system.

  • matplotlib library installed for Python. This can be installed using pip:

    pip install matplotlib  

Installation

To install the DFS Visualization Script, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/yourusername/dfs-visualization-script.git
  1. Navigate to the cloned repository:
cd dfs-visualization-script

No additional installation steps are required as the script runs directly with Python.

Usage

To use the DFS Visualization Script, run the following command in the terminal:

python dfs_visualization_script.py --matrix "[[0, 1, 0, 0], [1, 1, 0, 0], [0, 0, 0, 0], [0, 0, 0, 1]]"

Replace the matrix argument with your matrix, keeping the format as shown. The script will visualize the DFS process on the given matrix and print the maximum path length found. Contributing

Contributions to the DFS Visualization Script are welcome. To contribute:

  1. Fork the repository.
  2. Create a new branch git checkout -b feature/AmazingFeature.
  3. Commit your changes git commit -m 'Add some AmazingFeature'.
  4. Push to the branch git push origin feature/AmazingFeature.
  5. Open a pull request.

License

This project is licensed under the AGPL-3.0 license - see the LICENSE file for details. Contact

If you have any questions or feedback, please contact me on LinkedIn.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages