GithubHelp home page GithubHelp logo

ladypary / btreedijkstra-mazesolver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21.78 MB

A maze solving program in C++ with An Implementation of Dijkstra's Shortest Path Algorithm Using Btree

C++ 100.00%

btreedijkstra-mazesolver's Introduction

๐ŸŒฝ๐Ÿƒ MazeSolver

An Implementation of Dijkstra's Shortest Path Algorithm Using Btree

algorithm demo

Table of Contents

About The Program

This is a maze solver program which is implemented using the Dijkstra's shortest path algorithm and Btree data structure for improving the efficiency. The Btree was implemented with a little help from HERE.

Built With

How to Use

Input:

  1. Number of rows and columns of your maze

  2. Your maze such that:

    โ›”: 0 means a dead end.

    โ›๏ธ: Positive numbers indicate the difficulty of that path.

Output:

The solved maze such that the shortest path from the start to the finish is marked with -1s.

Test Cases

You can directly copy and paste the following test cases to try out the program.

  1. First test case:

    4 4
    0 1 0 0
    0 1 1 1
    1 2 3 2
    0 0 1 0
    
  2. Second test case:

     8 10
     0 0 0 1 0 0 0 0 0 0
     0 3 1 1 0 1 51 0 1 0
     0 2 0 1 0 0 1 41 1 0
     0 10 0 1 1 111 1 0 0 0
     0 34 1 1 0 0 1 23 1 0
     0 1 0 5 0 1 1 0 0 0
     0 1 0 166 1 0 54 1 1 0
     0 0 0 0 0 0 0 7 0 0
    
  3. Third test case:

     7 11
     0 0 0 0 0 0 0 1 0 0 0
     0 0 3 2 5 3 2 5 6 4 2
     0 1 1 7 6 1 1 7 9 0 3
     1 1 4 0 1 9 4 8 6 0 2
     1 1 4 1 9 9 1 8 3 4 2
     0 3 1 1 2 1 1 2 1 0 0
     0 0 0 0 1 0 0 0 0 0 0
    

Contact

Parisa Rabbany - [email protected]

btreedijkstra-mazesolver's People

Contributors

ladypary avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.