Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Morris 2014 backpropagation

Also known as Morris 2014, DCbackprop, O(n3) dynamic controllability check

validation temporal-control

Morris's 2014 algorithm decides dynamic controllability of a simple temporal network with uncertainty (STNU) in O(n³) time. A negative node is a point with a negative incoming edge. From each negative node, the algorithm runs Dijkstra's algorithm backwards through non-negative edges, and each path that reaches distance zero or more becomes a new ordinary edge. When the search meets another negative node, it processes that node first; if that node is still in progress, the nested paths form a negative cycle and the network is not controllable. temporal-control uses it as its default checker, and its dispatchable variant also keeps the derived edges and waits ("execute only after a delay, unless this duration has ended").

Pseudocode

algorithm Morris-DC(G)input: labelled distance graph G in normal form, each link with its own activation nodeoutput: DC, or not DCfor each negative node s in G do                ▷ a node with a negative incoming edgeif not backprop(s) thenreturn not DC                               ▷ the call stack gives a semi-reducible negative cyclereturn DCfunction backprop(s)if status[s] = active thenreturn false                                  ▷ a cycle of negative pathsif status[s] = done thenreturn truestatus[s] ← activedist[x] ← ∞ for every node x                   ▷ dist and Q are local to this callfor each negative edge (x, s, w) into s dodist[x] ← min(dist[x], w)Q ← nodes with finite dist                      ▷ ordered by dist; extract-min is a linear scanwhile Q ≠ ∅ dou ← extract-min(Q)if dist[u] ≥ 0 thenadd-edge(G, u, s, dist[u])                  ▷ a derived ordinary edge, not extendedcontinueif u is a negative node and not backprop(u) thenreturn falsefor each non-negative edge (v, u, e) into u doif not unsuitable(v, u, s) and dist[u] + e < dist[v] thendist[v] ← dist[u] + e                     ▷ unsuitable: the lower-case edge of s's own labelinsert-or-update(Q, v)status[s] ← donereturn true

In the crates

Lineage

Comes from

builds on Dijkstra's algorithm

Led to

minDispESTNU builds on it

Per-label backpropagation builds on it

Papers

  1. Dynamic Controllability and Dispatchability Relationships Paul Morris · 2014· CPAIOR 2014, Lecture Notes in Computer Science introduces doi 10.1007/978-3-319-07046-9_33
  2. Faster Conflict Generation for Dynamic Controllability Nikhil Bhargava, Tiago Vaquero, Brian Williams · 2017· IJCAI 2017 extends doi 10.24963/ijcai.2017/598