Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

P3C

Also known as P³C, partial path consistency

other temporal-control

P³C computes the minimal constraints of a simple temporal network (STN) only for the pairs that matter, not for all n² pairs. It first makes the constraint graph chordal, which means that every cycle of four or more points has a shortcut edge. To do this, it removes the points one by one, the one with the fewest neighbours first, and links the remaining neighbours of each removed point; it also tightens each such pair through the removed point (directional path consistency). A second pass in reverse order then gives every edge of the chordal graph its exact shortest-path distance, the same bound as the full minimal network. Use it on large sparse networks, and add a constraint without bounds for each extra pair that you need.

Pseudocode

algorithm P³C(V, w)input: time points V, weights w(i, j) of the constraint graph (∞ where absent)output: the minimal weights on every edge of a chordal supergraph, or inconsistentORDER ← ⟨⟩while V ≠ ∅ dok ← node of V with the fewest neighbours in V    ▷ minimum degree, lowest index on tiesN[k] ← neighbours of k in Vfor each ordered pair (i, j) of distinct nodes in N[k] doadd-fill-edge(i, j)                            ▷ only where the pair has no edgew(i, j) ← min(w(i, j), w(i, k) + w(k, j))      ▷ directional path consistencyfor each i in N[k] doif w(i, k) + w(k, i) < 0 thenreturn inconsistentV ← V ∖ {k}append(ORDER, k)for each k in reverse(ORDER) do                    ▷ backward sweepfor each ordered pair (i, j) of distinct nodes in N[k] dow(i, k) ← min(w(i, k), w(i, j) + w(j, k))w(k, j) ← min(w(k, j), w(k, i) + w(i, j))return w

In the crates

Lineage

Comes from

builds on Directional path consistency (Dechter, Meiri and Pearl 1991)

Led to

Nothing on this site.

Papers

  1. P³C: A New Algorithm for the Simple Temporal Problem Léon Planken, Mathijs de Weerdt, Roman van der Krogt · 2008· ICAPS 2008 introduces