Question #222054
Hence show that the maximum number of edges in a disconnected graph of n vertices and k components
is (n-k)(n-k+1)/2.
1
Expert's answer
2021-08-11T19:08:00-0400

Let n1,n2,,nkn_1, n_2,\dots,n_k denote the number of vertices in each of kk components of the graph.

Then the ii-th component contains not more than ni(ni1)/2n_i(n_i-1)/2 edges. We can add more edges to make a complete subgraph from each of the components. Then each of the components will contain exactly ni(ni1)/2n_i(n_i-1)/2 edges.

If ninj>0n_i\geq n_j>0, then we can take a vertex from the j-th component, deleting nj1n_j-1 edges, and add this vertex to the i-th component, connecting it with other vertices by ni>nj1n_i>n_j-1 edges.

By acting in this way, we can accumulate the maximum number of vertices, nk+1n-k+1, in one component with all possible edges, whereas all other components consist of one vertex without any edges. Then we obtain a graph with k components, having the maximum possible number of edges. This number equals to (nk)(nk+1)/2(n-k)(n-k+1)/2.

Therefore, for the general simple graph with nn vertices and kk components, the total number of edges does not exceed (nk)(nk+1)/2(n-k)(n-k+1)/2.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS