Content deleted Content added
→The algorithm in pseudocode: This should make more sense. |
→Remarks: Obvious with the algorithm change. |
||
Line 40:
#Complexity: The tarjan procedure is called once for each node; the forall statement considers each edge at most twice. The algorithm's running time is therefore linear in the number of edges in G (O(|V|+|E|)).
#The test for whether v' is on the stack should be done in constant time, for example, by testing a flag stored on each node that indicates whether it is on the stack.
== Literature ==
|