You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,14 @@ It comes with a `test_a_star.py` snippet to test the algorithm in a simple weigh
18
18
<imgsrc="./doc/sample.png">
19
19
</p>
20
20
21
+
The first diagram represents where each point came from. Starting in the E ( standing for ENDING POINT) we backtrack each arrow untill we reach the S ( standing for STARTING POINT). This path is the shortest path. And you know what?
22
+
23
+
**This is also true for every point in the diagram!!!**
24
+
25
+
The arcane forces of A* make that if you start in a visited point and backtrack using the arrows you will get the shortest path.
26
+
27
+
The second diagram is the cost to reach each point from the START (S).
28
+
21
29
# Can you EXPLAIN the algorithm?
22
30
23
31
Yeah! The idea of the A* algorithm is that starting from the start point we visit the points that are cheaper to visit. The cost of visiting a neighbor point depends on how costly is to go from the current point to a neighbor. So we check for all the points what is the neighbor that is cheaper to visit and we visit it.
0 commit comments