What is the space complexity of the adjacency matrix representation of a graph…

What is the space complexity of the adjacency matrix representation of a graph with V vertices?

  1. A.

    O(V)

  2. B.

    O(V + E)

  3. C.

    O(V^2)

  4. D.

    O(E)

Attempted by 703 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…