An articulation point (or cut vertex) is a vertex in a graph that, if removed along with its edges, increases the number of connected components in the graph.
Click to reveal answer
intermediate
Which algorithm is commonly used to find articulation points in a graph?
Tarjan's algorithm uses Depth First Search (DFS) along with discovery and low times to find articulation points efficiently.
Click to reveal answer
intermediate
In Tarjan's algorithm, what does the 'low' value represent for a vertex?
The 'low' value of a vertex is the earliest discovery time reachable from that vertex or its descendants by following DFS tree edges and back edges.
Click to reveal answer
intermediate
Why is the root of the DFS tree a special case when finding articulation points?
The root is an articulation point only if it has two or more children in the DFS tree because removing it would disconnect those children.
Click to reveal answer
intermediate
What is the time complexity of finding articulation points using Tarjan's algorithm?
The time complexity is O(V + E), where V is the number of vertices and E is the number of edges, because it uses a single DFS traversal.
Click to reveal answer
What happens if you remove an articulation point from a connected graph?
AThe graph becomes disconnected
BThe graph remains connected
CThe graph becomes a tree
DThe graph loses all edges
✗ Incorrect
Removing an articulation point increases the number of connected components, making the graph disconnected.
In Tarjan's algorithm, what does a back edge indicate?
AAn edge to a sibling in DFS tree
BAn edge to a descendant in DFS tree
CAn edge to an ancestor in DFS tree
DAn edge to a disconnected vertex
✗ Incorrect
A back edge connects a vertex to one of its ancestors in the DFS tree, helping update low values.
Which condition identifies a non-root vertex as an articulation point in Tarjan's algorithm?
AIf it has no children
BIf it is the last vertex visited
CIf it has a child with low[child] < discovery[vertex]
DIf it has a child with low[child] >= discovery[vertex]
✗ Incorrect
If a child cannot reach an ancestor of the vertex, removing the vertex disconnects the child subtree.
What data structure is primarily used in Tarjan's algorithm to find articulation points?
ADepth First Search recursion
BQueue
CStack
DPriority Queue
✗ Incorrect
Tarjan's algorithm uses DFS recursion to explore vertices and compute discovery and low times.
How many times is each vertex visited in Tarjan's algorithm?
ANever
BOnce
CMultiple times depending on edges
DTwice
✗ Incorrect
Each vertex is visited once during the DFS traversal, making the algorithm efficient.
Explain how Tarjan's algorithm finds articulation points in a graph.
Think about how DFS explores and tracks earliest reachable vertices.
You got /5 concepts.
Describe why removing an articulation point increases the number of connected components in a graph.
Consider the graph as a network of roads and articulation points as bridges.
You got /4 concepts.
Practice
(1/5)
1. What is an articulation point in a graph?
easy
A. A vertex that forms a cycle with other vertices
B. A vertex with the highest degree in the graph
C. A vertex that has no edges connected to it
D. A vertex that, when removed, increases the number of connected components
Solution
Step 1: Understand the definition of articulation point
An articulation point is a vertex that, if removed, breaks the graph into more pieces (connected components).
Step 2: Compare options with definition
Only A vertex that, when removed, increases the number of connected components matches this definition exactly.
Final Answer:
A vertex that, when removed, increases the number of connected components -> Option D
Quick Check:
Articulation point = vertex increasing components when removed [OK]
Hint: Articulation point splits graph if removed [OK]
Common Mistakes:
Confusing articulation point with highest degree vertex
Thinking articulation point is a vertex with no edges
Mixing articulation point with cycle formation
2. Which of the following is the correct C# method signature to find articulation points in a graph represented as adjacency list?
easy
A. public void FindArticulationPoints(List<int>[] graph, int vertices)
B. public int FindArticulationPoints(int[][] graph)
C. public bool FindArticulationPoints(Dictionary graph)
D. public void FindArticulationPoints(int[] graph, int vertices)
Solution
Step 1: Identify common graph representation in C#
Adjacency list is often represented as List<int>[] for vertices count known.
Step 2: Check method signature compatibility
public void FindArticulationPoints(List<int>[] graph, int vertices) uses List<int>[] and vertices count, suitable for articulation point algorithm.
Final Answer:
public void FindArticulationPoints(List<int>[] graph, int vertices) -> Option A
Quick Check:
Adjacency list with vertex count = correct signature [OK]
Hint: Use List<int>[] and vertex count for adjacency list [OK]
Common Mistakes:
Using 2D array instead of adjacency list
Returning int or bool instead of void
Using Dictionary without vertex count parameter
3. Given the following graph edges: 0 - 1, 1 - 2, 2 - 0, 1 - 3 Which vertex is an articulation point?
medium
A. Vertex 0
B. Vertex 3
C. Vertex 1
D. Vertex 2
Solution
Step 1: Visualize the graph connections
Vertices 0,1,2 form a triangle (cycle). Vertex 3 connects only to 1.
Step 2: Identify articulation points
Removing vertex 1 disconnects vertex 3 from the rest, increasing components. Others do not disconnect graph.
Final Answer:
Vertex 1 -> Option C
Quick Check:
Removing vertex 1 splits graph = articulation point [OK]
Hint: Check if removing vertex disconnects graph [OK]
Common Mistakes:
Assuming all vertices in cycle are articulation points
Ignoring leaf vertex connections
Confusing vertex numbers
4. Consider this C# code snippet to find articulation points:
void DFS(int u, int parent) {
visited[u] = true;
disc[u] = low[u] = time++;
int children = 0;
foreach(var v in graph[u]) {
if (!visited[v]) {
children++;
DFS(v, u);
low[u] = Math.Min(low[u], low[v]);
if (parent != -1 && low[v] >= disc[u])
articulation[u] = true;
} else if (v != parent) {
low[u] = Math.Min(low[u], disc[v]);
}
}
if (parent == -1 && children > 1)
articulation[u] = true;
}
What is the bug in this code?
medium
A. The condition 'low[v] >= disc[u]' should be 'low[v] > disc[u]'
B. The variable 'time' is not initialized or incremented properly
C. The check 'v != parent' is incorrect and should be removed
D. The articulation array should be reset inside DFS
Solution
Step 1: Analyze usage of 'time' variable
'time' is used to assign discovery times but code snippet does not show initialization or global declaration.
Step 2: Check other conditions
Conditions and logic for articulation points are correct; 'time' must be properly initialized and incremented outside DFS.
Final Answer:
The variable 'time' is not initialized or incremented properly -> Option B
Quick Check:
Uninitialized 'time' breaks discovery time tracking [OK]
Hint: Initialize and increment 'time' outside DFS [OK]