Docsity

Discrete Mathematics, Study notes of Discrete Mathematics

Toggle sidebar
bg1
LACITAMEHTAM ETERCSID SERUTCURTS
43SC01
ETERCSID LACITAMEHTAM SERUTCURTS
C(o nomm & ESC ot I ES )
tcejbuS :edoC C01 S34
.I A
.
skraM
: 52
keeW/sruoH : 40
axE m
ruoH s: 30
latoT Housr : 25 maxE raM sk : 001
TRAP – A
NU IT – 1
oH 6 u sr
teS oehT r:y steS dna Su,stesb teS snoitarepO and eht swaL fo teS yroehT , gnitnuoC na d
nneV ,smargaiD A tsriF droW no ilibaborP t,y Coelbatnu dna nuocnUtelba Sets
NU IT – 2
oH 7 u sr
slatnemadnuF fo Locig: cisaB sevitcennoC na d hturT selbaT, Locig Eqecnelaviu – ehT
swaL fo igoL ,c lacigoL noitacilpmI – seluR fo ecnerefnI
NU IT – 3
oH 6 u sr
slatnemadnuF of Locig :.dtnoc ehT esU fo Qu,sreifitna sreifitnauQ , Defi tin isno dna eht
sfoorP fo meroehT s
NU IT – 4
oH 7 u sr
seitreporP fo eht :sregetnI lacitamehtaM dnIu,noitc ehT lleW iredrO gn elpicnirP –
lacitamehtaM dnI u,noitc evisruceR snoitinifeD
PA TR – B
NU IT – 5
oH 7 u sr
snoitaleR dna snoitcnuF: naisetraC stcudorP nad aleR it no s, snoitcnuF – lP ain dna enO -to-
,enO tnO o uFnsnoitc – gnilritS srebmuN of the S noce d Ki ,dn Speaic l uFnct,snoi ehT
noegiP - eloh ,elpicnirP noitcnuF noitisopmoC dna nI v esre noitcnuF s
NU IT – 6
oH 7 u sr
snoitaleR :.dtnoc seitreporP fo ,snoitaleR retupmoC ceR o noiting – Ze or-Oen aMtsecir nad
detceriD G ,shpar laitraP sredrO – H essa argaiDm,s ecnelaviuqE snoitaleR dna titraP i no s
NU IT – 7
oH 6 u sr
:spuorG
tinifeD i sno ,
selpmaxE ,
nad
ratnemelEy
seitreporP ,
,smsihpromomoH
,smsihpromosI dna C cilcy ,spuorG ,stesoC dna s’egnargaL meroehT
.
gnidoC oehTry dna :sgniR stnemelE fo gnidoC T oeh r ,y ehT gnimmaH M,cirte ehT iraP ty
hC ,kce dna rotareneG secirtaM
D PE T.
,ESC FO TIBJS egaP 1
www.rejinpaul.com
www.rejinpaul.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64
Discount

On special offer

Partial preview of the text

Download Discrete Mathematics and more Study notes Discrete Mathematics in PDF only on Docsity!

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

DI SCRET EMA THEMATICALSTRUCTURES

( C o mm ont oCSE&I SE ) Su bjec t Co de: 10 CS 34 I. A. Ma rks : 25 Ho urs/Wee k : 04 Ex am Ho urs: 03 To ta l Hou rs : 52 Ex am Ma rks : 100 PA R T– A U N IT – 1 6 Hou rs Se tTh eor y: Se ts an dSu bs ets,Se t Op erationsand th e La ws of Se t Th eory, Co untingan d Ve n nDi agrams,A Fi rstWo rdon Pr obabilit y, Co un tablean dUn count ab leSets U N IT – 2 7 Hou rs Fu ndamental s of Lo gi c: Ba sic Co nnectives an d Tr uth Ta bles, Lo gi c Eq ui valence – The La w sof Lo gic, Lo gicalIm plication– Ru lesof Inference U N IT – 3 6 Hou rs Fu ndamental s of Lo gi c co ntd.: T he Us e of Qu an tifiers, Qu antifiers, Defi ni ti on s an d the Pr oof sof Th eorems U N IT – 4 7 Hou rs Pr opertie s of th e In tegers: Ma thematical In du ct ion, Th e We ll Or dering Pr inciple – Ma thematica lIn du ct ion,Re cursiveDefinitions PA RT – B U N IT – 5 7 Hou rs Re lation san dFu nctions: Ca rtesianPr oductsan d Re lat ion s, Fu nctions– Pl ain an dOn e-to- On e , On to Fu n ct ions – St irling Nu mbers of the S ec ond Ki nd , Spe ci al Fu nct io ns, The Pi geo n- ho lePr inciple,Fu nctionCo mpositionan dIn v er seFu nctions U N IT – 6 7 Hou rs Re lation sco ntd.:Pr opertieso fRe lations,Co mputerR eco gn ition– Ze ro - O ne Ma t ri cesan d Di recte dG ra phs,Pa rtialOr ders– H as seDi agram s, Eq uivalenceRe lationsan dPa rtiti on s U N IT – 7 6 Hou rs Gr oups : De finiti on s, Ex amples, an d El ementary Pr operties, Homomorphisms, Is omorphisms ,an dC yc licGr oups,Co sets,an dLa grange’sTh eorem. Co din gTh eory an dRi ngs:El ementsof Co dingT he or y, Th eHa mmingM et ric,Th ePa rity C h ec k,an dGe neratorMatrices D EP T. OF CSE,SJ BIT Pa ge 1

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

