Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Per-label backpropagation

validation temporal-control

Per-label backpropagation decides dynamic controllability of a simple temporal network with uncertainty (STNU) like Morris's 2014 algorithm, but on the network as it is. Morris first rewrites the network so that each node has only one kind of negative incoming edge. This variant skips that step and runs one backward Dijkstra search per kind instead: one for the ordinary edges and one for each upper-case edge, the edge that stands for the longest outcome of an uncertain duration. A search that starts from an upper-case edge ignores the lower-case edge (the shortest outcome) of the same duration, because one duration cannot take both values. It is slower than Morris's form and serves as an independent cross-check.

Pseudocode

algorithm Per-Label-Backprop(G)input: labelled distance graph G of an STNU, not in normal formoutput: DC, or not DCfor each negative node s in G doif not backprop(s) thenreturn not DCreturn DCfunction backprop(s)if status[s] = active thenreturn false                                  ▷ a semi-reducible negative cycleif status[s] = done thenreturn truestatus[s] ← activeif not propagate(s, ordinary negative edges into s, nil) thenreturn falsefor each upper-case edge e into s, labelled c, doif not propagate(s, {e}, c) thenreturn falsestatus[s] ← donereturn truefunction propagate(s, SEEDS, c)dist ← the seed weights by tail, ∞ elsewhereQ ← nodes with finite dist                      ▷ a priority queue on distwhile 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 (v, u) is not the lower-case edge of c and dist[u] + e < dist[v] thendist[v] ← dist[u] + einsert-or-update(Q, v)return true

In the crates

Lineage

Comes from

builds on Morris 2014 backpropagation

Led to

Nothing on this site.