maths notes
maths notes
hich is oidely
usd in sludying ard dislnibbing the
cbjects and proble ms in broanehes of Computer Sience
steh as computer alqovithms, prtqyarnming tanqunges,
pic oqyaphy o Acto mated theovem and slw develop mant.
Mathemabead Loqie i -
weeh (1)
) A leek has more uunber o days than a nonth
False (D)
3). 5 I9 a prime number ’T y 1)
Name of (onneeive
Conneciveg word Symbol
Negation NOT
AND
corjunghion V
diejunchion
Conditinal it then
Bi Condi icnal t, ,
Con juncion
when p,q, ave True then p and q, (pAg) il be Trut.
Truth Table:
Exanple!
t
9: It 19 cool
S: Paq,: It is aiing and co0l
Pnq, : T
oiajunchon
are Falge
when P,4
Trcth-table:
example
Conditional Trçlicaion:
Ttp is Trae, q, is false then imlicahon of tnen
uol) be Fal.
Cxample :
Tructh table : p: Ttis vag
P . F:
Bicon ditional or
&iTmplicabon
(<5) o( ) ()
Yeod as
-e bicondi tional q,
’p doubleinplies q
it ig
eas: If it is vidng hen it is cool, if
then it is vau ning
is Cool.
P<>: tt is aining if and only If it
T T T
T
T
T T
i) ~eve) v (~pnn4)
T
T
T
T T F T
p-’ (aq, v ).
p (qv )
T T
T
T T
T
T
T T
F T
T
F T T
T
F
T T
T T
T
T T T
T T
F T T T T
1
F T T
Loqical Equivalence:
The Comçound preposihons that have Hne Sane tuth
Values in al poitble Cases ave called Loqica' eaivalence
Tautology!
Compond position calted unta
The
T T
(O1)
T T
P
logieal
eqyuivalance
T
T
T
Tauto logy
F T
gied quivalance
Srow that P and lp)v4 ave
(p)v
T 1
T
T
T T
T
Tautolgy
T
of the
We obeve that th colunn y and alboe
4akle loaye the iden tcal uth values in all powh.
T T T
T T T T
T
T
T T Tautoloqy
T
T T T T T
T T T T
Tacuto legy
T T T
T
3
A<d)][uk v
<
L
T1
u-d)(a-b)v
L
the called etatement
is Onigìnal th oF
convere the
tazing cbtained
by statmnt Contagoitive
The : iD
th
Pq, converse
of The Converse )
qre P>4 elated
topreçoibos Condihonal
thin two Chy and PTf
huv comtprepotions. are
Taverge. positve, Contra Converse 7
Taubalagy
T T
T
T
T
T
T
T F
T T T
T T
T T
T
T
T T T T
TT
F
TTT
P9,
ie he Conba poitive of -
P , 19'q, p
) Tnvev3e: he inverse of
Tuth table :
,(onditional Converge Inverse (ontra tve
P
T T
T
T
T T
Example :
Considler the statnens
slates that :
no Yavn.
3. Commutative law
4. Dfebbuive laus
5. Tdentity lauw:
4. Complement lauo:
tb). nf T
3hvolution Louw:neg
Rerived Connechves:
negaben
! NAND: IB tneans neqaon of corjeien ot
P and 4, be two prept2 bcns
NAND of P and q, is
shun both P and True Otherwi True It i3
nencted P^ and
P
T T
T
T
T
mean tuo
statarnant Avrre p and q, be t c repeiions
prepoibens hs Tue
cben beth e and q, are False'. otae True Itis
T 1T
6).
bamy
C~pA)
(pn)v
v
(nqv)
T F
Tautalegy
Cev4))aapA
T F
T T
(pA)
v
T (~fAn)
F T
T T T T
T F F T
F T F
T F T
formila' i3 an expre Kion wtich
A statament
contains aSyaeol, statenend, conneelivihy batev
Symeols, variable and pavanthse.
ctalment formue Can aleo be. aled ass hlEE
well formed for qeraded oy
felloing les;
L. A statment varvable tandinq alone is wlfF WEF
IEE then aleo
3. IÉ A and well fomed rnua n
-A and B, (An), CAVe), (A-26), (ne> e) e
also oel Fomd Fomulae
Examples of ell Forned Formulac
RHS
(PnG) A~(phlnvn))) v (opang)vip
prove the above is a tautology
Contradiction :
a Conçtund prepos1ien
prepos1lien et is loays fale tr all
rossiele valueg ile variables or in otker oercds tortaur
lu f,In Hoe last colnn of a truth table cled
&conthadictien.
continqency
Compound
preposition that i neither a tautalog y
ordvadichien is called contingency
NOte;
Paq, P (p)>(pA4)
T
T tonkingeny
oo are Gad
fommulas, Aand A
ach other if eithe oné Can be dokained from the
oy veplaelng n by v and v by a
(pv)a
(,413)
L of oNF :
’ (PAg)v (paR)
Conuncive Nomal formn ;
A foxmla hib i enyuvalent to the qiven t
and anhith conis b o¢ a psccuet of de mentay
( aled CNF .
~tpvg) (pag)
Rules :
frocedårs to cbtarn a qiven loqical
logienl expr
éxfr
Teree eteps reauied to obtato a oNF thrcugh
aiqetro't mandpulatien8
Reneve al Lingles) and
Drtainurghe connechives
by an equivalent expreien containdng
ay' and cnsy
eramele : p-4 i Yephced by npv
Pe4 is ve plaeed by (eaq) v(npan)
Oy)
(npna)v (noyn).
Eleninat negaion befeve ms and preduets by
using the double negahien er by ucing the demovqars
law