Question:medium

Which of the following statements are correct?
• [A.] An adjacency matrix uses \(O(n^2)\) of the adjacency list is \(O(n + m)\)
• [B.] The adjacency matrix requires \(O(n^2)\) memory
• [C.] In an undirected graph, the sum of lengths of adjacency lists is \(2m\)
• [D.] The memory requirement of adjacency list is dependent on the number of edges in the graph
Choose the correct answer from the options given below:

Show Hint

Adjacency matrix → dense graphs, Adjacency list → sparse graphs.
Updated On: Jun 5, 2026
  • A, B, C only
  • B, C only
  • A, B, D only
  • A, B, C, D
Show Solution

The Correct Option is D

Solution and Explanation

Was this answer helpful?
0


Questions Asked in CUET (PG) exam