Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Maximum-leaves factoring

Also known as independent-set factoring, max leaves

other decoupled-search

A factoring splits the variables of a planning task into a center and leaves for decoupled search. The maximum-leaves strategy seeds one leaf per variable of a maximum independent set of the causal graph (an arc from u to v when some operator reads or writes u and writes v): a largest set of variables with no arc between any two. It grows the leaves by center variables that touch exactly one leaf, drops frozen leaves, and grows again; a leaf is frozen if it has no leaf action, an operator that changes only that leaf and reads only it and the center. It keeps the result with the most mobile (not frozen) leaves over the independent sets it enumerates. The result is always a strict star, where no arc connects two leaves.

Pseudocode

algorithm max-leaves(Π)input: planning task Πoutput: a strict-star factoring with the most mobile leaves foundG ← causal-graph(Π)best ← nilfor each I in maximum-independent-sets(G) do  ▷ up to 16, within a work budgetLEAVES ← { {v} : v ∈ I }LEAVES ← maximize-flexibility(LEAVES)LEAVES ← { L ∈ LEAVES : L is mobile }  ▷ drop frozen leavesLEAVES ← maximize-flexibility(LEAVES)if best = nil or mobile(LEAVES) > mobile(best) thenbest ← LEAVESreturn (variables not in best, best)function maximize-flexibility(LEAVES)best ← LEAVESrepeatnext ← best-extension(LEAVES)          ▷ move one center variable adjacent to exactly one leaf into it, within 2^16 states; most mobile leaves winsif next ≠ nil thenLEAVES ← nextif mobile(LEAVES) ≥ mobile(best) thenbest ← LEAVES                      ▷ on ties the later round, with larger leavesuntil next = nilreturn best

In the crates

Papers

  1. Beyond Forks: Finding and Ranking Star Factorings for Decoupled Search Daniel Gnad, Valerie Poser, Jörg Hoffmann · 2017· International Joint Conference on Artificial Intelligence (IJCAI) introduces doi 10.24963/ijcai.2017/602