1
$\begingroup$

Given a graph G=(V,E) where the weights on my edges are inverse of Euclidian distance between nodes, I want to know if I can use A* algorithm to find the shortest path. How I need to modify the heuristic to make it admissible?

$\endgroup$
1
  • 1
    $\begingroup$ Given just two vertices you can't lower-bound the shortest path length between them more tightly than zero, because there could be a two-step route through a point nearly at infinity. It reduces to Dijkstra's algorithm. $\endgroup$ Commented Aug 3, 2023 at 17:32

1 Answer 1

2
$\begingroup$

The essential difference is that improvements to a shortest known connection between start and destination will most likely lead over intermediate points that lie outside a region that is not quite an ellipse as can be seen from the illustration:

enter image description here

$\endgroup$
2
  • $\begingroup$ Thank you for the response. Does this prove that there is no heuristic for this? $\endgroup$ Commented Aug 4, 2023 at 7:52
  • $\begingroup$ @user2512443 that observation doesn't disprove the existence of a heuristic, but keep in mind that for metric distances as edge weights the weight of the edge connecting start and end of a path is always a lower bound for the pathlength. For reciprocal metrics as edgeweights that is no longer the case, Paths that run outside the depicted region could consist of many segments with short euclidean length and thus with arbirary high sum of reciprocal lengths sum, demonstrating that no reliable means for bouding path lengths from above exist. $\endgroup$ Commented Aug 4, 2023 at 14:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .