Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does the entry A[i][j] represent in an adjacency matrix?
Remember the definition of adjacency matrix.
Is the adjacency matrix symmetric for undirected graphs? Why?
Think about how the edges are defined.
In an adjacency matrix, what does a value of 1 mean?
Think about the purpose of the matrix.
True or False: An adjacency matrix is always symmetric.
Reflect on what it means for edges to connect vertices.
You have 8 vertices in a graph and 6 edges connecting them. Describe how you would create an adjacency matrix and what values you expect.
Visualize the connections between vertices to fill in the relevant edges.
Design an algorithm to find if a path exists between two vertices using the adjacency matrix representation. What steps would you include?
Think about how breadth-first search would traverse neighbors in the matrix.
5 more questions in this section. Enroll free to practise them all.
Enroll free