-
-
Notifications
You must be signed in to change notification settings - Fork 49.6k
Closed
Description
Sharing Knowledge
In the a_star algorithm, 47th line makes less readable code from my point of view.
f = g + heuristic[init[0]][init[0]]
Moreover, Does heuristic[init[0]][init[0]] not be heuristic[init[0]][init[1]] ?
Two variables x and y have been already initialized by init[0] and init[1]. Doesn't it seem good to read if we make 47th line as below?
f = g + heuristic[x][y]
PR: 2318424
Metadata
Metadata
Assignees
Labels
No labels