View worked solution
Answer: 36
To find the maximum number of edges in a disconnected simple undirected graph with vertices, we need to partition the vertices into at least two disconnected components such that the sum of the edges in these components is maximized.
Let the graph be partitioned into two components with and vertices, where and . To maximize the edges, each component itself must be a complete graph (clique).
The total number of edges is given by:
To maximize this quadratic sum, the sizes of the components should be as unbalanced as possible. Thus, we choose:
- (a complete graph )
- (an isolated vertex)
Calculating the maximum number of edges:
Any other partition (for example, and ) yields fewer edges:
Therefore, the maximum number of edges the disconnected graph can have is 36.
Free practice · Your answers on this page are not saved.
