Content deleted Content added
→Algorithm Fixed: Fixed formatting |
|||
Line 110:
Ok, I worked on it!!
In my opinion the pseudocode is wrong. The right order when calling Tarjan is:
v.index = index;▼
index = index + 1;▼
v.lowindex = index;▼
▲ v.index = index;
then the law to update v.lowindex is ▼
▲ index = index + 1;
v.lowindex <- min(v'.lowindex, v'.index, v.lowindex);▼
▲ v.lowindex = index;
▲ v.lowindex <- min(v'.lowindex, v'.index, v.lowindex);
What you have as result is that
I hope my modifications respect the original Tarjan algorithm,
|