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.
Define a vertex in a graph.
Think of the graph as a collection of points.
What does an undirected edge represent?
Consider how you'd connect cities in a map.
What does an adjacency matrix represent?
It is a structured way of showing connections.
True or False: BFS explores as deep as possible before backtracking.
Think about level versus depth.
Given a graph represented by an adjacency matrix, write a function to determine if there is a path between two vertices.
Focus on exploring each edge systematically.
Design an efficient algorithm using an adjacency list to find all connected components in an undirected graph.
Each time you start a new DFS/BFS from an unvisited vertex, you've found a new component!
4 more questions in this section. Enroll free to practise them all.
Enroll free