Fundamentals of Algorithms
Question #29
Read the question, compare the options, and review the correct answer below.
CS502 · Final-term only#29
What is generally true of Adjacency List and Adjacency Matrix representations of graphs?
- A
? Lists require less space than matrices but take longer to find the weight of an edge (v1,v2)
- B
? Lists require less space than matrices and they are faster to find the weight of an edge (v1,v2)
- C
? Lists require more space than matrices and they take longer to find the weight of an edge (v1,v2)
- D
? Lists require more space than matrices but are faster to find the weight of an edge (v1,v2)
Show correct answer
Correct answer: A. ? Lists require less space than matrices but take longer to find the weight of an edge (v1,v2)
Check community answers against your course notes.