The most efficient algorithm for finding the number of connected components in…

GATE · 2008 · CS

The most efficient algorithm for finding the number of connected components in an undirected graph on n vertices and m edges has time complexity

  1. A.

    θ(n)

  2. B.

    θ(m)

  3. C.

    θ(m + n)

  4. D.

    θ(mn)

Attempted by 623 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…