There are n islands, with known coordinates. Let's start with three points, at (0,0), (4,0) and (0,3). The islanders want a network of bridges that allows people to go from any island to any other island, and want to minimize the amount of construction.
What is the least length of bridge material that suffices for the task?
Find the center of the triangle. Three roads that go from each node and meet in the center.
I don't think that can be generalized to n nodes though.
Removed
Joined
10 Dec '06
Moves
8528
19 Oct '13 01:06>
Originally posted by AThousandYoung Find the center of the triangle. Three roads that go from each node and meet in the center.
I don't think that can be generalized to n nodes though.
The center of the configuration doesn't exist in this case, it is not one of the "n" (in this case 3 Islands). Also, a bridge from the center of the triangle to each vertex is not the minimum material. In the case of the three points, the minimum material that connects all three islands would be 7 units; i.e. a bridge from (0,0) to (0,4) and from (0,0) to (3,0).
The original was meant to say that this problem can be of course expanded to any number of points and any locations. Ideal would be a generic solution, but it's a bit hard to picture, so a few points it is for now.
If all points are connected to some point (x,y), whether it be (0,0) or some other point, the total length of the network would be
Originally posted by joe shmo The center of the configuration doesn't exist in this case, it is not one of the "n" (in this case 3 Islands). Also, a bridge from the center of the triangle to each vertex is not the minimum material. In the case of the three points, the minimum material that connects all three islands would be 7 units; i.e. a bridge from (0,0) to (0,4) and from (0,0) to (3,0).
That would not allow (0,4) to go directly to (3,0). Of course if you can go through the other points a single road is the optimal solution.
"Not by going through another island"
You could make a tiny road circling around (0,0) at an infinitesimal distance to avoid going actually through that point, and it would not noticeably add to the amount of bridge building. For simplicity, let's say going through another island is permissible.
"Geometric median"
I may have misunderstood you (sorry!) but if you meant the point that is as far from each of the three islands, it would be (2,1½ ), which is 2.5 units of length from each island, for a total bridge network length of 3 x 2.5 = 7.5, giving a total bridge network length that is longer than connecting the other two islands to (0,0) ?
x / Sqrt[x² + y²] + (x-4) / Sqrt[(x-4)² + y²] + x / Sqrt[x² + (y-3)²] = 0
y / Sqrt[x² + y²] + (y-3) / Sqrt[x² + (y-3)²] + y / Sqrt[(x-4)² + y²] = 0
Doable with good software for sure, and if L ~ height of a point on a surface it would look quite beautiful. Looks far from trivial from this point on though?
Originally posted by talzamir "Not by going through another island"
You could make a tiny road circling around (0,0) at an infinitesimal distance to avoid going actually through that point, and it would not noticeably add to the amount of bridge building. For simplicity, let's say going through another island is permissible.
"Geometric median"
I may have misunderstood you (sorry!) ...[text shortened]... nt on a surface it would look quite beautiful. Looks far from trivial from this point on though?
But isn't it just a 3,4,5 triangle? So 5 plus half of 5? 7.5? Hypotenuse line plus a line halfway across the hypotenuse to 0,0?
With the triangle
(0,0), (4,0) and (0,3)
The point
0.75, 0.7 is interesting
distance from 0,0 = 1.03
distance from 4,0 = 3.38
distance from 0,3 = 2.36
total material needed = 1.03 + 3.38 + 2.36 = 6.77
so, although this is not the absolute best point it shows we can obviously do quite a bit better than building straight roads from 0,0 to the other two points (which takes 7 units)
Removed
Joined
10 Dec '06
Moves
8528
22 Oct '13 00:21>
Originally posted by talzamir "Not by going through another island"
You could make a tiny road circling around (0,0) at an infinitesimal distance to avoid going actually through that point, and it would not noticeably add to the amount of bridge building. For simplicity, let's say going through another island is permissible.
"Geometric median"
I may have misunderstood you (sorry!) ...[text shortened]... nt on a surface it would look quite beautiful. Looks far from trivial from this point on though?
Yeah I agree, its certainly not trivial to apply that method from this point on. However, I suppose the result would be the "Geometric Median" as Imatiger purposed (or the Fermat point in this case) which Wiki claims no explicit formula for its calculation exists.