MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / heuristic_2

Function heuristic_2

graphs/multi_heuristic_astar.py:66–68  ·  view source on GitHub ↗
(p: TPos, goal: TPos)

Source from the content-addressed store, hash-verified

64
65
66def heuristic_2(p: TPos, goal: TPos):
67 # integer division by time variable
68 return consistent_heuristic(p, goal) // t
69
70
71def heuristic_1(p: TPos, goal: TPos):

Callers

nothing calls this directly

Calls 1

consistent_heuristicFunction · 0.85

Tested by

no test coverage detected