Algorithm
Algorithm
,ml 4G -=:)•
o A* Search Algorithm
l.
Were, h(n)= estimated cost from node n to the goa
by
The greedy best first algorithm is implemented
the priority queue.
Disadvantages:
JIQl(j!;
0
GEEi-Ci
GODDESS
111 s,1nchrcn,
;:She Thelnnovator
◊!~~,, ~
A Portfolio of 20-25 Stocks
That Has Delivere~ 400°/~ ltt>
Sponsored ~~81•• . mg.com
Participate in Tech Aptitude Challenge 2022 and get
a chance to win Vouchers every Week.
State h(
B
y "'._5 s
A ••
A Portfolio of 20-25 Stocks
'lL..,IICLJ That Has Delivered 400°/c
Propositional logic in Artificial
intelligence
Propositional logic (PL) is the sim ple
st for m of log ic
where all the statements are made
by pro po sit ion s. A
proposition is a declarative sta tem en
t wh ich is eit he r
true or false. It is a tec hn iqu
e of kn ow led ge
representation in logical and mathe
matical for m.
Example:
a) It is Sunday.
b) Th e Sun rises fro m We st (False pro
po sit ion )
c) 3+ 3= 7(False pro po sit ion )
d) 5 is a prime nu mb er.
a. Atomic Propositions
b. Compound propositions
Example:
Example:
Example:
6:44 ,,ml 4G u,
Logical Connectives:
Logical connectives are used to connect two simpler
propositions or representing a sentence logically. We
can create compound propositions with the help of
logical connectives. There are mainly five
connectives, which are given as follows:
< a www.javatpoint.com X
'
RRR
Connective symbols Word Technical term Example
Conjunction Al\8
Disjunction AV 8
A Portfolio of 20-25 Stocks
That Has Delivered 400o/~ [l>
1
www.researchandrankinq.com
AND Conjunction AIIB
OR Dlsjunc tlon AVB
Implies Implicat ion A➔ B
If and only If Blcondft lonal A= B
Not Negation ~Aor~B
Truth Table:
ForN-,atlon:
True False
False True
For Conjunction:
Q PAQ
rrue l True True
rue False False
alse t True False
alse False False
,r disjunction:
Q PVQ.
ue True True
lse True True
Je
se
I False
I False
ITrue
False
'Implication:
I? True
- - -- - -
True
lcondltional:
Truth table with three propositions:
P Q R -, Pv Q -,
6:45 •• ~. 4G U ·
o Associativity:
o (P A Q) A R= P A (Q A R),
0 (P V Q) V R= p V (Q V R)
o Identity element:
o P A True = P,
o P v True= True.
o Distributive:
o PA (Q v R)=(P A O) v (P A R).
0 p V (Q /\ R) = (P V Q) /\ (P V R) .
o DE Morgan's Law:
0 -, (P /\ Q) = (-,P) V (-,Q)
0 -, (P V Q) = (-, P) /\ (-,Q).
o Double-negation elimination:
o -, (,P) = P.