Replace breadth-first search by Dijkstra's algorithm from , using the positive edge weights to compute . The strongly connected components, the condensation graph and the reverse-topological order propagation are unchanged, because reachability ignores weights. Only the label assigned to a reachable vertex changes.
With a binary heap, the total time is , including the linear component-processing stages. More specialized priority queues give their corresponding shortest-path bounds. The proof still compares the precomputed distances from ; it must not add the weight of a path from to the candidate, which would optimize a different quantity.
Shortest-path distance 2026-10-31
The infimum of total edge weights over allowed walks from a source to a target. The value is when no route exists. A negative cycle reachable from the source and able to reach the target makes it . In a finite graph without such a cycle, a finite distance is attained by a graph path, after removing non-improving repetitions.
Valiant's permanent reduction Created 2026-09-28 Updated 2026-11-05
Variable tracks enforce consistent truth values, clause interchanges enforce satisfaction, and signed junctions cancel invalid boundary choices. The original construction gives
where is twice the number of literal occurrences minus the number of clauses. Arithmetic recovers the predictable factor. The correspondence is between assignments and weighted groups of covers, rather than individual covers. Further transformations yield zero-one matrices.[ref]
Widest path problem 2026-10-31
Find a graph path whose least edge weight is as large as possible. In a connected undirected graph, use the unique route in a maximum spanning tree. Deleting a least-weight edge on that route gives a separating cut of a graph; a heavier crossing edge would improve the tree's total weight, so every competing route contains an edge no heavier than the deleted one. This proves the bottleneck optimum without assuming distinct weights.