Skip to content

gusroitman/A-Star-Algoritmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PathFinding

C# Windows Forms application demonstrating several common path finding algorithms traversing a 2D maze.

Do what you like with the code, it's not like I invented these algorithms.

Uses Dijkstra, A*, Breadth First search, and Depth First search to find a path from A to B. The cells of the maze are randomly weighted so that the direct path is not always the cheapest.

DIJKSTRA

Traverses the maze investigating the least costly so far path until it reaches its destination. This is a generic algorithm that does not use a heuristic.

A*

A special implementation of DIJKSTRA that also applies a heuristic to guess which node are the most promising. The 'Manhattan distance' is used in this case, but other heuristics are possible.

BREADTH-FIRST

An algorithm that searches all the child nodes of a particualar starting point before then search their children.

DEPTH-FIRST

Searches all the child nodes a starting point, examining each branch as far as it will go either to the destination or a dead end. If a dead end is reaches, the branch is traced back to the nearest node with unexplored children and continues.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages