Question 24Asked in Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)

Which graph representation is more memory-efficient for sparse graphs?विरल रेखांकन के लिए कौन सा ग्राफ प्रतिनिधित्व अधिक मेमोरी-कुशल है?

विरल रेखांकन के लिए कौन सा ग्राफ प्रतिनिधित्व अधिक मेमोरी-कुशल है?
  1. AAdjacency matrixआसन्न मैट्रिक्स
  2. BAdjacency listआसन्न सूची
  3. CEdge listएज लिस्ट
  4. DIncidence matrixघटना मैट्रिक्स
Show answerHide answer

Correct answer: (B) Adjacency listआसन्न सूची

Explanation

An adjacency list stores only the edges that exist, using O(V + E) space. An adjacency matrix always uses O(V²) space, which is wasteful when a sparse graph has few edges.Adjacency list केवल मौजूद किनारे संग्रहीत करती है और O(V + E) स्थान लेती है। Adjacency matrix हमेशा O(V²) स्थान लेती है, जो तब बर्बादी है जब विरल (sparse) ग्राफ में कम किनारे हों।

From Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM)

This is question 24 of Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.