Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/doguedogue/rutamascortabb

Shortest path in a Maze using Branch and Bound Search
https://github.com/doguedogue/rutamascortabb

Last synced: 11 days ago
JSON representation

Shortest path in a Maze using Branch and Bound Search

Awesome Lists containing this project

README

        

# Shortest path in a Maze using Branch and Bound Search

Find shortest path from source (0, 0) to destination (7, 5)

Initial
1 1 1 1 1 0 0 1 1 1
0 1 1 1 1 1 0 1 0 1
0 0 1 0 1 1 1 0 0 1
1 0 1 1 1 0 1 1 0 1
0 0 0 1 0 0 0 1 0 1
1 0 1 1 1 0 0 1 1 0
0 0 0 0 1 0 0 1 0 1
0 1 1 1 1 1 1 1 0 0
1 1 1 1 1 0 0 1 1 1
0 0 1 0 0 1 1 0 0 1

Final
3 3 1 1 1 0 0 1 1 1
0 3 3 1 1 1 0 1 0 1
0 0 3 0 1 1 1 0 0 1
1 0 3 3 1 0 1 1 0 1
0 0 0 3 0 0 0 1 0 1
1 0 1 3 3 0 0 1 1 0
0 0 0 0 3 0 0 1 0 1
0 1 1 1 3 3 1 1 0 0
1 1 1 1 1 0 0 1 1 1
0 0 1 0 0 1 1 0 0 1

Número de pasos: 12