pub enum DcAlgorithm {
Morris2014,
RulMinus,
Rul2021,
PerLabelBackprop,
}Expand description
Which dynamic-controllability checker Stnu::check_controllability_with runs.
All of them decide the same question under the same (instantaneous-reaction) semantics; they differ in cost and serve as cross-checks for each other.
Variants§
Morris2014
Morris (2014): backpropagation from negative nodes, one propagation per node, explains negative verdicts itself.
Time O(n m + n^3) for n points, k links and m requirement bounds, i.e. Morris’s
O(n^3) when m = O(n^2). Proof sketch: in Morris’s normal form there are
n' = n + k <= 2n nodes; each runs at most one backward Dijkstra; a linear-scan
extract-min makes that O(n'^2) plus one scan of each node’s incoming edges; derived
edges are non-negative and at most one per (node, source) pair, so all incoming lists
together hold O(m + n'^2) edges, each scanned at its final length because a node’s
own propagation (the only one adding edges into it) finishes before anyone extends
through it. Explaining a negative verdict adds O(n^3) for the compact cycle (see
SemiReducibleCycle).
RulMinus
RUL⁻ (Cairo, Hunsberger and Rizzi 2018): backpropagation from contingent points with a
potential function, at most 2k rounds, O(n m + k (m + k n) log n). Fastest on
sparse networks with few links.
Rul2021
RUL2021 (Hunsberger and Posenato, AAAI 2022): RUL⁻ processing each upper-case edge once, recursively, inserting only length-preserving edges and checking non-negative loops by a forward propagation instead. Same bound as RUL⁻, much less work in practice.
PerLabelBackprop
Morris-style backpropagation without the normal form: one propagation per kind of
negative incoming edge, O(n (k + 1) (m + n^2) log n). Kept as an independent
cross-check.