Week 11 Recursion and Negation-As-Failure
Week 11 Recursion and Negation-As-Failure
Logic Programing
-> Arecursive definite clause rule is one in which the
same
predicate symbol appears in both the head and
tail of the (typically with different arguments
rule
resolution the
->
procedure
the
is
exactly same but we
may
need to
apply same rule multiple times
->
The of the rule and the position of the repeated
placementthe
predicate in tail of the rule may affect the order
in which backtracking occurs.
Recursion in
Propositional logic
- We also encounter recursive rules in
may
propositional logic prog butthese are
typicalor
unhelpful and should ramming
- some cases of recursion
may not be obvious and
the order of the
success or failure may depend on
rules
Negation -
as -
Failure
Vx, URK
....
CA, ...
. .
.
An. not B, Bm-c)
...
not
Universal duantifiers Quantifier free -
not
definite clause (with
as -
failure
->
Extended Logic Programs are
any of extented
definite clauses in rule form.