If is the forest with vertices and connected components, how many edges does have?
View worked solution
Answer: C
A forest is an acyclic graph where each connected component is a tree.
Let the forest have connected components, denoted by . Let be the number of vertices in the component for .
Since the components partition the vertex set of , the total number of vertices is:
Since each component is a tree, the number of edges in is . Therefore, the total number of edges in the forest is the sum of the edges in all components:
Thus, the forest has edges.
Hence, the correct option is C.
Free practice · Your answers on this page are not saved.
