Graph Algorithms

Answer & solution
Official answer: C
Approach: A BFS tree preserves distance from its root; relate those root distances to two diameter endpoints.
Let r be the BFS root and let h=maxv d(r,v), the tree height. Choose u,v with d(u,v)=30. A route from u to r and then from r to v has length d(u,r)+d(r,v), so the shortest u-to-v path obeys 30≤d(u,r)+d(r,v)≤h+h=2h. Therefore h≥15, giving C.
Also h≤30 because no pair of vertices is farther apart than the diameter. The actual height depends on the chosen root, so neither exact value in A or B is guaranteed. A path of length 30 rooted at its centre has height 15, while rooting at an endpoint gives height 30. To meet the 100-vertex requirement, attach 69 extra leaves at the central vertex; the diameter remains 30 and the same two heights remain possible.
Thus D’s stronger lower bound 30 is false. BFS preserves root distances, but it does not necessarily choose a central root.