Complete the code to initialize the discovery time for the current node in Tarjan's algorithm.
disc[u] = [1];In Tarjan's algorithm, the discovery time of a node is set to the current time counter.
Complete the code to update the low time of the current node after visiting a neighbor.
low[u] = Math.min(low[u], [1]);
The low time of the current node is updated with the minimum low time of its neighbors.
Fix the error in the condition that checks if an edge is a bridge.
if (low[[1]] > disc[u]) {
The condition checks if the low time of neighbor v is greater than the discovery time of u, indicating a bridge.
Fill both blanks to correctly skip the parent node during DFS traversal.
if (v == [1]) continue; parent[[2]] = u;
We skip the parent of u to avoid revisiting it, and set the parent of v as u during DFS.
Fill all three blanks to correctly implement the DFS call and update low time after recursion.
dfs([1], [2], disc, low, parent, graph, time); low[u] = Math.min(low[u], [3]);
We call DFS on neighbor v with current node u as parent, then update low[u] with low[v].