U N IT – 8 6 Hou rs Gr ou p Co des: De coding wi th Co set Le aders, Ha mming Ma trices Ri ngs an d Modular Ar ithmetic : Th e Ri ng St ructure – De finition an d Ex am ples, Ri ng P ro pe rt i es an d Su bstructures ,Th eIn tegersMo dulon Te x tB oo k:

  1. Ra l ph P. Gr imaldi: Di screte an d Co mbinatorial Ma thematics, 5 Ed ition, P earson Ed ucation , 20 04. (C hapter 3. 1 , 3. 2 , 3. 3 , 3. 4 , Ap pendix 3 , C ha pt er 2 , Ch apter 4. 1 , 4. 2 , Ch apte r 5. 1 to 5. 6 ,Ch ap te r 7. 1 to 7. 4 ,C ha pt er 1 6. 1 , 16. 2 , 16. 3 , 16. 5 t o 16. 9 ,an dCh apter
  2. 1 , 14. 2 , 14. 3 ). Re ferenc eBooks:
  3. Ke nnethH. Ro sen:Di sc reteMa th em aticsan di ts Ap plications, 7 Ed it ion ,Mc GrawHi ll , 20 10.
  4. Ja yant Ga ngul y: A Tr eatise on Di screte Ma t he matical St ructur es , Sa nguine-P ea rson, 20 10.
  5. D. S. Ma likan d M .K. Se n:Di screteMa themati ca lSt ructures:Th eory an dAp plications, Ce ngag eLe arning, 20 04.
  6. Th omasKo sh y: Di screteMa thematicswi thAp p li cations,El sevier, 20 05 ,R ep ri n t 20 08. D EP T. OF CSE,SJ BIT Pa ge 2

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

PA R T– A

U N IT – I Se tTh e ory: 6 Hou rs  Se tsan dS u bsets,  Se tOp erationsan dth eLa wsof Se tTh eor y,  Co untingan dVe nnDiagrams,  A Fi rstWo rdon Pr obabilit y,  Co untableand  Un countableSets D EP T. OF CSE,SJ BIT Pa ge 4

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

DISRETE MAT HE MA TI CAL S TR UC TU RES

