Does anyone know, what heuristic function is used in a*?
May i change that heuristic in a* ? and how i change it?
Here some heuristic, Euclidean distance, Manhattan distance, Maximum distance
Thanks :)
|
Does anyone know, what heuristic function is used in a*? May i change that heuristic in a* ? and how i change it? Here some heuristic, Euclidean distance, Manhattan distance, Maximum distance Thanks :) |
||||
|
|
|
If you are talking about pgRouting, by default I think it is (|dx|+|dy|)/2 . See the source code in the link: You can easily change the heuristic function but then you would probably have to recompile the pgRouting. |
|||||||||
|