Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
Define an adjacency matrix.
Think about how we can visualize connections between vertices.
What does BFS stand for?
Focus on how the algorithm explores vertices.
What indicates the presence of an edge in an adjacency matrix?
Think about how we mark connections in the matrix.
True or False: Breadth-First Search can be used to find the longest path in a graph.
Remember what BFS accomplishes regarding paths.
Given a complex graph with nodes and edges listed, create an adjacency matrix representation of this graph.
Carefully map each node's edges to the matrix.
Implement BFS for a given adjacency matrix in pseudocode and explain how you would track the path taken.
Focus on how you enqueue nodes and mark their visited status.
6 more questions in this section. Enroll free to practise them all.
Enroll free