U NI TI 6 H ou rs S e t Theo ry Se ts : A s e t is a co llection of ob je cts, ca lled el em ents of th e s et. A se t ca n be b y li sting it s el ements b et ween br aces:A = { 1 , 2 , 3 , 4 , 5 }. Th e sy mb ol e is (o r b el on gs to ) a set. Fo r in st an ce 3 e A. I ts ne gatio n is re pres en tedby /e , e.g. 7 /e A. If th e se t Is fi nite, it s nu mb er of ele me nt s i s re pres en ted| A| ,e.g. if A={ 1 , 2 , 3 , 4 , 5 } then |A | = 5 So m ei mp o rta nt se tsar eth e fo llowing:

  1. N ={ 0 , 1 , 2 , 3 ,· ·· }=th e se tof na tural numbers.
  2. Z = {·· · ,- 3 , - 2 , - 1 , 0 , 1 , 2 , 3 ,· ·· }=th ese tofintegers.
  3. Q = th e se t of ra tional nu mb ers.
  4. R = th e se t of re alnu mb er s.
  5. C = th e se t of co mplex nu mb ers. If S is on eof th ose se ts th en we al sous eth e fo l lo wingno tatio ns :
  6. S +^ = se t of p os itive el ements in S , fo rin s tance Z +^ = { 1 , 2 , 3 , ·· · } = th es etof po sitivein tegers.
  7. S-^ = set of ne gative el ements in S , fo rins tance Z-^ = {- 1 , - 2 , - 3 , · ·· }= th e se tof negativein tegers.
  8. S ∗^ = se t of el em ents in S ex cl uding ze ro, fo r in stance R∗^ = th e set of non z er ore al nu mbe rs. Se t- b uildern otation: An a lternative wa yt ode finea s et , ca lledse t- b ui ld er no tation, is b y st ating a pr op er ty (p re di ca te ) P (x ) ve ri fi ed by ex actly it s el em en ts, fo r in stan ce A = {x e Z | 1 ≤ x ≤ 5 } = “s et of in tegers x su ch th at 1 ≤ x ≤ 5 ” — i. e.: A = { 1 , 2 , 3 , 4 , 5 }. In ge neral: A = {x e U | p(x)}, where U is th e un iverse of di s co urse in wh i ch th e pr edicate P (x) mu st be in te rp ret ed , or A = {x | P(x)}if th e un iverseof di s course fo rP (x) is im p li citlyu nd erstoo d. In s et th eory th e te rmun ive rs al se t is oft en us ed in pl ac eof “u niverseof di scourse”fo ragi venpredicate. D EP T. OF CSE,SJ BIT Pa ge 5 ex pr ess th at an elem en t is presente d us e d to

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

  1. Un ion: Th e se t of e lements th at b el ongto ei ther of tw osets: A ∪ B = {x | (xe A) ∨ (x e B )}.
  2. Co mplement: Th e se t of elements (i nth e un iversal se t) th atdo no t b el ong to a gi ve nset: A = {x e U | x /e A}.
  3. Di fference or Re lative Co mplement: T he se t of el ements th at b el ongto a se t but no t to a nother: A - B = {x | (x e A) ∧ (x /e B )} = A ∩ B.
  4. Sy mmetric Di fference: Gi ven tw o se ts, th eir sy mm et ric di ff er - en c e is th e se t of el ement s th at b el ongto ei ther on eor the ot hers et bu t no tbot h. A ⊕ B = {x| (xe A) ⊕ (x e B) }. I t ca n be ex pressedal soin th e fo llowingwa y: A ⊕ B =A∪ B - A ∩ B = ( A- B) ∪ (B - A). Co untin gwi thVe nnDiagrams: A Ve nn di agram wi thn se ts in tersecting in th e mo st ge n er al wa y d iv ides th e plane i n to 2 n^ re gi on s. If we ha vein formation ab ou t th e nu mb er of el ements of so mep ortions o f th e di agram, th en we ca n fi ndth e nu mb er of el ements in ea chof th e re gions and us e th at in formation fo r ob taining th e nu mber of el em en ts in ot her p or tions of the plane. Ex ample : Le t M , P an d C be th e se ts of st udents ta king Ma the- matics co urs es, Ph ysic s co urs es an d Co mputer Sc iencec ourses re sp ec - ti vely in a un iversity. Assume |M| = 30 0 ,|P |= 35 0 ,|C| = 450 , | M ∩ P|= 100 ,|M ∩ C | = 150 ,|P ∩ C | = 75 ,|M ∩ P∩ C | = 10 .How ma n y st udents ar eta king e xactly on eof th ose co urses? (f ig. 2. 7 ) W e se et hat|( M∩P )- (M ∩P ∩C ) |= 10 0 - 10 = 90 ,|( M∩C )- ( M∩ P ∩ C )| = 150 - 10 = 140 and|(P∩ C ) - (M ∩ P ∩ C )| = 75 - 10 = 65. Th e n th e re gion co rresp on ding to st udents ta king Ma thematics co ur ses on ly has ca rdinalit y 30 0 - ( 90 + 10 + 14 0 ) = 60. An alogously we co mpute th e nu mb er of students ta kin g Ph ysics co urses on ly ( 1 85 ) an d ta king Co mputer Sc ience co urses on ly ( 235 ). D EP T. OF CSE,SJ BIT Pa ge 7

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

