Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

How many edges are there in a forest of \({\bf{t}}\) trees containing a total of \({\bf{n}}\) vertices?

Short Answer

Expert verified

The forest contains n-t edges.

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Definition

A tree is an undirected graph that is connected and that does not contain any simple circuits.

A forest is a group of trees that are not connected with each other.

Theorem 2 A tree with n vertices has n-1 edges.

02

Finding the total of all vertices

Given: A forest of t trees containing a total of n vertices.

Let us assume that tree i contains \({n_i}\) vertices. The total of all vertices has to be equal to n vertices.

\({n_1} + {n_2} + \ldots + {n_t} = n\).

03

Using the tree theorem

By theorem tree \({\bf{i}}\) with \({n_i}\) vertices has \({n_i} - 1\) edges.

The number of edges in the forest is then the sum of the number of edges in each tree.

\(1 + 1 + \ldots + 1\)contains t ones \({n_1} + {n_2} + \ldots + {n_t} = n\)

\(\begin{array}{c}\left( {{n_1} - 1} \right) + \left( {{n_2} - 1} \right) + \ldots + \left( {{n_t} - 1} \right) = \left( {{n_1} + {n_2} + \ldots + {n_t}} \right) - (1 + 1 + \ldots + 1)\\ = \left( {{n_1} + {n_2} + \ldots + {n_t}} \right) - t\\ = n - t\end{array}\)

Thus, we then note that the forest contains \({\bf{n - t}}\) edges.

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free