SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
DISCRETE MATHEMATICS
&
GRAPH THEORY
For
Computer Science
&
Information Technology
By
www.thegateacademy.com
Syllabus DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com
Syllabus for
Discrete Mathematics & Graph Theory
Connectivity; spanning trees; Cut vertices & edges; covering; matching; independent
sets; Colouring; Planarity; Isomorphism.
Analysis of GATE Papers
(DDiissccrreettee MMaatthheemmaattiiccss && GGrraapphh TThheeoorryy)
Year Percentage of marks Overall Percentage
2013 9.00
14.66 %
2012 10.00
2011 10.00
2010 7.00
2009 10.66
2008 18.00
2007 17.33
2006 16.67
2005 20.00
2004 19.33
2003 23.33
Content DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page i
C O N T E N T S
Chapter Page No.
#1. Mathematical Logic 1 - 24
 Syntax 1
 Propositional Logic 1 - 4
 First order logic 5 - 7
 Disjunction Normal Form 7
 Solved Examples 8 - 16
 Assignment 1 17 - 18
 Assignment 2 19 - 20
 Answer Keys 21
 Explanations 21 - 24
#2. Combinatorics 25 - 52
 Introduction 25
 Permutations 26 – 29
 The Inclusion-Exclusion Principle 29 – 31
 Derangements 31 - 32
 Recurrence Relations 32 – 37
 Solved Examples 38 - 40
 Assignment 1 41 - 43
 Assignment 2 43 - 46
 Answer Keys 47
 Explanations 47 - 52
#3. Sets and Relations 53 - 92
 Sets 53 - 55
 Venn Diagram 55 - 58
 Poset 58 - 60
 Binary Relation 60 - 64
 Lattice 64 - 67
 Functions 67 - 68
 Groups 68 - 72
 Solved Examples 73 - 77
Content DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page ii
 Assignment 1 78 - 81
 Assignment 2 81 - 85
 Answer Keys 86
 Explanations 86 - 92
#4. Graph Theory 93 - 130
 Introduction 93 - 94
 Degree 94 – 95
 The Handshaking Theorem 95 – 97
 Some Special Graph 97 - 99
 Cut vertices & Cut Edges 99 - 100
 Euler Path & Euler Circuit 101
 Hamiltonian Path & Circuits 101 - 103
 Kuratowski Theorem 104
 Four Colour Theorem 104 - 106
 Rank & Nullity 107
 Solved Examples 108 - 113
 Assignment 1 114 - 117
 Assignment 2 118 - 123
 Answer Keys 124
 Explanations 124 - 130
Module Test 131 - 143
 Test Questions 131 - 137
 Answer Keys 138
 Explanations 138 - 143
Reference Books 144
Chapter 1 DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 1
CHAPTER 1
Mathematical Logic
Logic is a formal language. It has syntax, semantics and a way of manipulating expressions in the
language.
Syntax
Set of rules that define the combination of symbols that are considered to be correctly
structured.
 Semantics give meaning to legal expressions.
 A language is used to describe about a set
 Logic usually comes with a proof system which is a way of manipulating syntactic
expressions which will give you new syntactic expressions
 The new syntactic expressions will have semantics which tell us new information about
sets.
 In the next 2 topics we will discuss 2 forms of logic
1. Propositional logic
2. First order logic
Propositional Logic
 Sentences are usually classified as declarative, exclamatory interrogative, or imperative
 Proposition is a declarative sentence to which we can assign one and only one of the truth
values “true” or “false” and called as zeroth-order-logic.
 Prepositions can be combined to yield new propositions
Assumptions about propositions
 For every proposition p, either p is true or p is false
 For every proposition p, it is not the case that p is both true and false.
 Propositions may be connected by logical connective to form compound proposition. The
truth value of the compound proposition is uniquely determined by the truth values of
simple propositions.
 An algebraic system ({F, T}, V, ∧, -) where the definitions of components are.
-A tautology corresponds to the constant T and a contradiction corresponds to constant F.
The definitions of ∧, V and  are given below.
V F T ∧ F T 
F F T F F F F T
T T T T F T T F
 The negation of a propositions p can be represented by the algebraic expression p
 The conjunction of two propositions p and q can be represented as an algebraic expression
“p∧q”
Chapter 1 DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 2
Truth Table
 The disjunction of two propositions p and q can be represented as an algebraic expression
“pVq”
 Compound propositions can be represented by a Boolean expression
The truth table of a compound proposition is exactly a tabular description of the value of the
corresponding Boolean expression for all possible combinations of the values of the atomic
propositions.
Example-1
“I will go to the match either if there is no examination tomorrow or if there is an examination
tomorrow and the match is a championship tournament”
Solution
p = “there is an examination tomorrow”
q = “the match is a championship tournament”
∴ I will go the match if the position p V (p ∧ q)is true
 A proposition obtained from the combination of other propositions is referred to as a
compound propositions.
 Let p and q be two propositions, then define the propositions as “p then q”, denoted as
(p→q) is (“p implies ”q)
 This is true, if both p and q are true or if p is false.
 It is false if p is true and q is false specified as in the table
Truth Table
p
T
q
T
T
F
F
T
F F
p ⟶ q
T
F
T
T
p
T
q
T
T
F
F
T
F F
p ∨ q
T
T
T
F
p
T
q
T
T
F
F
T
F F
p q
T
F
F
F
Chapter 1 DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 3
Example-2
“The temperature exceeds 700C” and “The alarm will be sounded” denoted as p and q
respectively.
 “If the temperature exceeds 700C then the alarm will be sounded “ = r i.e. it is true if the
alarm is sounded when the temperature exceeds 700C (p & q are true) and is false if the alarm
is not sounded when the, temperature exceeds 700C. (p is true & q is false).
 p ↔ q is true if both p and q are true or If both p and q are false
 It is false if p is true while q is false and if p is false while q is true.
 If p and q are 2 propositions then “p bi implication q” is a compound proposition denoted by
Truth Table
Example-3
p = “a new computer will be acquired”
q = “additional funding is available”
Consider the proposition, “A new computer will be acquired if and only if additional funding is
available” = r.
- ‘‘r’’ is true if a new computer is indeed acquired when additional funding is available (p
and q are true)
- the proposition r is also true if no new computer is acquired when additional funding is
not available (p and q are false)
- The r is false if a new computer acquired. Although no additional funding is available. (P is
true & q is false)
- “r” is false if no new computer is acquired although additional funding is available (p is
false & q is true)
 Two compound propositions are said to be equivalent if they have the same truth tables.
Replacement of an algebraic expressions involving the operations ⇢ and ↔ by equivalent
algebraic expressions involves only the operations ∧, V and
Equation
p q p→ q ~p ~p V q
T T T F T
T F F F F
F T T T T
F F T T T
∴ p → q = p v q
Similarly p ↔ q = (p∧q) V (~p ∧ ~q)
p
T
q
T
T
F
F
T
F F
p q
T
F
F
T
Chapter 1 DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 4
Example-4
p → q = (~p v q)
= ~ ~ (q) v ~p
= ~q → ~ p
Given below are some of the equivalence propositions.
~(~( ))
~( ∨ ) ~ ∧ ~
~( ∧ ) ~ ∨ ~
⟶ ~ ∨
(~ ∨ ) ∧ (~ ∨ ) ( ∧ ) ∨ ( ∧ ) ( → ) ∧ ( → )
 A propositional function is a function whose variables are propositions
 A propositional function p is called tautology if the truth table of p contains all the entries
as true
 A propositional function p is called contradiction if the truth table of p contains all the
entries as false
 A propositional function p which is neither tautology nor contradiction is called
contingency.
 A proposition p logically implies proposition q. If ⟶ is a tautology.
 Inference will be used to designate a set of premises accompanied by a suggested
conclusion.
(p ∧ p ∧ p p ) ⟶ Q
Here each p is called premise and Q is called conclusion.
 If (p ∧ p ∧ p p ) ⟶ Q is tautology then we say Q is logically derived from p ∧ p p
i.e., from set of premises, otherwise it is called invalid inference.
Rules of Inference for Propositional Logic
Inference rule Tautology Name
∴ (p∧(p→q)) → q Modus ponens (mode that affirms)
∴

→

(q∧(p→q))→p Modus tollens (mode that denies)
∴
→
→
→
((p→q) ∧(q→r)) →(p→r) Hypothetical syllogism
∴
∨
 ((p∨q)∧(p))→q Disjunctive syllogism
∴
∨q
p→(p ∨ q) Addition
∴
∧
(p ∧ q)→p Simplification
∴
∧
((p) ∧(q)) →(p∧q) Conjunction
∴
∨
 ∨
∨
((p ∨q) ∧(p∨r) →(q∨r) Resolution
Chapter 1 DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 5
First Order Logic
1. Let A be a given set. A propositional function (or an open sentence or condition) definedon A
is an expression p(x) which has the property that p(a) is true or false for each ‘a’ in A. That
is, p(x) becomes a statement (with a truth value) whenever any element a ∈ A is
substituted for the variable x.
2. The set A is called the domain of p(x), and the set Tp of all elements of A for which p(a) is
true is called the truth set of p(x).
Tp = {x | x ∈ A, p(x) is true} or Tp = {x | p(x)}.
3. Frequently, when A is some set of numbers, the condition p(x) has the form of an equation
or inequality involving the variable x.
4. The symbol ∀ which reads “for all” or “for every” is called the universal quantifier.
5. The expression (∀x∈A) p(x) or ∀x p(x)is true if and only if p(x)is true for all x in A.
6. The symbol ∃ which reads “there exists” or “for some” or “for at least one” is called the
existential quantifier.
7. The expression (∃x ∈ A)p(x) or ∃x, p(x) is true if and only if p(a) is true for at least one
element x in A.
Sentence Abbreviated Meaning
∀ x, F(x) all true
∃x, F(x) at least one true
~,∃x, F(x)] none true
∀ x, ,~F(x)- all false
∃x, ,~F(x)- at least one false
- (∃x,[~F(x)]) none false
~(∀ x,,F(x)-) not all true
~(∀ x, ,~F(x)-) not all false
“all true” ∀x, F(x)=~,∃x,~F(x)- “none false”
“all false” (∀x, ,~F(x)-+=*~, ∃x, F(x)-) “none true”
“not all true” (~,∀x, F(x)-)=(∃x, ,~F(x)) “at least one false”
“not all false” (~,∀x,~F(x)])= ∃x, F(x) “at least one true”
Statement Negation
“all true” ∀x, F(x) ∃x, ,~F(x)- “ at least one is false”
“at least one is false” ∃x, ,~F(x)- ∀x, F(x) “all true”
“all false” ∀x, ,~F(x)- ∃x, F(x) “at least one is true”
“at least one is true” ∃x, F(x) ∀x, ,~F(x)- “all false”
Chapter 1 DMGT
THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th
Cross, 10th
Main, Jayanagar 4th
Block, Bangalore-11
: 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 6
We see that to form the negation of a statement involving one quantifier, we need to only change
the quantifier from universal to existential, or from existential to universal and negate the
statements which it quantifies.
Sentences with Multiple Quantifiers
In general if P (x, y) is any predicate involving the two variables x and y, then the following
possibilities exist
(∀x)(∀y)P (x,y)
(∃x)(∀y)P (x,y) (∃x)(∃y) P (x,y)
(∀y)(∀x)P (x,y)
(∀y)(∃x)P (x,y)
Rules of Inference For Quantified Propositions
“Universal Instantiation”
If a statement of the form ∀x, P(x) is assumed to be true then the universal quantifier can be
dropped to obtain that P(c) is true for any arbitrary object c in the universe. This rule may be
represented as
∀ , ( )
∴ P(C)
“Universal Generalization”
If a statement P(c) is true for each element c of the universe, then the universal quantifier may
be prefixed to obtain ∀x, P(x), In symbols, this rule is
( )
∴ ∀ , ( )
This rule holds provided we know P(c) is true for each element c in the universe.
“Existential Instantiation”
If ∃x, P(x) is assumed to be true, then there is an element c in the universe such that P(c) is true
This rule takes the form.
∃ , ( )
∴ ( ) c
“Existential Generalization”
If P(c) is true for some element c in the universe, then ∃x, P(x) is true In symbols, we have
P(c)for some c
∴ ∃x, P(x)
Generally speaking, in order to draw conclusions from quantified premises, we need to remove
quantifiers properly, argue with the resulting propositions, and then properly prefix the correct
quantifiers.
Computer Science Engineering: Discrete mathematics & graph theory, THE GATE ACADEMY

Contenu connexe

Tendances

Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer scienceBindhuBhargaviTalasi
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleMuhammadUsmanIkram2
 
Discrete mathematics counting and logic relation
Discrete mathematics counting and logic relationDiscrete mathematics counting and logic relation
Discrete mathematics counting and logic relationSelf-Employed
 
PROLOG: Database Manipulation In Prolog
PROLOG: Database Manipulation In PrologPROLOG: Database Manipulation In Prolog
PROLOG: Database Manipulation In PrologDataminingTools Inc
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inferenceSlideshare
 
Topic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsTopic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsKM Bappi
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAkila Krishnamoorthy
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmsswapnac12
 
Algorithmic Puzzles [Levitin & Levitin 2011-10-14].pdf
Algorithmic Puzzles [Levitin & Levitin 2011-10-14].pdfAlgorithmic Puzzles [Levitin & Levitin 2011-10-14].pdf
Algorithmic Puzzles [Levitin & Levitin 2011-10-14].pdfSelvakanmani S
 
Solving recurrences
Solving recurrencesSolving recurrences
Solving recurrencesMegha V
 
Opearion on Fuzzy sets with Example
Opearion on Fuzzy sets with ExampleOpearion on Fuzzy sets with Example
Opearion on Fuzzy sets with ExampleKarthikeyan Sankar
 
Branch and bound method
Branch and bound methodBranch and bound method
Branch and bound methodVidhyaSenthil
 
Borewell piping system - Trubore Pipes
Borewell piping system - Trubore PipesBorewell piping system - Trubore Pipes
Borewell piping system - Trubore Pipestruborepipesindia
 
data structures- back tracking
data structures- back trackingdata structures- back tracking
data structures- back trackingAbinaya B
 
Data Structure Radix Sort
Data Structure Radix SortData Structure Radix Sort
Data Structure Radix SortBhavik Vashi
 

Tendances (20)

Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with Example
 
Discrete mathematics counting and logic relation
Discrete mathematics counting and logic relationDiscrete mathematics counting and logic relation
Discrete mathematics counting and logic relation
 
PROLOG: Database Manipulation In Prolog
PROLOG: Database Manipulation In PrologPROLOG: Database Manipulation In Prolog
PROLOG: Database Manipulation In Prolog
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Topic 1.4: Randomized Algorithms
Topic 1.4: Randomized AlgorithmsTopic 1.4: Randomized Algorithms
Topic 1.4: Randomized Algorithms
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA Conversion
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Algorithmic Puzzles [Levitin & Levitin 2011-10-14].pdf
Algorithmic Puzzles [Levitin & Levitin 2011-10-14].pdfAlgorithmic Puzzles [Levitin & Levitin 2011-10-14].pdf
Algorithmic Puzzles [Levitin & Levitin 2011-10-14].pdf
 
Solving recurrences
Solving recurrencesSolving recurrences
Solving recurrences
 
Opearion on Fuzzy sets with Example
Opearion on Fuzzy sets with ExampleOpearion on Fuzzy sets with Example
Opearion on Fuzzy sets with Example
 
Sortingnetworks
SortingnetworksSortingnetworks
Sortingnetworks
 
Kruskal’s Algorithm
Kruskal’s AlgorithmKruskal’s Algorithm
Kruskal’s Algorithm
 
Branch and bound method
Branch and bound methodBranch and bound method
Branch and bound method
 
Borewell piping system - Trubore Pipes
Borewell piping system - Trubore PipesBorewell piping system - Trubore Pipes
Borewell piping system - Trubore Pipes
 
Differential evolution optimization technique
Differential evolution optimization techniqueDifferential evolution optimization technique
Differential evolution optimization technique
 
data structures- back tracking
data structures- back trackingdata structures- back tracking
data structures- back tracking
 
Curve Fitting
Curve FittingCurve Fitting
Curve Fitting
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Data Structure Radix Sort
Data Structure Radix SortData Structure Radix Sort
Data Structure Radix Sort
 

En vedette

Mathematics 3 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 3 handwritten classes notes (study materials) for IES PSUs GATEMathematics 3 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 3 handwritten classes notes (study materials) for IES PSUs GATEKhagendra Gautam
 
Mathematics 2 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 2 handwritten classes notes (study materials) for IES PSUs GATEMathematics 2 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 2 handwritten classes notes (study materials) for IES PSUs GATEKhagendra Gautam
 
Mathematics 1 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 1 handwritten classes notes (study materials) for IES PSUs GATEMathematics 1 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 1 handwritten classes notes (study materials) for IES PSUs GATEKhagendra Gautam
 
Gate mathematics questions all branch by s k mondal
Gate mathematics questions all branch by s k mondalGate mathematics questions all branch by s k mondal
Gate mathematics questions all branch by s k mondalAashishv
 
Discrete Mathematics - Mathematics For Computer Science
Discrete Mathematics -  Mathematics For Computer ScienceDiscrete Mathematics -  Mathematics For Computer Science
Discrete Mathematics - Mathematics For Computer ScienceRam Sagar Mourya
 
Mechanical Engineering : Engineering mechanics, THE GATE ACADEMY
Mechanical Engineering  : Engineering mechanics, THE GATE ACADEMYMechanical Engineering  : Engineering mechanics, THE GATE ACADEMY
Mechanical Engineering : Engineering mechanics, THE GATE ACADEMYklirantga
 
Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...
Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...
Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...Khagendra Gautam
 

En vedette (10)

Gate 2013-ppt
Gate 2013-pptGate 2013-ppt
Gate 2013-ppt
 
Mathematics 3 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 3 handwritten classes notes (study materials) for IES PSUs GATEMathematics 3 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 3 handwritten classes notes (study materials) for IES PSUs GATE
 
Mathematics 2 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 2 handwritten classes notes (study materials) for IES PSUs GATEMathematics 2 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 2 handwritten classes notes (study materials) for IES PSUs GATE
 
Mathematics 1 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 1 handwritten classes notes (study materials) for IES PSUs GATEMathematics 1 handwritten classes notes (study materials) for IES PSUs GATE
Mathematics 1 handwritten classes notes (study materials) for IES PSUs GATE
 
Gate mathematics questions all branch by s k mondal
Gate mathematics questions all branch by s k mondalGate mathematics questions all branch by s k mondal
Gate mathematics questions all branch by s k mondal
 
Gate maths
Gate mathsGate maths
Gate maths
 
Gate mathematics
Gate mathematicsGate mathematics
Gate mathematics
 
Discrete Mathematics - Mathematics For Computer Science
Discrete Mathematics -  Mathematics For Computer ScienceDiscrete Mathematics -  Mathematics For Computer Science
Discrete Mathematics - Mathematics For Computer Science
 
Mechanical Engineering : Engineering mechanics, THE GATE ACADEMY
Mechanical Engineering  : Engineering mechanics, THE GATE ACADEMYMechanical Engineering  : Engineering mechanics, THE GATE ACADEMY
Mechanical Engineering : Engineering mechanics, THE GATE ACADEMY
 
Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...
Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...
Aptitude 1 Handwritten classes Notes (Study Materials) for IES PSUs GATE Bank...
 

Similaire à Computer Science Engineering: Discrete mathematics & graph theory, THE GATE ACADEMY

Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system banujahir1
 
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMYComputer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMYklirantga
 
Rules of inference
Rules of inferenceRules of inference
Rules of inferenceLakshmi R
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdfrAjyarAjanItjJa
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]DIwakar Rajput
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logicLakshmi R
 
02 The Math for Analysis of Algorithms
02 The Math for Analysis of Algorithms02 The Math for Analysis of Algorithms
02 The Math for Analysis of AlgorithmsAndres Mendez-Vazquez
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptxDakshBaveja
 
Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsWongyos Keardsri
 

Similaire à Computer Science Engineering: Discrete mathematics & graph theory, THE GATE ACADEMY (20)

AI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdfAI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdf
 
Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system
 
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMYComputer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Tutorial_2.pdf
Tutorial_2.pdfTutorial_2.pdf
Tutorial_2.pdf
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
DS_unit1.ppt
DS_unit1.pptDS_unit1.ppt
DS_unit1.ppt
 
Dismath part2 2013
Dismath part2 2013Dismath part2 2013
Dismath part2 2013
 
dma_ppt.pdf
dma_ppt.pdfdma_ppt.pdf
dma_ppt.pdf
 
Course notes1
Course notes1Course notes1
Course notes1
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]
 
Per3 pembuktian
Per3 pembuktianPer3 pembuktian
Per3 pembuktian
 
DISMATH_Part2
DISMATH_Part2DISMATH_Part2
DISMATH_Part2
 
DISMATH_Part1
DISMATH_Part1DISMATH_Part1
DISMATH_Part1
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 
02 The Math for Analysis of Algorithms
02 The Math for Analysis of Algorithms02 The Math for Analysis of Algorithms
02 The Math for Analysis of Algorithms
 
L2.pdf
L2.pdfL2.pdf
L2.pdf
 
4. symbolic logic
4. symbolic logic4. symbolic logic
4. symbolic logic
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
 
Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and Proofs
 

Plus de klirantga

Instrumentation Engineering : Transducers, THE GATE ACADEMY
 Instrumentation Engineering : Transducers, THE GATE ACADEMY Instrumentation Engineering : Transducers, THE GATE ACADEMY
Instrumentation Engineering : Transducers, THE GATE ACADEMYklirantga
 
Instrumentation Engineering : Signals & systems, THE GATE ACADEMY
Instrumentation Engineering : Signals & systems, THE GATE ACADEMYInstrumentation Engineering : Signals & systems, THE GATE ACADEMY
Instrumentation Engineering : Signals & systems, THE GATE ACADEMYklirantga
 
Electrical and Electronics Engineering : Power electronics, THE GATE ACADEMY
Electrical and Electronics Engineering : Power electronics, THE GATE ACADEMYElectrical and Electronics Engineering : Power electronics, THE GATE ACADEMY
Electrical and Electronics Engineering : Power electronics, THE GATE ACADEMYklirantga
 
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMYElectronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMYklirantga
 
Electronics and Communication Engineering : Control systems, THE GATE ACADEMY
 Electronics and Communication Engineering  : Control systems, THE GATE ACADEMY Electronics and Communication Engineering  : Control systems, THE GATE ACADEMY
Electronics and Communication Engineering : Control systems, THE GATE ACADEMYklirantga
 
Electronics and Communication Engineering : Communications, THE GATE ACADEMY
Electronics and Communication Engineering : Communications, THE GATE ACADEMYElectronics and Communication Engineering : Communications, THE GATE ACADEMY
Electronics and Communication Engineering : Communications, THE GATE ACADEMYklirantga
 
Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMY
 Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMY Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMYklirantga
 
Civil Engineering : Rcc & steel structures, THE GATE ACADEMY
Civil Engineering : Rcc & steel structures, THE GATE ACADEMYCivil Engineering : Rcc & steel structures, THE GATE ACADEMY
Civil Engineering : Rcc & steel structures, THE GATE ACADEMYklirantga
 
Gate material civil engineering, environmental engineering
Gate material   civil engineering, environmental engineeringGate material   civil engineering, environmental engineering
Gate material civil engineering, environmental engineeringklirantga
 

Plus de klirantga (9)

Instrumentation Engineering : Transducers, THE GATE ACADEMY
 Instrumentation Engineering : Transducers, THE GATE ACADEMY Instrumentation Engineering : Transducers, THE GATE ACADEMY
Instrumentation Engineering : Transducers, THE GATE ACADEMY
 
Instrumentation Engineering : Signals & systems, THE GATE ACADEMY
Instrumentation Engineering : Signals & systems, THE GATE ACADEMYInstrumentation Engineering : Signals & systems, THE GATE ACADEMY
Instrumentation Engineering : Signals & systems, THE GATE ACADEMY
 
Electrical and Electronics Engineering : Power electronics, THE GATE ACADEMY
Electrical and Electronics Engineering : Power electronics, THE GATE ACADEMYElectrical and Electronics Engineering : Power electronics, THE GATE ACADEMY
Electrical and Electronics Engineering : Power electronics, THE GATE ACADEMY
 
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMYElectronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Digital circuits, THE GATE ACADEMY
 
Electronics and Communication Engineering : Control systems, THE GATE ACADEMY
 Electronics and Communication Engineering  : Control systems, THE GATE ACADEMY Electronics and Communication Engineering  : Control systems, THE GATE ACADEMY
Electronics and Communication Engineering : Control systems, THE GATE ACADEMY
 
Electronics and Communication Engineering : Communications, THE GATE ACADEMY
Electronics and Communication Engineering : Communications, THE GATE ACADEMYElectronics and Communication Engineering : Communications, THE GATE ACADEMY
Electronics and Communication Engineering : Communications, THE GATE ACADEMY
 
Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMY
 Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMY Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMY
Electronics and Communication Engineering : Analog circuits, THE GATE ACADEMY
 
Civil Engineering : Rcc & steel structures, THE GATE ACADEMY
Civil Engineering : Rcc & steel structures, THE GATE ACADEMYCivil Engineering : Rcc & steel structures, THE GATE ACADEMY
Civil Engineering : Rcc & steel structures, THE GATE ACADEMY
 
Gate material civil engineering, environmental engineering
Gate material   civil engineering, environmental engineeringGate material   civil engineering, environmental engineering
Gate material civil engineering, environmental engineering
 

Dernier

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Dernier (20)

How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 

Computer Science Engineering: Discrete mathematics & graph theory, THE GATE ACADEMY

  • 1.
  • 2. DISCRETE MATHEMATICS & GRAPH THEORY For Computer Science & Information Technology By www.thegateacademy.com
  • 3. Syllabus DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Syllabus for Discrete Mathematics & Graph Theory Connectivity; spanning trees; Cut vertices & edges; covering; matching; independent sets; Colouring; Planarity; Isomorphism. Analysis of GATE Papers (DDiissccrreettee MMaatthheemmaattiiccss && GGrraapphh TThheeoorryy) Year Percentage of marks Overall Percentage 2013 9.00 14.66 % 2012 10.00 2011 10.00 2010 7.00 2009 10.66 2008 18.00 2007 17.33 2006 16.67 2005 20.00 2004 19.33 2003 23.33
  • 4. Content DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page i C O N T E N T S Chapter Page No. #1. Mathematical Logic 1 - 24  Syntax 1  Propositional Logic 1 - 4  First order logic 5 - 7  Disjunction Normal Form 7  Solved Examples 8 - 16  Assignment 1 17 - 18  Assignment 2 19 - 20  Answer Keys 21  Explanations 21 - 24 #2. Combinatorics 25 - 52  Introduction 25  Permutations 26 – 29  The Inclusion-Exclusion Principle 29 – 31  Derangements 31 - 32  Recurrence Relations 32 – 37  Solved Examples 38 - 40  Assignment 1 41 - 43  Assignment 2 43 - 46  Answer Keys 47  Explanations 47 - 52 #3. Sets and Relations 53 - 92  Sets 53 - 55  Venn Diagram 55 - 58  Poset 58 - 60  Binary Relation 60 - 64  Lattice 64 - 67  Functions 67 - 68  Groups 68 - 72  Solved Examples 73 - 77
  • 5. Content DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page ii  Assignment 1 78 - 81  Assignment 2 81 - 85  Answer Keys 86  Explanations 86 - 92 #4. Graph Theory 93 - 130  Introduction 93 - 94  Degree 94 – 95  The Handshaking Theorem 95 – 97  Some Special Graph 97 - 99  Cut vertices & Cut Edges 99 - 100  Euler Path & Euler Circuit 101  Hamiltonian Path & Circuits 101 - 103  Kuratowski Theorem 104  Four Colour Theorem 104 - 106  Rank & Nullity 107  Solved Examples 108 - 113  Assignment 1 114 - 117  Assignment 2 118 - 123  Answer Keys 124  Explanations 124 - 130 Module Test 131 - 143  Test Questions 131 - 137  Answer Keys 138  Explanations 138 - 143 Reference Books 144
  • 6. Chapter 1 DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 1 CHAPTER 1 Mathematical Logic Logic is a formal language. It has syntax, semantics and a way of manipulating expressions in the language. Syntax Set of rules that define the combination of symbols that are considered to be correctly structured.  Semantics give meaning to legal expressions.  A language is used to describe about a set  Logic usually comes with a proof system which is a way of manipulating syntactic expressions which will give you new syntactic expressions  The new syntactic expressions will have semantics which tell us new information about sets.  In the next 2 topics we will discuss 2 forms of logic 1. Propositional logic 2. First order logic Propositional Logic  Sentences are usually classified as declarative, exclamatory interrogative, or imperative  Proposition is a declarative sentence to which we can assign one and only one of the truth values “true” or “false” and called as zeroth-order-logic.  Prepositions can be combined to yield new propositions Assumptions about propositions  For every proposition p, either p is true or p is false  For every proposition p, it is not the case that p is both true and false.  Propositions may be connected by logical connective to form compound proposition. The truth value of the compound proposition is uniquely determined by the truth values of simple propositions.  An algebraic system ({F, T}, V, ∧, -) where the definitions of components are. -A tautology corresponds to the constant T and a contradiction corresponds to constant F. The definitions of ∧, V and  are given below. V F T ∧ F T  F F T F F F F T T T T T F T T F  The negation of a propositions p can be represented by the algebraic expression p  The conjunction of two propositions p and q can be represented as an algebraic expression “p∧q”
  • 7. Chapter 1 DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 2 Truth Table  The disjunction of two propositions p and q can be represented as an algebraic expression “pVq”  Compound propositions can be represented by a Boolean expression The truth table of a compound proposition is exactly a tabular description of the value of the corresponding Boolean expression for all possible combinations of the values of the atomic propositions. Example-1 “I will go to the match either if there is no examination tomorrow or if there is an examination tomorrow and the match is a championship tournament” Solution p = “there is an examination tomorrow” q = “the match is a championship tournament” ∴ I will go the match if the position p V (p ∧ q)is true  A proposition obtained from the combination of other propositions is referred to as a compound propositions.  Let p and q be two propositions, then define the propositions as “p then q”, denoted as (p→q) is (“p implies ”q)  This is true, if both p and q are true or if p is false.  It is false if p is true and q is false specified as in the table Truth Table p T q T T F F T F F p ⟶ q T F T T p T q T T F F T F F p ∨ q T T T F p T q T T F F T F F p q T F F F
  • 8. Chapter 1 DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 3 Example-2 “The temperature exceeds 700C” and “The alarm will be sounded” denoted as p and q respectively.  “If the temperature exceeds 700C then the alarm will be sounded “ = r i.e. it is true if the alarm is sounded when the temperature exceeds 700C (p & q are true) and is false if the alarm is not sounded when the, temperature exceeds 700C. (p is true & q is false).  p ↔ q is true if both p and q are true or If both p and q are false  It is false if p is true while q is false and if p is false while q is true.  If p and q are 2 propositions then “p bi implication q” is a compound proposition denoted by Truth Table Example-3 p = “a new computer will be acquired” q = “additional funding is available” Consider the proposition, “A new computer will be acquired if and only if additional funding is available” = r. - ‘‘r’’ is true if a new computer is indeed acquired when additional funding is available (p and q are true) - the proposition r is also true if no new computer is acquired when additional funding is not available (p and q are false) - The r is false if a new computer acquired. Although no additional funding is available. (P is true & q is false) - “r” is false if no new computer is acquired although additional funding is available (p is false & q is true)  Two compound propositions are said to be equivalent if they have the same truth tables. Replacement of an algebraic expressions involving the operations ⇢ and ↔ by equivalent algebraic expressions involves only the operations ∧, V and Equation p q p→ q ~p ~p V q T T T F T T F F F F F T T T T F F T T T ∴ p → q = p v q Similarly p ↔ q = (p∧q) V (~p ∧ ~q) p T q T T F F T F F p q T F F T
  • 9. Chapter 1 DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 4 Example-4 p → q = (~p v q) = ~ ~ (q) v ~p = ~q → ~ p Given below are some of the equivalence propositions. ~(~( )) ~( ∨ ) ~ ∧ ~ ~( ∧ ) ~ ∨ ~ ⟶ ~ ∨ (~ ∨ ) ∧ (~ ∨ ) ( ∧ ) ∨ ( ∧ ) ( → ) ∧ ( → )  A propositional function is a function whose variables are propositions  A propositional function p is called tautology if the truth table of p contains all the entries as true  A propositional function p is called contradiction if the truth table of p contains all the entries as false  A propositional function p which is neither tautology nor contradiction is called contingency.  A proposition p logically implies proposition q. If ⟶ is a tautology.  Inference will be used to designate a set of premises accompanied by a suggested conclusion. (p ∧ p ∧ p p ) ⟶ Q Here each p is called premise and Q is called conclusion.  If (p ∧ p ∧ p p ) ⟶ Q is tautology then we say Q is logically derived from p ∧ p p i.e., from set of premises, otherwise it is called invalid inference. Rules of Inference for Propositional Logic Inference rule Tautology Name ∴ (p∧(p→q)) → q Modus ponens (mode that affirms) ∴  →  (q∧(p→q))→p Modus tollens (mode that denies) ∴ → → → ((p→q) ∧(q→r)) →(p→r) Hypothetical syllogism ∴ ∨  ((p∨q)∧(p))→q Disjunctive syllogism ∴ ∨q p→(p ∨ q) Addition ∴ ∧ (p ∧ q)→p Simplification ∴ ∧ ((p) ∧(q)) →(p∧q) Conjunction ∴ ∨  ∨ ∨ ((p ∨q) ∧(p∨r) →(q∨r) Resolution
  • 10. Chapter 1 DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 5 First Order Logic 1. Let A be a given set. A propositional function (or an open sentence or condition) definedon A is an expression p(x) which has the property that p(a) is true or false for each ‘a’ in A. That is, p(x) becomes a statement (with a truth value) whenever any element a ∈ A is substituted for the variable x. 2. The set A is called the domain of p(x), and the set Tp of all elements of A for which p(a) is true is called the truth set of p(x). Tp = {x | x ∈ A, p(x) is true} or Tp = {x | p(x)}. 3. Frequently, when A is some set of numbers, the condition p(x) has the form of an equation or inequality involving the variable x. 4. The symbol ∀ which reads “for all” or “for every” is called the universal quantifier. 5. The expression (∀x∈A) p(x) or ∀x p(x)is true if and only if p(x)is true for all x in A. 6. The symbol ∃ which reads “there exists” or “for some” or “for at least one” is called the existential quantifier. 7. The expression (∃x ∈ A)p(x) or ∃x, p(x) is true if and only if p(a) is true for at least one element x in A. Sentence Abbreviated Meaning ∀ x, F(x) all true ∃x, F(x) at least one true ~,∃x, F(x)] none true ∀ x, ,~F(x)- all false ∃x, ,~F(x)- at least one false - (∃x,[~F(x)]) none false ~(∀ x,,F(x)-) not all true ~(∀ x, ,~F(x)-) not all false “all true” ∀x, F(x)=~,∃x,~F(x)- “none false” “all false” (∀x, ,~F(x)-+=*~, ∃x, F(x)-) “none true” “not all true” (~,∀x, F(x)-)=(∃x, ,~F(x)) “at least one false” “not all false” (~,∀x,~F(x)])= ∃x, F(x) “at least one true” Statement Negation “all true” ∀x, F(x) ∃x, ,~F(x)- “ at least one is false” “at least one is false” ∃x, ,~F(x)- ∀x, F(x) “all true” “all false” ∀x, ,~F(x)- ∃x, F(x) “at least one is true” “at least one is true” ∃x, F(x) ∀x, ,~F(x)- “all false”
  • 11. Chapter 1 DMGT THE GATE ACADEMY PVT.LTD. H.O.: #74, Keshava Krupa (third Floor), 30th Cross, 10th Main, Jayanagar 4th Block, Bangalore-11 : 080-65700750,  info@thegateacademy.com © Copyright reserved. Web: www.thegateacademy.com Page 6 We see that to form the negation of a statement involving one quantifier, we need to only change the quantifier from universal to existential, or from existential to universal and negate the statements which it quantifies. Sentences with Multiple Quantifiers In general if P (x, y) is any predicate involving the two variables x and y, then the following possibilities exist (∀x)(∀y)P (x,y) (∃x)(∀y)P (x,y) (∃x)(∃y) P (x,y) (∀y)(∀x)P (x,y) (∀y)(∃x)P (x,y) Rules of Inference For Quantified Propositions “Universal Instantiation” If a statement of the form ∀x, P(x) is assumed to be true then the universal quantifier can be dropped to obtain that P(c) is true for any arbitrary object c in the universe. This rule may be represented as ∀ , ( ) ∴ P(C) “Universal Generalization” If a statement P(c) is true for each element c of the universe, then the universal quantifier may be prefixed to obtain ∀x, P(x), In symbols, this rule is ( ) ∴ ∀ , ( ) This rule holds provided we know P(c) is true for each element c in the universe. “Existential Instantiation” If ∃x, P(x) is assumed to be true, then there is an element c in the universe such that P(c) is true This rule takes the form. ∃ , ( ) ∴ ( ) c “Existential Generalization” If P(c) is true for some element c in the universe, then ∃x, P(x) is true In symbols, we have P(c)for some c ∴ ∃x, P(x) Generally speaking, in order to draw conclusions from quantified premises, we need to remove quantifiers properly, argue with the resulting propositions, and then properly prefix the correct quantifiers.