Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

RUL⁻

Also known as RUL-, RUL minus

validation temporal-control

RUL⁻ decides dynamic controllability of a simple temporal network with uncertainty (STNU) with three rules that only add ordinary edges. Each uncertain duration runs from an activation point to a contingent point, which nature sets. One Bellman-Ford pass first computes a potential, a function that lets later Dijkstra searches handle negative edges. Then, for each contingent point, a backward search applies the rules Relax⁻ and Lower⁻, the rule Upper⁻ adds edges into the activation point, and the potential is repaired. If another duration blocks the search, it is processed first, and a cycle of blocks or a potential that cannot be repaired means the network is not controllable; with at most 2k rounds for k durations, it is fast on sparse networks.

Pseudocode

algorithm RUL⁻(G, LINKS)input: LO-graph G (ordinary and lower-case edges), contingent links (A_R, l_R, u_R, R), upper-case edges apartoutput: DC, or not DCh ← bellman-ford-potential(G)if h = failure thenreturn not DC                                 ▷ a negative cycle in the LO-graphU ← all contingent points                       ▷ the unprocessed pointsS ← empty stackwhile U ≠ ∅ doif S is empty thenpush(S, first point of U)R ← top(S)close-relax-lower(G, h, R)                    ▷ backward Dijkstra keyed h(P) + w(P, R); Relax⁻, Lower⁻apply-upper(G, R)                             ▷ Upper⁻: edges into A_R of weight max(v − u_R, −l_R)if not update-potential(G, h, A_R) thenreturn not DCif some R′ in U ∖ {R} has an edge A_R′ → R of weight < u_R − l_R thenif R′ is on S thenreturn not DC                             ▷ a cycle of blocking linkspush(S, R′)                                 ▷ process the blocking link firstelsepop(S)U ← U ∖ {R}return DC

In the crates

Lineage

Comes from

builds on Bellman-Ford

builds on Dijkstra's algorithm

Led to

RUL2021 builds on it

Papers

  1. Faster Dynamic Controllability Checking for Simple Temporal Networks with Uncertainty Massimo Cairo, Luke Hunsberger, Romeo Rizzi · 2018· TIME 2018, LIPIcs 120 introduces