The diameter of the graph G is given as:
diam(G)=u,v∈Vmaxd(u,v)=30 Let r be the root vertex chosen to start the Breadth-First Search (BFS). In a BFS tree T rooted at r, the depth (level) of any vertex v corresponds to the shortest path distance from r to v, i.e., d(r,v).
The height of the BFS tree T is the maximum distance from the root r to any vertex in the graph:
h(T)=v∈Vmaxd(r,v) By the triangle inequality for shortest path distances in an undirected graph, for any pair of vertices u,v∈V:
d(u,v)≤d(u,r)+d(r,v) Since d(u,r)≤h(T) and d(r,v)≤h(T), we have:
d(u,v)≤2h(T) Taking the maximum over all pairs (u,v):
diam(G)≤2h(T)⟹30≤2h(T)⟹h(T)≥15 Depending on the choice of the root r, the height h(T) can range from ⌈30/2⌉=15 (if r is a central vertex) up to 30 (if r is an eccentric peripheral vertex). Thus, the height of T is always at least 15.
Hence, option C is correct.