MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / key

Function key

Graphs/multi_hueristic_astar.py:74–76  ·  view source on GitHub ↗
(start, i, goal, g_function)

Source from the content-addressed store, hash-verified

72 return abs(P[0] - goal[0]) + abs(P[1] - goal[1])
73
74def key(start, i, goal, g_function):
75 ans = g_function[start] + W1 * hueristics[i](start, goal)
76 return ans
77
78def do_something(back_pointer, goal, start):
79 grid = np.chararray((n, n))

Callers 2

expand_stateFunction · 0.85
multi_a_starFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected