문제출처
광주과학기술원 GIST 최정옥 교수님의 “그래프 이론” 수업, 2024년 가을학기 중 Homework 5
풀이
(a)는 삼각부등식. 이전 풀이 참고.
Proof:
If there is no path a…b or path b…c, then d(a,b) or d(b,c)=∞, so the inequality is trivially satisfied.
Otherwise, there exists a path a…b of length d(a,b) and a path b…c of length d(b,c). We may compose these two paths to form a longer walk a…b…c of length d(a,b)+d(b,c).
However, the distance d(a,c) is the length of the shortest path a…c. Therefore, any walk a…c is equal in length or longer than the shortest path. One such walk is the composition of the paths a…b and b…c, satisfying the inequality:
d(a,c)≤d(a,b)+d(b,c).
Thus, the triangle inequality holds. \qed
Now we prove that diam(G)≤2rad(G).
Proof:
Let a…b be the longest path in G. Then there always exists a vertex c that is a central vertex. By the triangle inequality, we have:
d(a,b)≤d(a,c)+d(c,b).Since a…b is the longest path, d(a,b)=diam(G). Now:
d(a,c)≤max
where the rightmost equality holds because c is central.The same argument holds for d(c, b).
Therefore:
\text{diam}(G) = d(a, b) \leq d(a, c) + d(c, b) \leq \text{rad}(G) + \text{rad}(G) = 2\text{rad}(G). \tag{5}
Thus, \text{diam}(G) \leq 2\text{rad}(G), as required.
\qed