pub fn rollout_iw<P: WidthProblem>(
problem: &P,
seed: u64,
) -> SearchResult<P::Action>Expand description
Rollout IW(1) (Bandres, Bonet & Geffner, AAAI 2018), goal-directed.
Builds a search tree by repeated rollouts from the root. Each rollout
walks down through a random child not yet labeled solved, generating
children lazily, and stops by labeling a node solved. Novelty uses the
smallest depth d[f] at which each feature f was reached:
- a new node at depth
dcontinues the rollout ifd < d[f]for some featurefit makes true, and lowersd[f]todfor all of them; otherwise it is labeled solved (pruned); - a node already in the tree continues if
d == d[f]for some feature, and is labeled solved otherwise (a shallower path took its features).
A node with no successors is solved; a node is solved once all of its
children are. The search returns as soon as a goal state is generated,
and gives up (plan: None) when the root is solved.
The paper’s algorithm picks actions for a reward-maximizing agent within a
time budget; this version has no budget and stops at the first goal. Like
IW(1), it reaches every goal of width 1, but its plans need not be
shortest. seed fixes the random child choices.