logo

Question detail

Which statement is generally true when comparing adjacency lists with adjacency matrices?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Graphs

Exam-style question

Try this first

Which statement is generally true when comparing adjacency lists with adjacency matrices?.

  1. A.An adjacency list records each vertex and the vertices connected to it
  2. B.An adjacency list must contain a row and column for every pair of vertices
  3. C.An adjacency matrix cannot represent an undirected graph
  4. D.An adjacency matrix can represent only weighted graphs

Model answer

What a good answer should say

  • An adjacency list records each vertex and the vertices connected to it

Explanation

Why this works

An adjacency list stores each vertex together with its connected vertices. An adjacency matrix instead uses a table of vertex pairs.

Both can represent directed, undirected, weighted, or unweighted graphs when suitable entries are used.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.