So if we let $F = (V,E)$ be a forest with $n$ vertices and $k$ connected components (trees), how can I prove that the number of edges in $F = n - k$ ?
I was thinking of using induction, but I'm super lost. Can anyone guide me through this step by step? Would really appreciate it, thanks!
We note a tree $T$ with $n$ vertices has $n-1$ edges. So let $F = \bigcup_{i=1}^{k} T_{i}$ be the forest- a union of trees. Let $n_{i}$ be the number of vertices in each tree. So we have:
$|V(F)| = \sum_{i=1}^{k} n_{i} = n$
Since each component of the forest is a tree, we have $n_{i} - 1$ edges for $T_{i}$, giving us:
$|E(F)| = \sum_{i=1}^{k} (n_{i} - 1) = n - k$.