Data Structures & AlgorithmsModerateProduct-company placement

What is the minimum number of edges m such that EVERY simple undirected graph with 10 vertices and m edges is guaranteed to be connected?

  1. A. 9
  2. B. 36
  3. C. 23
  4. D. 37

Correct answer: D. 37

A disconnected graph can have at most C(9, 2) = 36 edges (K_9 plus an isolated vertex), so 37 edges force connectivity. 9 edges are enough to connect, but they do not guarantee it.

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic