Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 2 iii Solution Created 2026-09-24 Updated 2026-09-25
Membership follows from . A directed graph is not strongly connected exactly when there is a pair for which is not reachable from . Guessing the pair and using the NL procedure for non-reachability puts non-strong-connectivity in NL, hence strong connectivity is in co-NL and therefore in NL.
For NL-hardness, reduce directed reachability. Given , form by retaining all edges of , adding for every vertex , and adding for every vertex . If is reachable from in , then any reaches any in alongConversely, if is strongly connected then reaches . A simple -to- path cannot use an added edge out of before arriving at , and every added edge into merely returns the path to its starting vertex; deleting the resulting cycle leaves an -to- path made from edges of . The construction is computable in logarithmic space, so deciding strong connectivity is