AI Endsem Notes by DK?
AI Endsem Notes by DK?
Telegram Channel
https://t.me/SPPU_TE_BE_COMP
(for all engineering Resources)
WhatsApp Channel
(for all Engg & tech updates)
https://whatsapp.com/channel/
0029ValjFriICVfpcV9HFc3b
Insta Page
(for all Engg & tech updates)
https://www.instagram.com/
sppu_engineering_update
clAsSMAte
Date
Page
UNIT-I
Knauledge
* fzapositional Laqic -
ChakacteistHcs -
1 Pscpasthonal loqic is declasative
in) Pxapasthanal lagic allous paxhal disjuncfive
interence
-
Syatax of Popositanal logic
’ 1) Sumbols -
Theyaxe prapasifiona calcaulus Symbals
) Psediate Symbals
" Used to xepxesent xelaian in daman.
By Dk
domain tother"
cdAsSMAte
EATHER
sumbols uhich discourse
sentence
xepkesent
to in xams
DatePage
entits (xam)
abaut ta
MoTHER
constant FATHER
OK of
massied
ahiects indetinite domain False
be he
axe (Xam)
book!uill
pxedicate xefened is uill
book book (
READS
) in TXue
sepkesent be mather
SumbalL LmoTHER
Aunchon
uant
upIf ds funchans
Sumbals
xeads : sunbals
to be - be
Dk sumbalsand mARRED
Sumbols
C ISeLS Rams
to Can Connectlves
READS ta Dk
"DkSimple is Denate
mARRIED
UsedEq.
onstant m)Vaxiable Finchon
Allau) Eq Tsuth
entity
H) 2
alassMAte
Date
Page
* Connectives -
i) AND Cannective ( a :
.Used to sepxesent Compound statement:
Eq, DR weaxs black dxess "
RS (Dk Dxess) A CoLOUR (Dxess, Black)
BlCONpITIONAL annective )
Used wheneuex P 8 and P axetauo
Eq Dk beomes happ tt BR eats icecxPam!
(Dk Happy)
BECOMES (Dk, Happy) EATS Dk Tceczeom)
PEAS Descaiphan
1 Pofo1mance
Death : - 100o
per step -10 tox usinq
Enuixanment:
Squaxes adjacent to Waumpus Smells.
.Squaxes adjacent to pit Laxe bxeegy
Gittex qald is in Same Squaxe
Shocting kills Wumpus you axe facing it.
It CXeamS
Shoating uses anly axkouw
Gzabbing picks up gold iE in Same squake
Releosing dsops gald in Same squaxe
You 'bumpif yau walk into a wall
Date
Page
l) Actuatoxs
Left tuxn Riq ht tnn oxuaxd guab
xelease shoot
Sensars
Stenchbxeege, gittex bump, Scxeam
Discxete:
Yes
4) Sngle - Agent
Yes - Waumpus is esentialls angtuual teahure
5) Full Obseuable
No- onls (ocal peaceptian
Bietae
Senh
-B1COge
Pf
o Bic0ae understand
alAsSMAte
Date
Page
4 Modus Ponens -
Tt isxepsesented as,
2) And- elimination
Tt says that trom conjuncthon any conjuncts
Can be inteed
. Tt s sepsesented. as
Rule is
R4 v..vli-4 V2it: V. vlk
Rule s
t Resoluion Algosithm -
Tt takes input as knouledae Base (sentence
in pisapositional logic) and oCquey in pxoposihona
logic)
T) Tts autput. is Taue False ie Roouwledqe base
do xesolves
It shows that K8 l=dtox this t wilL
be shoun that (KB A 18
Steps axe
CKB A 1a is tst conueted n CNE
Relations
i) Funchons
Psopexties
) I has abilits to xepxesent. tactsabaut some
all of cbiects in universe
Ox all
Typesof FoL
1Tempoxal Logic.
Tt asSumeS that tacts hold at some paaticulax
fimes
Thesetmes also haue axders
* Compasison -
Rsaposithanal logic (PL) Pxedicate logic (FoL)
A It deals with simple i) FoL additianally cauers
declaxative pxopasthons pxedicates & quantiicaticn
5) Symbcls
Ihey are Smallest Syntattic element that
stand fox cbiectsselations nchans
Follausinq axe ROL Symbols.:
a Tauth symbals - Töue Fase
b) Constant sumbols A8 Ram Red, etc (Specifed)
c) Yaziable Symbols- X,Y, z te (urspecited cbjects).
d) PxedcateSunbols Stepsiste likes (xelatians)
e) Fanchon symbols - Fathe OE calaxoF (tunctions)
t Semantic of FOL
EqEg Tn
Th Wumpus woxldset ot sules xelate d
actions are undestaod in this phase
Page
"All bixds
Psedicates
2 bind
Evexs man
Psedicates
xespects
axe :
his paxents "
man
a Sespects y
P(,) y is paaent at
I Conuext to CNE :
Collect allclauses
all x)
TFood (a) y Likes ( Rajesh, x) (for
Food CApple)
z) Food (Vegeta bles) Food(a)
4) JEats (y, a) y Killed Cu)
5) Eats (Ajay Peanuts)
C)Killed CAjay)
) Lkes (Raesh Banana)
Date
Page
Resolution -
Eats (A]as.. Peanuts)
) kiled CAjay
Applying Clause 4
iy)l Fsom
TFood Cal y ikes (Rajesh, x)
Substitute uwith peanuts
TFocdCPeanuts) V Likes (Rajesh Peanuts)
since Food (Peanuts)s Taue
) Similazlyapply Same
apply ame logic for Bananas as
Bananas ase also onsidered Fogd.