Th e su m 60 + 18 5 + 2 35 = 48 0 is th e nu mb er of st udents ta king ex ac tly one of th ose co urs es. Ve n n Di agrams: Ve n n di agrams ar e gr aphic re presenta- ti ons of se ts as en clo sedar eas in th e plane. Fo r in stance, in fi gure 2. 1 ,th e re ctangle re pre se nts th e un iversal se t (t he se t of al l el ement s co n- si dered in a gi ven pr oblem) an d th e sh aded re gion re p re sents a se t A. Th e ot her fi gu resre pres en tva rious se t opera ti o ns. D EP T. OF CSE,SJ BIT Pa ge 8

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

Ge neralize d Un ion an d In ters ec ti on : Gi ven a co llec- ti on of se tsA 1 , A 2 , ..., AN , th eir un ionis de fin ed as th e se tof elements th at b el ongto at le ast on e of th ese ts (h er e n re presents an in te ger in th e ra nge fr om 1 to N): D EP T. OF CSE,SJ BIT Pa ge 10

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

An alogously , t heir in tersection is th e s et of el eme nt s th at b el ong to a ll t he sets si mul ta ne ously: Th es e de finitions ca n be ap plied to in finite co llections of se ts as we ll.Fo r instance as sum et hatSm = {k n| k = 2 , 3 , 4 ,... } =se tof multiples of n gr eater th an n. Th en P ar titio ns : A pa rtition of a se t X is a co llection S of no n ov erlappingno n empty su bset s of X wh oseun ion is th ewh oleX. Fo ri nstance a pa rtition of X={ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 }couldbe S = {{ 1 , 2 , 4 , 8 } ,{ 3 , 6 } ,{ 5 , 7 , 9 , 10 }}. Gi ve n a pa rtition S of a se t X , ev ery el ementof X b el ongs to ex actly on eme mb er of S. Ex ample :Th e di vision of th ein tegersZ in to ev enan d o dd nu mb er s is a pa rtition: S = {E ,O} ,w hereE = { 2 n| n e Z} ,O = { 2 n+ 1 | ne Z}. Examp le : Th e di visions of Z in ne gative in te ge rs, p os itive in tegers an d ze ro is a pa rtition :S = {Z +^ , Z - , { 0 }}. Or dere d Pa irs, Ca rtesian Pro du ct: A n or dinary pa ir {a ,b} is a se t wi th tw o el ements. In a se t t he or der of the el ement sis ir relevant, so {a ,b} = {b, a}. If th e or der of th e el ements is relevant, th e n we us e a di fferent ob je ct ca lledor dered pa ir, re presented (a ,b). No w(a ,b) = (b, a ) (u nless a = b). In ge ne ral ( a ,b) = (a!, b!) i ff a = a!^ an db = b!. D EP T. OF CSE,SJ BIT Pa ge 11

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

Pr op er ties of pr obabil ity: Le t P be a pr obability fu nc- ti onon a sa mple sp ace S. T he n: TH ECO NCEPTOF PROBALITY: Pr (A)=|A |/ |S| wh ere|A |is an ev entan d|S| is sam plespace Pr (A)=|A |/ |S |=(|S|- |A |)/|S|= 1 - (| A|/|S|)= 1 - Pr (A). Pr (A)= 0 if an don lyif Pr (A)= 1 an dPr (A)= 1 if an don l yif Pr (A )= 0 AD DITIO NTHEROM: D EP T. OF CSE,SJ BIT Pa ge 13

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

