Skip to main content
OlympiadHQ

Browse · MathNet

Print

37th Iranian Mathematical Olympiad

Iran counting and probability

Problem

A weighted complete graph with distinct positive weights is given such that every triangle is degenerate, i.e., the weight of one of the edges is equal to the sum of the two others. Prove that one can assign values to the vertices of this graph such that the weight of each edge is equal to the difference between the values assigned to its endpoints.
Solution
Let be the weight assigned to the edge of the graph. Clearly, in each triangle the maximum weight of an edge is the sum of the two others. Let be the maximum weight among all weights assigned to the edges. Now assign to vertex and to any other vertex . Obviously, this labeling works for all edges including . We claim that it works for all other edges.

Assume to the contrary that the labeling doesn't work for an edge of the graph. So is not the difference between and , which means . Note that cannot be any of . Since is the maximum edge number, we have and . Now consider triangle . If is the maximum weight of an edge in this triangle, we have Which is impossible since the weights are distinct. So the maximum edge weight in triangle is not . Without loss of generality, assume that is the maximum one. So we have Which is again a contradiction. This completes the proof. ■

Techniques

Graph Theory