One search, two numbers
transcript
A network of a hundred thousand nodes. Which link, if it fails, splits it? Remove each link and search again? That is twenty billion steps.
There are up to a hundred thousand links. Each search costs two hundred thousand steps. That is twenty billion steps in all. Far too slow.
Search the graph once. Record when each node is found. Record the earliest node its subtree reaches.
A triangle with a tail. Nodes one and two reach node zero. Node three reaches only itself. Its low link is above its parent.
Take the low link of the child. Compare it with the parent's discovery time. If low is above, the link is a bridge.
Each node is found once. Each link is looked at twice. That is about three hundred thousand steps.
Search the graph once. Keep two numbers per node. Compare them for every link. Twenty billion becomes a few hundred thousand. Full breakdown in the lecture.