Exam-style question
Try this first
Which representation uses a two-dimensional table in which rows and columns represent vertices?.
- A.An adjacency matrix
- B.An adjacency list
- C.A weighted vertex
- D.A directed node
Answer and explanation
Concise answer
An adjacency matrix
Why this is correct
An adjacency matrix uses rows and columns for vertices. An entry indicates whether a connection exists, and may hold a weight when appropriate.
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.
