Data Structures & AlgorithmsModerateProduct-company placement

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

  1. A. 67
  2. B. 12
  3. C. 66
  4. D. 40

Correct answer: A. 67

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

More Trees, Graphs, Recursion and Dynamic Programming questions

Exams that ask this topic