Ai 3
Ai 3
dseowse
vajcble tet
o
abinc, a to 4y. bics Quey:AL
bocan
()
impication we
Quanijer
,us urivwaL In
man(a)’iunk
c0ffee). (, ! t
notauon, phosC Ln
coDA. UnivenALat
Man.
eowse
as cçs iveueo eted
in esHeJ be
coee dsint man EKample:A FoH
ing. istan
ce.
Due tang
u inthus atatimnt
Quantiu sþeeiies
inu aharUnivexsal
Eriatential Quantilieu
y
ateast one instenta oy nometh fng. I u denotd
$ymbal '
a vaiable,
In whor notatiom,
inteign.
Difeuence hetween PopOsitlonal aagie and Pxedia
No Poposihonal ogie Pxedica Logue
Pediat oqis an
L09e at deas wtha
AOieeti on deloMati domain.It. conaibV4
tedment 'wi ha
Ph voue, ue or fale. |othjeti , nelaions and tuneiog
I th baic and met
|ulaey o Boolean ogic
knouuh |edieoyand quanijiotn.
A
J" A Poposihom hu
Vaue eih ue oT buedicne
depend1 sth value
om h
vlue. vasçabey
Sope anayin i1 no dome in PHedicot og' heps
propaihonam kogi. Bubject ove u prediasu.
Theie ae uo quanus
I Univeya Quant'tir (t)
a. Exiuia Quaner ()
Prspaihiona aue combined wth
intuo duuing quani'e to
su esibhing peoposiion.
moHe gan aised It more speead
epesentai on. Hepaesent aw on.
IH RON ot dec wth set o
erüties. eies wth th hep
quay'.
3-Wite the stops fan Cove) ing FoPL into CNF
The tcchhigue yan ncpn esehig a Complex schdehce into
Simple séntence sSo thot esalu lion Con be applied
Eliminalioh o
&epl- Eliminatioh then opeonotan
alep 2- Aion of the Scope o hçgation
Siep & Rename in the vanable wthinhe Scope
uantiiens,
Sitpt Movi quartiens in the nt o the cape
Cais lomial quonien as" skaleh
cxi slerdial quanti fie
Aeps The ne! expnession in tonjunctive roanma
ep- tig Ohe dause pen Sine.
d a om o Meoom
l·ForwoHd Chaintng: Fosuwad ehainingiomie
LUhieh ptosd1 Wt seLES n
AND becini on L
(AND becini¡ng
SOR) Decai on
Eraunpl : 8= He ir(Goa)
A He u
eneusing
IAND Deeiion
Faer 2 H Deii¡n :3
AND
R Deciniom-2
Fart y
sek2
>bompeianlmancu)
tn:
Roman ¬ pempeian
Reman(n)
(nv
man
Roman
to (n)
(n)’
Vdoyalto
loyal
(,
to
Caesa) (M,lalie)
Vhak
ln, 1lbgal
tsln, ) V
halelr,
GiAca)
casan)
Ryo ¬
man
(mancus)
A¬Ruln
Kacmvl( y) Man
(manas)
rMax CoeAcn)
An
byaAa13inale
Cauan)
(Mortu
Normal Form (CNE):
Conjunctire said 20 be Lonjuetiww Nosmal form uy
A yOmula i
22 2
13 WEDNESDAY
FEBRUARY 2019
(ny
Tackouls a dog (uthuw P
a Pisd ) - donats " OutAS y
dor
ninal Lovee (a)) -
b. tn (Dog Cwncn( aninat tovu.
æS an
EveLy dog Owne
(Pusniy)A
Uo aninat oven Kus an
Aninal y))-
ani neal.
12
MAR
2O19 THURSDAY
2019 FEBRUARY 14
eesalution to d u an en phy
clasd
10
2
5 Asumm i kius ( Ceviesiy Tina) (ngad gatl)
6- hom | and a (uninsal Jnstantiaton).
3
Dog uunen (7J’ Arinalloveu (j)
A Arinal Cy))
5
6
9- hom andy CRasaluhonJ i y(kus CCavian
Life is 10% what happens to me and 90% of how I react to it. Charles Swindoll
AtR
hthe
ite
dneh
h
ike
ects
s
(n)
colcion: John ikes au kinds f 4ood.
He.
jood
jood
mhing anyone. eah and àn't kfued by ood
5. Buu eab peanuh
G. Sue ea
and
y tit, aiue
Sotion:
) sentnes is predicatu ferm- Logi.
1. Foud(x) ikes (John,)
d. Pood (Abpleg)
3 food (ohickun)
T ai e (p) V KiUed )
b +LKiued (x) ’ a u2)
1(iued (a)) v awu (z)
Ued (9) vai e(a}
Ksued. ca)
Taluletu) aiustot)
INIL]
peanu" i
nd
th folowing sentence into predicate logie
"AlvcuR in Dead" uaing
resolutiati
(1) Ma)
(2)Marcus # eso I'peian.
(3) Marus ws bnn n 10
(4) Al men AD,
(5) AI weortal.
Pompeian'a
erupted in 1979.
dead when the voleano
(6) No mortal lives
(7) It is now J991, more than 150 years.
(8) Alive meuns not
dead. (2016-16)
Man (Marcus)
Pompean (Marçus)
Born (Marcus, 4)
VX: Men (X)’ Mortal (X)
Eruptei
2, 79)) (vocano, 79) A VX: (Pompeian (X) ’ Died
: V:: V2: Mortal ()A
’ dend (X, 2) Born (X, ti)a gtty - ti, l50)
Now J991
VX: VI: (alive (X, ) ’ dead (X,
alive (X, )) )]A ded(Y, t)
LENEE
ChatGPT 3.5
DFS (G , V):
mark V as Visited
for all edges from v to w in
G.adjacentEdges (v) do
if w is not visited then
DFS (G, w)
Message
Explain concept and nse of clause form
conersion algorithm. (2022-23)
Discuss algorithm of conversion to clause
form. Convert the following to clause formn
using algorithm (2017-18)
tr( Brick(x) ’ (3y{On(r,y)n-Pyramid(y))
n-3ylOn(r,y) oOn(y.r)}
nBrick(y) -’ -Bqual(r, y)}))
Algorithm of Conversion to Clause Form
(1) Eliminate ’, using the fact that a ’ b is equivalent
to ~a v.
Vx-[Roman (x) a knows(x, Marcus))
v[Hate(x, Caesar) v(y3 hate, )
vthinkerazy(x, y)]
(2) Reduce the scope of ~
Using the fact that~(~p) =p;
deMorgan's Laws
aab) = ~a Vb and ~ay b) =~an~b
The correspondence between quantifiers
~txP)= BrrP)
~3x P(r)=P()
Applying these to the wff from step 1yields :
4xf~Roman(:) v~knows(*, Marcus)]
v [hate(r, Caesar) v(ytz ~hate(y, 2)z)
thinkorazy(x, )))
(3) Standardise variables so that each quantifier binds a
unique variable.
x Pa) vrQ0) is converted to xP(r) v t Q)
Done in preparation for step 4.
(4) Move all quantiflers to the left of the formula
without changing the relative order. Done on the wff
gives :
[C.6]
Vayz<-tonantx) knows (x, Marcusil
V|hate(x, Caesarj) vehatey, 3) vthinkernzy:
Thus becalled prenex nornal forn. Itens)sts
prefix of quantifiers followed by a mntrix whir
quantifier fyee
NumericalSolutlon
VNIbrick(X) »(AY [on(.X,Y)A-pyramid(Y )
3Y (on(X,Y)Aon(Y,Xj,
VY(brick(Y ) equal(X,Yj
(1) Eliminate using A B Ay B.
VX-brick (X) v(3Y [on(X,Y )A-pyramid Y)|
¬9Y (on(X,Y)A on(Y Xjj:
VY-brick(Y ) v equal(X,Y))
(2) Put into negation normal fornm : negation only occurs
immediately before propositions
VXbrick (X) v (3Y [on(X,Y )A¬pyramid (Y ))A
VY(-on(x,Y)v ¬on(Y, X)/
Y [brick(Y)v ¬equal(.X,Y)D)
(3) Replace using Skolem functors (abstract names for
objects, functor has to be new)
VX[-brickX)v (on(X,sup(X) A-pyramidsuplX)A
VY[¬on(X,Y ) v¬on(Y,X)]A
VY[brick(Y)v¬equal(X,Y)D)
(4) Standardize all variables apart such that each
quantifier hasits own unique variable
VX[-brickX)v ((on(X,sup(X) A-pyramidsupX)))A
VY[-on(X,Y)v ¬on(Y,X)] ^
vz[brick(Z)v -equal(X,Z)D)
(5) Move V to the front
XVYVZ -¬brick(X) v(lon(.X ,sup(X ))
A¬pyramid(sup(X DJA
[on(X,Y)v ¬on(Y,X)]A
|brick(2)v ¬equal(X,Z)D)
conjunctive normal form using
(onvet to
(6)
Av(BAC)=(Av B)a(A vC)
V.VY(-brick(X)v(on(X,sup(.X ) A
"Pyramid(sup(X)J]A
L INTELL [G.7]
(¬brick(.X)v[¬on(X,Y)v -on(Y,X )) r
(brick(X) v[brick(2)v ¬equal(X,Z)Dl
vITNZ(¬brick(X)von(X ,sup(X) A
(¬brick(X) v -pyramid(sup(X ))A
(-brick(X) v[¬on(X,Y) v¬-on(Y ,X )) A
(Sbrick(X)v [brick(Z)v¬equal(X,Z))))
FIYZI-brick(X)v on(X,sup(X ))] ^
Abrick(X) v ¬pyramid(sup(X,]A
[-brick(X)v ¬on(X,Y)v ¬on(Y ,X)]A
(-brick(X)vbrick(Z)v¬equal(X,Z)]]
conjuncts in clauses (a disjunction of
(7) Split the
literals)
¬brick(X)von(X,sup (X))
-brick(X)v¬pyramid(sup(X)
VAAbrick(X) v¬on(X,Y )v ¬on(Y ,X)
VAIbrick(X )v brick(Z)v -equal(X ,Z)
clausal syntax (negative literals to body,
(8) Convert to
positive ones to head)
on(X,sup(X )):-brick(X).
:-brick (X), pyramid (sup(X )).
:-brick (X), on(X,Y), on(Y,X).
brick (X) :-brick(Z), equal(X,Z).
13-GaNent
S
Shoc)33hiBe S-
4- 9-Chile-
Thlack
hlack'shi 1-
hitecsal 1Shoc)
cohite V
hiteviWeokA
TYellooAlned
black 7
black he
V allocing
ht Coal V]
v V ohite
clank dank
ello 3e
A
Ihto
Studeut
(sohan)
nd)specs
tnMaried
hyem,Gecta)
(sh
yem
Mini)
Quantihs
FOL aryerene Rule fo
The bauia ingene
b Univesa qenealizdon
. UniveaL Ins tantiaWon
8. Exipentia, Instaniatiom
4. Exioentiat Intoduin
The wnivusel genOaialio
Universa Genualization. vaud inenea
we (an haue
dig LOwe
txp(x). It kan be HeþHUented
P)
P()
hy ule is uyed uts want do aho tha ewcy
hau a winila popeity
Here oe) muut not pþan as ee vauable . foy Grambe
Let Ptc "A buw contain, a d hig "
fon alf:tP(x) =" AG bytes rontains a &bits ".
UniveHsal Inutantiation t i auo talled Univeual tum
1t can be
do add nes
pence We tas
appicd muttipie Am
substituting a quound tom & keonutant uth bennce P) by
a domais ) on
au
14 can be nepuesetedd
P(c)
ie-uean".
fox erample, "Evey. peuon iky
nlwhat John iku ue seam', pte)
who aue gendy Que BuL
" Au
inge
P)
Pon Ekampe Let ceoun() A onhead (,John).