On the plane, there are points, no three of which lie on the same line. Prove that they can be labeled in such an order that the closed broken line is non-self-intersecting.
Problem 1177
Official solution
Connect the points with a closed broken line in some order, and then, if there are self-intersections, replace the pair of intersecting segments with a pair of non-intersecting segments.
## Solution
Let the points be denoted as in some arbitrary order. If the closed broken line has no self-intersections, then the condition of the problem is satisfied. Suppose there are two intersecting segments, for definiteness, let these be the segments and . Replace this pair of segments with the segments and . Thus, we obtain a new closed broken line , connecting the given points in a different order. Since the segments and intersect, the points form a convex quadrilateral. In a convex quadrilateral, the sum of the lengths of the diagonals is greater than the sum of the lengths of a pair of opposite sides, so . This means that the perimeter of the closed broken line decreases when the described replacement of segments is performed. We perform similar segment replacements in the broken line until it is no longer possible, during which the perimeter of the broken line decreases. This process cannot continue indefinitely, as the number of ways to order points is finite. In the end, we will
arrive at a closed broken line without self-intersections (otherwise, we could make another segment replacement and further reduce the perimeter of the broken line).