Novelty pruning
Also known as Novelty
pruning width-search
Novelty pruning keeps only the states of a search that bring something new. Each state is described by integer features, such as the facts that hold in it. The novelty of a state is the size of the smallest set of its features that no earlier state had all at once; if every set of up to k features was seen before, the novelty counts as greater than k. A NoveltyTable records every feature set of size up to k that it has seen, so with n features it holds at most O(n^k) sets. IW and SIW drop each non-goal state with novelty above k, so they need no heuristic. BFWS keeps such states and uses novelty as its first sort key.
Pseudocode
algorithm Novelty(F)input: the features F of a new state; a table SEEN of feature sets up to size koutput: the novelty of the state, or nil if it is above kw ← nilfor i in 1, …, k do ▷ sizes 1 and 2 as bitsets, larger sizes hashedfor each set t ⊆ F with |t| = i doif t ∉ SEEN thenSEEN ← SEEN ∪ {t}if w = nil thenw ← i ▷ the smallest new set gives the noveltyreturn wprocedure prune(s)if Novelty(features(s)) = nil and not goal(s) thendrop s ▷ IW and SIW never expand itIn the crates
width-searchNovelty tables that prune every state making no new combination of up to k features true.
Lineage
Papers
- Width and Serialization of Classical Planning Problems Nir Lipovetzky, Hector Geffner · 2012· ECAI 2012 (Frontiers in Artificial Intelligence and Applications)
- Best-First Width Search: Exploration and Exploitation in Classical Planning Nir Lipovetzky, Hector Geffner · 2017· Proceedings of the AAAI Conference on Artificial Intelligence