Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a connected component in a graph?
Think about the paths between vertices.
Which algorithm would you use to find connected components?
These are fundamental algorithms for graph traversal.
What defines a connected component?
Think about the connections in a cluster of vertices.
True or False: A tree graph is always a connected graph.
Recall the definition of a tree.
Given a graph represented by an adjacency list, determine the connected components and count them.
Keep an array for visited nodes.
Design a directed graph with vertices and edges that ensure it has at least one strongly connected component but also some non-strongly connected nodes.
Think about how cycles permit bidirectional reach.
4 more questions in this section. Enroll free to practise them all.
Enroll free