~/ learn/ comp-456/ cards/ Pattern-directed search & the knowledge/control split
1 of 3

Type a backward-chaining rule and the goal-driven reading (Prolog).

Type a backward-chaining rule and the goal-driven reading (Prolog).

Answer

playground_empty :- kids_not_outside. kids_not_outside :- playing_videogame. playing_videogame. ?- playground_empty.

Prolog reads each clause goal-driven: to prove playground_empty, prove kids_not_outside; to prove that, prove playing_videogame, which is a fact. The :- is "if", and the resolution + backtracking IS pattern_search — Prolog is the production system with unification as its matcher.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/516b85f0-05d4-4c7e-b340-53f9c022eadd/flashcard utf-8 LF