Su ppos eA an dB ar e 2 ev entsis a sa mplesp aceS th enA UB is an ev entin S co nsist in gof ou tcome sth at ar ein A or B or bo than dA ∩ B is an ev entis S co nsi st i ng of ou tcomes th atarecomm on to A an d B. ac cordingly by the pr inciple o f ad di ti on we ha ve |A UB |= |A |+|B|- |A ∩B |and fo rmula 1 gives Pr (AUB)=|AUB|/|S|=(|A|+|B |- |A ∩B|)/|S| = |A |/|S | +|B|/|S| - |A ∩ B| / |S| Pr (AUB )=P r(A)+Pr( B) - Pr (A∩ B) MU TUAL YEX CLUSIVEEV ENTS: Tw oev entsA a ndB in a sa mplesp acear esa idto be mu tualex cl usiveif A ∩ B =Ø t he n Pr ( A∩B )= 0 an dthe ad di ti ont heorem re ducesto Pr (AUB)=Pr(A)+Pr(B) If A 1 , A 2 …….An a re mu tualy ex cl usive ev e nt s, th en Pr (A 1 U A 2 U…….UAn)= Pr(A 1 )+Pr(A 2 )+….+Pr(An ) CO NDITIONA LPROBABILITY: I f E is an ev entin a fi nitesa mpleS wi thPr (E)> 0 th enth epr obability th atan ev ent A in S oc cur s wh en E ha s al ready o cc urred is ca lledt he pr obability of A re lative to E or the co nditiona lpr obability of A , gi venE Th i spr obabilit y, de notedby Pr (A|E)is de finedby Pr (A|E)=| A∩ E| /|E |fr omth is|A ∩ E| =|E|. Pr(A|E) Pr ( A∩ E) =| A∩ E| / S= |=|E|/|S|. Pr (A|E)=Pr(E). P r(A|E) Ex am ple:Fi nd th epr obability of ob t ai ning a su m of 10 af terro llingtw ofa irdi ce. Fi nd th epr obability of that ev entifweknowthat at leasto ne of th e di cesh ows 5 p oi nts. A n sw er : We ca ll E — “o btaining su m 10 ”an d F — “a tl ea st on eof t he di ce sh ows 5 p oi nts”. Th e nu mb er of p os sibleou t co m es is 6 × 6 —

  1. Th e ev ent “o btaining a su m 10 ”is E — {( 4 , 6 ),( 5 , 5 ),( 6 , 4 )}, so |E| — 3. He nce t he pr o ba bili ty is P (E) — |E| /| S| — 3 / 36 — 1 / 12. No w ,if we kn owth at at l ea ston eof th e di ce sh ows 5 p oi nts th enthe sa mpl e sp ace sh rinks to F — { ( 1 , 5 ) ,( 2 , 5 ),( 3 , 5 ) ,( 4 , 5 ) ,( 5 , 5 ) ,( 6 , 5 ) ,( 5 , 1 ) ,( 5 , 2 ) ,( 5 , 3 ) ,( 5 , 4 ) ,( 5 , 6 ) }, s o |F |— 11 ,an d th ewa ysto ob tain a su m 10 ar e E n F — {( 5 , 5 )}, |E nF |— 1 , so th epr obabil it y is P (E | F)— P (E n F)/P ( F )— 1 / 11. MU TUALL Y IN DE PE NDENT EVE NT S: Th e ev en t A an d E in a sa mple sp ac e S ar e sa id to be mu tually in d ep endent if the pr obabil ity of th eoc currenceof A is in dependent of th epr obability of th eoc currenceof E, S o th atPr (A)=Pr(A|E). Fo rsu chev entsPr (A∩ E) =Pr(A).P r( E) D EP T. OF CSE,SJ BIT Pa ge 14

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

U N IT – II Fu ndamentalsof L og ic: 7 Hou rs  Ba sicCo nnectivesan dT ru thTa bl es,  Lo gicEquivalence  Th eLa wsof Logic,  Lo gicalImplication  Ru lesof In fe r ence D EP T. OF CSE,SJ BIT Pa ge 16

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

U N IT II 7 H ou rs Fu ndamental sof L ogic I nt r od uction: Propos i ti on s: A pr oposition is a de clarative se ntence t hat is ei ther tr ue or fa lse(but no t b ot h). Fo r in stance , th e fo llowing ar e pr op os itions: “P arisi s in Fr ance” (t rue), “L ondon is in De nmar k” (f alse), “ 2 < 4 ” (t rue), “ 4 = 7 (f alse)”. Ho wever th e fo llowing ar e not pr op os it io ns: “w hat is yo ur na me?” (t his is a qu estion), “d o yo ur ho mework” ( this i s a co mm an d), “t his se nt e nce is fa lse” (ne it her tr ue no r fa lse), “x is a n ev en num be r” (i t de p en ds on wh at x re pres en ts), “S o cr ates” (i t is no t ev en a se ntence). Th e t ru th or fa lseho od of a pr op os i ti on is ca l led its tr uthva lue. Ba si cCo nnectivesan dTruth Ta bl es: Co nnective s ar e us ed fo rmaking co mpound pr opositions. Th e ma in on es are th e fo llowing(p and q r e pres en t gi ve nprop os itions): Meani ng “not p” “ p an dq” “ p or q (or b oth)” “e ithe r p or q, bu t no t b oth” “i fp th en q” “ p if an d on ly if q” Th e tr uth va lue of a co mp ou nd pr op os ition de p en ds on ly on th e va lue of it s co mponen ts. Wr iting F fo r“f alse” an d T fo r“t rue”, we ca nsu mmarize th em eaning o f th eco nnectivesin th efo llowingway: p q ¬p T T F T F F F T T F F T No t e t ha t ∨ r ep res en ts a no n-ex cl usive or , i. e., p ∨ q is tr ue wh enan y of p, q is true D EP T. OF CSE,SJ BIT Pa ge 17 R ep re se nt ed ¬p p ∧ q p ∨ q p ⊕ q p → q p ↔ q Name N e ga ti on Co njuncti on Disj u nction Ex clusiv eOr Im pl i ca tion Bi c ondi ti onal p →p ↔ q T T F F T F T T

