Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Labelled closure

Also known as labelled distance graph closure, Morris-Muscettola closure

validation temporal-control

The labelled closure decides dynamic controllability of a simple temporal network with uncertainty (STNU). An STNU is dynamically controllable when some strategy meets every constraint for all durations that nature picks, while it learns each duration only when it ends. Each uncertain duration (a contingent link) adds a lower-case edge for its shortest outcome and an upper-case edge for its longest one. The algorithm applies five derivation rules to an ordinary distance matrix and an upper-case matrix until nothing changes, and a negative cycle at any round means that the network is not controllable. No bound on the number of rounds is proven, so temporal-control keeps it as a slow reference for its faster checkers.

Pseudocode

algorithm Labelled-Closure(D, W, LINKS)input: ordinary edges D (n × n), upper-case edges W (n × k, W[x][c] is x → A_c labelled c), contingent links (A_c, l_c, u_c, C_c)output: an extended dispatchable network (D, W), or not DCrepeatfloyd-warshall(D)                                  ▷ no-case ruleif D[i][i] < 0 for some i thenreturn not DCfor each x and each link c do                      ▷ upper-case ruleW[x][c] ← min(W[x][c], min over y of D[x][y] + W[y][c])for each link d and each link c ≠ d with W[C_d][c] < 0 doW[A_d][c] ← min(W[A_d][c], l_d + W[C_d][c])      ▷ cross-case rulefor each link d and each y with D[C_d][y] < 0 doD[A_d][y] ← min(D[A_d][y], l_d + D[C_d][y])      ▷ lower-case rulefor each x and each link c with W[x][c] ≥ −l_c doD[x][A_c] ← min(D[x][A_c], W[x][c])              ▷ label removalif D and W read as ordinary edges have a negative cycle thenreturn not DC                                    ▷ all-max projectionuntil no entry of D or W changedreturn (D, W)

In the crates

Lineage

Comes from

builds on Floyd-Warshall

Led to

Nothing on this site.

Papers

  1. Temporal Dynamic Controllability Revisited Paul Morris, Nicola Muscettola · 2005· AAAI 2005 introduces
  2. A Structural Characterization of Temporal Dynamic Controllability Paul Morris · 2006· CP 2006, Lecture Notes in Computer Science analyses doi 10.1007/11889205_28