Biggest distance between any two points in a convex hull?

Started by
9 comments, last by Excors 17 years, 2 months ago
Any idea how to calculate the biggest distance between any two points in a convex hull in time smaller than O(n^2) (if yes -> please explain the idea)? Thanks in advance!
Advertisement
And this is not a homework... because you need it for... what, exactly? [smile]
If the convex hull is 2d, then rotating calipers.
Quote:Original post by deffer
And this is not a homework... because you need it for... what, exactly? [smile]


I would guess he wants to create a bounding circle for the collection of points (the line connecting the two furthest-apart points on the hull would be a diameter of the circle).
Quote:Original post by Zahlman
I would guess he wants to create a bounding circle for the collection of points (the line connecting the two furthest-apart points on the hull would be a diameter of the circle).


I dont think that this assumption will hold.



A possible use for 'Swarm Intelligence' type solution using adjacency information of edges and vertices and using distance from other discobered extremity points as the criteria ????

Maybe an A* network search implemention ???
--------------------------------------------[size="1"]Ratings are Opinion, not Fact
Quote:Original post by Zahlman
I would guess he wants to create a bounding circle for the collection of points (the line connecting the two furthest-apart points on the hull would be a diameter of the circle).


I'm being suspicious, since it's a common algorithmic problem on my Uni.

Quote:Original post by Anonymous Poster
I dont think that this assumption will hold.


True, take an equilateral triangle, for example.
Thanks for all your replies. I'll check the rotating calipers. And I don't need this for homework, just been doing some exercises for myself and this problem arose (and I'm too young for Uni anyways)...
Quote:Original post by Anonymous Poster
Quote:Original post by Zahlman
I would guess he wants to create a bounding circle for the collection of points (the line connecting the two furthest-apart points on the hull would be a diameter of the circle).

I dont think that this assumption will hold.
Indeed, that's bollocks. Consider e.g. an equilateral triangle for the counterexample.

Quote:Original post by Christer Ericson
Quote:Original post by Anonymous Poster
Quote:Original post by Zahlman
I would guess he wants to create a bounding circle for the collection of points (the line connecting the two furthest-apart points on the hull would be a diameter of the circle).

I dont think that this assumption will hold.
Indeed, that's bollocks. Consider e.g. an equilateral triangle for the counterexample.
I would have guessed the same thing as Zahlman. Even though I knew already that it wouldn't work, it is very likely that the original poster might think it would work.
If he had come back and said that that was what he was doing, then we would break the news to him at that moment.
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms

This topic is closed to new replies.

Advertisement