Forward and backward chaining

These examples have some possible flaws. Their purpose is to show you how to do forwrd and backward chaining and to find these flaws and discuss them.

Rules

if a and b then c
if d then e
if f and g then d
if h then f
if i then d
if j and k then b
if q and r then a
if ~i then f
if f and r then g
if e and f then d
if r then b

Forward chaining: use the following facts:

TRUE:
r
a
d

FALSE:
i
h
q
b

Backward Chaining: use the above facts and the following possible hypotheses:

d
c
f

Then try
f
c