Computer Science EngineeringHard

A directed acyclic graph has n vertices. How many strongly connected components does it have?

  1. A. n
  2. B. 1
  3. C. n - 1
  4. D. 0

Correct answer: A. n

With no cycles, no two distinct vertices are mutually reachable, so each vertex forms its own component.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic