Hacker News new | ask | show | jobs
by Ansil849 1589 days ago
> Not quite, you'd get the maximum distance from the extreme end of one territory to the nearest point of the other.

But which country do you pick the extreme edge of, and which country do you pick the nearest point of? For example, if measuring US<->Canada, do you pick the extreme end of Canada or the extreme end of the US?

1 comments

You pick whatever gives you the largest distance.

For every point in both territories, find the closest point in the other territory. From these pairs of points, find the pair with the largest distance. That distance is your Hausdorff distance.