F

T

T

F

p ∧ q p ∨ q p ⊕ q T T T F

T

F

F

F

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

i s fa lse: “i f 2 < 4 t he n Lo nd on is in De nm ar k” (t rue → false). I n mi gh t se em st ra ng e th at “p → q” is co nsidered tr ue wh en p is fa l se , rega rd l es s o f th e tr uthva lue of q. T hi s wi llb ec omecl earer wh enwe st udypr edicates su ch as “if x is a mu ltiple of 4 th en x is a mu ltiple of 2 ”. That im pl ic ati on is ob viously tr ue, al thoug h fo rth e pa rtic ul ar ca s ex = 3 it b ec omes“i f 3 is a mu ltiple of 4 t hen 3 i sa mu ltiple of 2 ”. T h e pr op os ition p ↔ q, re ad “p if an d on ly if q ”, is ca lled bi con- di tional. It is true pr ecis ely wh en p an d q ha ve th e sa me tr uth va lue,i. e., th ey ar e both tr ue or b ot h f a l se. L ogica l Eq uivalence: No te th at th e co mpo un d pr op os i- tions p → q an d ¬p ∨ q ha veth esa met ru thvalues: p q ¬p (^) ¬p ∨ (^) q p → T T F T T T F F F F F T T T T F F T T T Wh e n tw o co mp ou nd pr op os itions ha ve th e sa me tr uth va lues no ma tter wh at tr ut h va lu e th eir co nst it uent pr opo si ti ons ha ve, th ey ar e ca lled lo gical ly eq uivalent. Fo r in stanc e p → qan d¬p ∨ q ar e lo gicallyequivalent, an d we wr ite it: p → q ≡ ¬p ∨ q No t e th at th at tw opr op os itions A an d B ar e lo gically eq uiva le ntpr ecisely wh en A ↔ B i sa ta utology. Ex ampl e: De Mo rgan’s La ws fo r Logi c. Th e fo llowing pr op os itions ar e lo gi ca lly eq u iv alent: ¬ (p ∨ q) ≡ ¬p ∧ ¬q ¬( p∧ q) ≡ ¬p ∨ ¬q D EP T. OF CSE,SJ BIT Pa ge 19

DI SCRETEMATHEMATICALST RUCTURES 10 CS 34

p q ¬p ¬q (^) p ∨ (^) q ¬(p ∨ (^) q) ¬p ∧ (^) ¬q p ∧ (^) q ¬(p ∧ (^) q) ¬p ∨ (^) ¬q T T F F T F F T F F T F F T T F F F T T F T T F T F F F T T F F T T F T T F T T Ex ampl e: Th e fo llowingpr op os itionsar elo gicallyequivalent: p ↔ q ≡ (p → q) ∧ (q → p) Ag ain , th is ca n be ch ec kedwi th th e tr uthtabl es : p q p →q → (^) (p → q) ∧ (^) (q p ↔ q T T T T T T T F F T F F F T T F F F F F T T T T Ex ercis e: Ch eckth efo llowinglo gicalequivalences: ¬( p→ q) ≡ p ∧ ¬q p → q ≡ ¬q → ¬p ¬( p↔ q)≡ p ⊕ q C on vers e, C on trapo si tive: Th e co nverse of a co nditional pr op os ition p → q is t h e pr opo si ti on q → p. As we ha ve se en, th e bi - co nditio na l proposition is eq uivalen tto th ec onjunctionof a co nditionalpr op os ition an it sco nverse. p ↔ q ≡ (p → q) ∧ (q → p) So ,fo r in stance, s ay ing th at “J oh n is ma rried if an d on ly if he ha s a sp ou se” is t he sa m eas sa ying “i fJ oh n is ma rried th en he ha s a sp ou se”an d “i fhe ha s a sp ou sethen h e is ma rr ied”. D EP T. OF CSE,SJ BIT Pa ge 20