Skip to content

Commit edb240e

Browse files
authored
Update AStar.js
Test adding explanation of Nodes to A*
1 parent 9c65965 commit edb240e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/algorithms/pseudocode/AStar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export default parse(`
1212
\\In{
1313
initialise, with fontier={s}, stored in Nodes \\Ref Init
1414
while Nodes not empty \\B 2
15+
\\Expl{Nodes is the data structure where we store the nodes that are
16+
in the frontier. In the A* algorithm, Nodes is a Priority Queue.
17+
\\Expl}
1518
\\In{
1619
remove next node n from Nodes and finalise it \\Ref Next_node
1720
// The Parent of n has now been determined

0 commit comments

Comments
 (0)