Академический Документы
Профессиональный Документы
Культура Документы
(CS2L001)
Dr. P. L. Bera
Assistant Professor
School of Electrical Sciences and Computer Engineering
IIT Bhubaneswar
plb@iitbbs.ac.in
Syllabus
Foundation of Logic: Propositional Logic, Translating english specification in Logic, Applications, Propositional
equivalence, Tautology, Propositional satisfiability, Predicate Logic, Quantifiers, Validity of predicates, Logic
Programming Prolog, Rule of Inference[7L+3T]
Proof Techniques: Introduction to proofs, Proof methods and strategies
[2L + 1T]
Set Theory: Paradoxes in set theory, Inductive definition of sets and proof by induction, Peanos postulates,
Size of a set, Finite and Infinite sets, Countable and uncountable sets, Cantors diagonal argument, Power set
theorem. [3L + 1T]
Functions: Definition, Injections, Surjections, and Bijections, Composition of functions, Inverse functions,
Examples. [2L +1T]
Relations: Properties of relations, Representation of relations, Equivalence relations and partitions, Partial
orderings, posets, Linear and Well-ordered sets. [3L + 1T]
==Mid-Semester===
Graph Theory: Basic properties of graph, degree, path, cycle, subgraphs, directed graphs, isomorphism,
Eulerian and Hamiltonian cycle, connectivity, graph colouring, planner graphs, trees, matching problems,
network flows. [10L +2T]
Induction and Recurrences: Mathematical induction, strong induction and well ordering principle, recursion
and structural induction [3L +1T]
Algebraic Structures and Morphisms: Algebraic structures with one and two binary operations, semigroups,
monoids, groups, rings, fields, lattices, Boolean algebra [4L + 2T]
Probability and Stochastic Processes:
Admin Information
Instructor: Dr. P. L. Bera (plb@iitbbs.ac.in)
Teaching Assistant: Madhukrishna Priyadarshini
(mp18@iitbbs.ac.in)
Grading Scheme
Homework/Assignments: 4 (5 points each)
Attendance: 5 points
Minor (mid-sem): 25 points
Major (end-sem): 50 points
Policy on late submission of homework
To be submitted at the beginning of lecture on the deadline
You will loose 25% points per day for late submission of
homework
You must write homework solution by your own
Padmalochan Bera, SES, IIT Bhubaneswar
Discrete Mathematics
Admin Information
Textbook(s):
Discrete Mathematics and Its Applications by K.
H. Rosen (softcopy will be shared)
Introduction to Graph Theory by Douglus B.
West
Reference Book(s):
Elements of Discrete Mathematics by Liu and
Mohapatra
Introduction to Discrete Mathematics by V. K.
Balkrishnan
Lecture slides will be shared
Padmalochan Bera, SES, IIT Bhubaneswar
Discrete Mathematics
Lecture 1: Introduction
Discrete: separate or distinct, not continuous
Ex: Integers or real numbers encoded to integers
Structure: objects that built from some simpler
Introduction
How to analyze the correctness of the following
program segment:
Swap(int *x, int *y)
f(int x, int y)
{
{ while (x<y) x++;}
t= *x;
*x = *y;
*y = t;
}
Introduction
How to analyze the correctness of the following
program segment:
multiply(int left, int right)
{
If (left<0 || right<0) return -1;
else
{int a =left; int b = right; int p=0;
while (a!=0)
{ p+ = (a%2) * b; a/= 2; b*= 2;}
return p;
}
Padmalochan Bera, SES, IIT Bhubaneswar
Discrete Mathematics
various properties
system specification
of
protocols
and
Lecture 1: Foundation of
Logic
Are these statements proposition?
Washington D. C is the capital of USA
What time is it?
2+2 =5
1+1 = 2
X+1 = 7
Propositional or statement variables to represent
10
pq
11
pq
12
pq
13
Logic
Implication ( ): Let p and q be propositions. The
14
15
Compound proposition
16
17
Lecture1: Foundation of
Logic
Determine whether the following system
specification is consistent:
The diagnostic message is stored in the buffer
or it is retransmitted.
The diagnostic message is not stored in the
buffer.
If the diagnostic message is stored in the
buffer, then it is retransmitted.
Boolean Searches
Logic Puzzles
Designing digital circuit
Padmalochan Bera, SES, IIT Bhubaneswar
Discrete Mathematics
18
Definition
[Logical equivalence]:
A compound
proposition p and q are called logically equivalent if p
q is a tautology. The notation p q denotes that p and
q are logically equivalent.
Padmalochan Bera, SES, IIT Bhubaneswar
Discrete Mathematics
19
20
21
22
Lecture1: Satisfiability
A compound proposition is satisfiable if there
23
Lecture1: Satisfiability
Ex: Determine whether each of the compound propositions
(p q) (q r) (r p), (p q r) (p q
r), and (p q) (q r) (r p) (p q r)
(p q r) is satisfiable.
Application of Satisfiability: many problems in digital circuit
property verification, robotics, software testing, network
security can be modelled as propositional satisfiability
Ex: Solve sudoku puzzle for 9x9 grid made up of 9 3x3
subgrids called blocks. Write the propositions for
modelling sudoku puzzle problem as propositional
satisfiability.
Padmalochan Bera, SES, IIT Bhubaneswar
Discrete Mathematics
24
25
p(i, j, n)
i 1 n 1 j 1
9
9
9contains every number
Assert every column
p(i, j , n)
j 1 n 1 i 1
26
every number.
2
p(3r i,3s j, n)
r 0 s 0 n 1 j 1 i 1
27