Skip to main content

bfws

Function bfws 

Source
pub fn bfws<P>(problem: &P, k: usize) -> SearchResult<P::Action>
where P: GoalCount, P::State: Hash + Eq,
Expand description

BFWS(f) with f = ⟨w_{#g}, #g⟩: best-first search ordered by novelty (computed separately for each goal-count value #g, capped at k + 1), breaking ties by #g. Complete on finite state spaces.

§Panics

Panics if k is 0.