MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / key

Function key

graphs/multi_heuristic_astar.py:76–78  ·  view source on GitHub ↗
(start: TPos, i: int, goal: TPos, g_function: dict[TPos, float])

Source from the content-addressed store, hash-verified

74
75
76def key(start: TPos, i: int, goal: TPos, g_function: dict[TPos, float]):
77 ans = g_function[start] + W1 * heuristics[i](start, goal)
78 return ans
79
80
81def do_something(back_pointer, goal, start):

Callers 2

expand_stateFunction · 0.85
multi_a_starFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected