Unint I DMS LM
Unint I DMS LM
HANDOUT
on
Vision :
Mission:
CO3: apply the concepts of group theory in robotics, computer vision &
computer graphics.
CO4: use the concepts of graph theory to provide solutions for routing
applications in computer networks.
CO5: apply the recurrence relation for analyzing recursive algorithms.
5. Program Outcomes:
Graduates of the Computer Science and Engineering Program will have
a) an ability to apply knowledge of mathematics, science, and engineering
b) an ability to design and conduct experiments, as well as to analyze and
interpret data
c) an ability to design a system, component, or process to meet desired needs
within realistic constraints such as economic, environmental, social,
political, ethical, health and safety, manufacturability, and sustainability
d) an ability to function on multidisciplinary teams
e) an ability to identify, formulate, and solve engineering problems
f) an understanding of professional and ethical responsibility
g) an ability to communicate effectively
h) the broad education necessary to understand the impact of engineering
solutions in a global, economic, environmental, and societal context
i) a recognition of the need for, and an ability to engage in life-long learning,
j) a knowledge of contemporary issues
k) an ability to use the techniques, skills, and modern engineering tools
necessary for engineering practice.
a b c d e f g h i j k
CO1 2 3 2 2
CO2 3 2
CO3 3 3 3 3
CO4 3 3 3 3
CO5 2 2 1
Equivalence of Formulas 2
Tautological Implications 1
Theory of Inference for Statement Calculus 2 2
Consistency of Premises 1
UNIT – 2: Relations & Functions
Relations: Properties of Binary Relations 1
Equivalence 1
Compatibility and Partial order relations 2
2
Hasse Diagram 1
Functions : Inverse 1
Composite and Recursive functions 2 2
Pigeon hole principle and its application 1
UNIT – 3: Algebraic Structures
Algebraic Systems and Examples 1
general properties 1
2
semi group, Monoid 1
Groups 2
Subgroups 2
2
Cyclic groups 2
UNIT – 4: Graph Theory - I:
Concepts of Graphs 1
2
Sub graphs, Multigraphs 2
Matrix Representation of Graphs: Adjacency and
2
incidence Matrices 2
Isomorphic Graphs 2
UNIT – 5: Graph Theory - II:
Paths and Circuits, Eulerian graph 2 2
Planar graphs 2
Hamiltonian Graph 2
Chromatic number of a graph 1
UNIT – 6: Combinatorics and Recurrence Relation:
Basics of Counting principles ( sum rule and
1
product rule)
2
Solving linear homogeneous recurrence Relations
1
by substitution
The Method of Characteristic Roots
2
2
Solving Inhomogeneous Recurrence Relations 2
Total No. of Periods: 48 24
UNIT – I
Mathematical Logic
Objectives:
To comprehend the structure of statements (and arguments) involving
predicates and quantifiers
Syllabus:
Mathematical Logic: Propositional Calculus: Statements and Notations,
Connectives, Truth Tables, Tautologies, Equivalence of Formulas, Tautological
Implications, Theory of Inference for Statement Calculus, Consistency of
Premises.
Sub Outcomes:
Construct truth tables for different types of connectives.
Identify the tautologies.
Determine the equivalence formulas and tautological implications.
Learning Material
Statement:
A declarative sentence which is either true or false but not both is called
a statement or proposition.
Examples:
A statement that cannot be broken down into more than one simpler
statement is called atomic statement.
Compound statement:
Propositional calculus:
Truth value:
Connectives:
And, or, if then, iff, not, so, because are sentential connectives.
are mathematical connectives.
The table showing the truth values of a statement formula for each
possible combination of the truth values of the compound statements is called
the truth table of the formula.
P Q P Q Q
T T T T T T F
T F F T F F F
F T F T T F T
F F F F T T T
Example Problems:
“If either John takes Computer science or Merin takes Mathematics then
Nishanth will take Biology.”
“You can access the internet from campus only if you are a Computer
science major student or you are not a freshman.”
(For student)
1.
P Q
T T F F F T
T F F T T F
F T T F T F
F F T T T F
2. P
P Q R P P
A B B
T T T F F F F T T T T
T T F F F F F F F F F
T F T F T T F F T F T
T F F F T F F F F F F
F T T T F F F T F T T
F T F T F F F F F F F
F F T T T T T F F T T
F F F T T F F F F F F
3. (For student)
4. (For student)
Inverse: If I not get good rank in EAMCET , then I will not choose CSE.
Contra positive: If I will not choose CSE, then I did not get good rank in
EAMCET.
Q. What are the inverse, converse, and contra positive of the implication “If
today is a holiday, then I will go for a movie “
( For student )
A statement
formula
Tautology:
Contradiction:
Contingency:
p Q r
A B C D E
T T T T T T T T T
T T F T F F F F T
T F T F T T T T T
T F F F T F T T T
F T T T T T T T T
F T F T F T T T T
F F T T T T T T T
F F F T T T T T T
Hence the given statement is Tautology.
Q. Show that is a contradiction.
P q
T T F F F
T F T T F
F T F F F
F F T F F
Hence the given statement is Contradiction.
Equivalence formulas:
The two propositions A and B are said to be logically equivalent if
is a tautology.
And written as and read as A is equivalent to B.
Q. show that
P Q
T T F T T
T F F F F
F T T T T
F F T T T
Hence
Q. Show that
P Q
T T F F T
T F F F F
F T T F T
F F T F F
Hence
Equivalence Rules :
Idempotent Laws: p ∨ p ⇔ p
p∧p⇔p
p∧q⇔q∧p
Associative Laws: (p ∨ q) ∨ r ⇔ p ∨ (q ∨ r)
(p ∧ q) ∧ r ⇔ p ∧ (q ∧ r)
Distributive Laws: p ∨ (q ∧ r) ⇔ (p ∨ q) ∧ (p ∨ r)
p ∧ (q ∨ r) ⇔ (p ∧ q) ∨ (p ∧ r)
p∨F⇔p
Domination Laws: p ∨ T ⇔ T
p∧F⇔F
¬(p ∨ q) ⇔ ¬p ∧ ¬q
Absorption Laws: p ∧ (p ∨ q) ⇔ p
p ∨ (p ∧ q) ⇔ p
Negation Laws: p ∨ ¬p ⇔ T
p ∧ ¬p ⇔ F
Tautological Implications:
Standard Implications:
1. 7.
2. 8.
3. 9.
4. 10.
5. 11.
6.
Note: 1.If a statement formula is equivalent to tautology then it must be a
tautology.
Other connectives:
T T T T T F F F
T F F F T T T F
F T F F T T T F
F F T F F F T T
Theory of Inference
1.
P Q
T T T T F F
T F F F T F
F T T F T T
F F T F T T
Here H1 and H2 are the true in the third and fourth rows and the conclusion C
is also T in these two rows.
Thus . ,
2.
(C) (H2) (
P Q
T T T
T F F
F T T
F F T
Here H1 and H2 are true in the 1st and 3rd rows but conclusion C is true only in
1st row false in 3rd row.
Rules of inferences:
Rule CP: If we can derive S from R and a set of premises, then we can derive
from a set of premises alone.
Sol:
{ 1} (1). Rule P
{ 2} (2). Rule P
{ 1,2 } (3). Rule T on (1),(2) “ ”
{ 4} (4). Rule P
{ 1,2,4 } (5). Rule T on (3),(4) “ ”
Hence R is valid inference
Sol.
(For student)
Sol:
1) PQ P
2) Q R P
3) P R T 1,2 P Q, Q R P R
4) P P
5) R T 3,4 P Q, P Q
6) PR P
7) P T 5,6 P Q, Q P
8) P P
9) P P T 7,8 P, Q P Q
UNIT-I
Assignment-Cum-Tutorial Questions
SECTION-A
Objective Questions
3) What is the truth value of the statement ‘If Charminar is in Hyderabad then
5*3=8’. [ T / F]
6) The converse of the statement “If there is a flood then the crop will be
destroyed” is _________________________________________.
7) Symbolic form of the statement ‘If I do not have car or I do not wear good
dress then I am not a Millionaire’ is _________________ .
8) P and Q are two propositions. Which of the following logical expressions are
equivalent?
I. P ~ Q II. ~ ~ P Q
III. P Q P ~ Q ~ P ~ Q IV. P Q P ~ Q ~ P Q
a) Only I and II b) Only I, II and III c) Only I, II and IV d) All of I, II, III & IV
P1 : A B C A C B C
P2 : A B C A C B C
a) p ( p q ) b) ((( p q) (q r )) p ) r
c) p p q d) p q
a) p q p q b) p q p q
c) p p d) p q p
Section - B
i) ( p → q) ( p → q) ii) p → ( q v r)
(P→(Q→R))→((P→Q)→(P→R)).
3. P and Q are two propositions. Which of the following logical expressions are
equivalent?
tautology?
a) A b) B c) C d) D (GATE 2014)
a) X ≡ Y b) X → Y c) Y → X d) ¬ Y → X (GATE-CS-2005)