logo

AQA A-Level Computer Science practice

Compare an adjacency matrix and an adjacency list as ways of representing the same graph. State how each representation records connections and give a situation in which one may be more suitable than the other.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Graphs

Exam-style question

Try this first

Compare an adjacency matrix and an adjacency list as ways of representing the same graph. State how each representation records connections and give a situation in which one may be more suitable than the other.

Answer and explanation

Concise answer

An adjacency matrix is a two-dimensional table with a row and column for each vertex.

Why this is correct

A strong comparison describes the structure of both representations and links their suitability to the number of connections. It should not claim that either representation is universally best.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions