Docsity

DMGT Module Wise Study Notes – Mumbai University Sem 3, Summaries of Discrete Mathematics

Toggle sidebar
bg1
DMGT | Module-wise Study Notes | Student learning resource Page 1
DISCRETE MATHEMATICS
AND GRAPH THEORY
MODULE-WISE STUDY NOTES
Semester III | Computer Engineering
Mumbai University – student-friendly revision material
Inside this booklet
• Module 1 – Crisp Set Theory and Logic
• Module 2 – Mathematical Relations, Posets and Lattices
• Module 3 – Functions
• Module 4 – Counting and Recurrence Relations
• Module 5 – Algebraic Structures
• Module 6 – Graph Theory
Original explanatory notes prepared for learning and revision. Examples are illustrative and are not copied from a
textbook.
Syllabus alignment: Mumbai University Computer Engineering, Semester III, NEP 2020 syllabus listing available for 2025–26.
Always compare with the syllabus issued by your college for your admission batch.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download DMGT Module Wise Study Notes – Mumbai University Sem 3 and more Summaries Discrete Mathematics in PDF only on Docsity!

DISCRETE MATHEMATICS

AND GRAPH THEORY

MODULE-WISE STUDY NOTES

Semester III | Computer Engineering Mumbai University – student-friendly revision material

Inside this booklet

  • Module 1 – Crisp Set Theory and Logic
  • Module 2 – Mathematical Relations, Posets and Lattices
  • Module 3 – Functions
  • Module 4 – Counting and Recurrence Relations
  • Module 5 – Algebraic Structures
  • Module 6 – Graph Theory

Original explanatory notes prepared for learning and revision. Examples are illustrative and are not copied from a textbook.

Syllabus alignment: Mumbai University Computer Engineering, Semester III, NEP 2020 syllabus listing available for 2025–26. Always compare with the syllabus issued by your college for your admission batch.

MODULE 1 – CRISP SET THEORY AND LOGIC

This module introduces sets, operations on sets, logical statements, quantifiers and methods used to prove mathematical results.

1.1 Basic Set Theory

Set: A well-defined collection of distinct objects. The objects are called elements. Example: A = {1, 2, 3, 4}.

Roster form: List every element, e.g. A = {a, e, i, o, u}. Set-builder form: Describe a property, e.g. A = {x | x is a positive even integer less than 10}.

Important terms: Empty set (∅) has no elements; universal set (U) contains all objects under discussion; subset (A ⊆ B) means every element of A is in B; proper subset (A ⊂ B) means A ⊆ B and A ≠ B.

1.2 Set Operations

Union: A ∪ B contains elements in A or B or both. Intersection: A ∩ B contains common elements. Difference: A − B contains elements in A but not B. Complement: A′ contains elements in U that are not in A.

Example: If A = {1,2,3} and B = {3,4,5}, then A ∪ B = {1,2,3,4,5}, A ∩ B = {3}, A − B = {1,2}, and B − A = {4,5}.

1.3 Laws of Set Theory

Commutative: A ∪ B = B ∪ A; A ∩ B = B ∩ A. Associative: (A ∪ B) ∪ C = A ∪ (B ∪ C), with the same law for intersection. Distributive: A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).

Identity: A ∪ ∅ = A; A ∩ U = A. Domination: A ∪ U = U; A ∩ ∅ = ∅. Idempotent: A ∪ A = A; A ∩ A = A.

De Morgan's laws: (A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′.

1.4 Propositional Logic

A proposition is a declarative sentence that is either true (T) or false (F), but not both. Example: “7 is prime” is true. A question or command is not a proposition.

Negation (¬p): opposite truth value. AND (p ∧ q): true only when both are true. OR (p ∨ q): true when at least one is true. Implication (p → q): false only when p is true and q is false. Biconditional (p ↔ q): true when p and q have the same truth value.

Truth table

p q p ∧ q p ∨ q p → q p ↔ q

T T T T T T

T F F T F F

F T F T T F

F F F F T T

1.5 Predicate Logic and Quantifiers

A predicate is a statement containing a variable, such as P(x): x is even. Its truth depends on the value of x and the domain.

Universal quantifier ( ∀ ): “for all”. ∀x P(x) means P(x) is true for every x in the domain. Existential quantifier ( ∃ ): “there exists”. ∃x P(x) means at least one value satisfies P.

Negation rules: ¬(∀x P(x)) ≡ ∃x ¬P(x); ¬(∃x P(x)) ≡ ∀x ¬P(x).

Example: “Every student passed” is ∀x P(x). Its negation is “At least one student did not pass” (∃x ¬P(x)).

MODULE 2 – MATHEMATICAL RELATIONS, POSETS AND

LATTICES

Relations describe connections between elements. Posets and lattices organize elements according to a partial order.

2.1 Cartesian Product and Relations

The Cartesian product A × B is the set of ordered pairs (a,b), where a ∈ A and b ∈ B. A relation R from A to B is any subset of A × B. A relation on A is a subset of A × A.

Example: If A={1,2} and B={a,b}, then A×B={(1,a),(1,b),(2,a),(2,b)}. A possible relation is R={(1,a),(2,b)}.

2.2 Representations of Relations

A relation can be represented by ordered pairs, a zero-one matrix, or a directed graph (digraph). In a digraph, elements are vertices and an arrow a → b represents (a,b) ∈ R.

2.3 Properties of Relations

Reflexive: (a,a) ∈ R for every a. Irreflexive: (a,a) ∉ R for every a. Symmetric: if (a,b) ∈ R, then (b,a) ∈ R. Antisymmetric: if (a,b) and (b,a) are in R, then a=b. Transitive: if (a,b) and (b,c) are in R, then (a,c) is in R.

Example: On integers, “a is equal to b” is reflexive, symmetric and transitive. “a is less than or equal to b” is reflexive, antisymmetric and transitive.

2.4 Equivalence Relations and Classes

An equivalence relation is a relation that is reflexive, symmetric and transitive. The equivalence class of a is [a] = {x | xRa}; it contains all elements related to a.

Example: On integers, define aRb when a and b have the same remainder on division by 3. This is an equivalence relation. The classes are [0], [1] and [2] modulo 3.

2.5 Closures and Warshall's Algorithm

A closure adds the minimum required pairs to make a relation satisfy a property. Reflexive closure adds all missing (a,a) pairs. Symmetric closure adds reverse pairs. Transitive closure adds pairs required by transitivity.

Warshall's algorithm finds reachability (transitive closure) from a relation matrix. For each intermediate vertex k, update every entry by: W[i,j] = W[i,j] OR (W[i,k] AND W[k,j]). Repeat for all k.

Example: If there is a path i→k and k→j, Warshall's update sets W[i,j] to 1, showing that j is reachable from i.

2.6 Partial Orders and Posets

A partial order is a relation that is reflexive, antisymmetric and transitive. A set together with a partial order is called a partially ordered set (poset).

Example: The positive divisors of 12, ordered by divisibility, form a poset: {1,2,3,4,6,12}.

2.7 Hasse Diagrams, Chains and Antichains

A Hasse diagram represents a finite poset. Draw smaller elements lower, omit self-loops and arrowheads, and omit edges implied by transitivity. Connect two elements when one covers the other.

A chain is a subset in which every pair of elements is comparable. An antichain is a subset in which no two distinct elements are comparable.

Example: For divisors of 12 under divisibility, 1 is at the bottom; 2 and 3 are above 1; 4 and 6 are above 2 and 3 respectively where divisibility permits; 12 is at the top. Draw only cover relations.

2.8 Lattices

A lattice is a poset in which every pair of elements has a greatest lower bound (meet, a ∧ b) and a least upper bound (join, a ∨ b). A sublattice is a non-empty subset closed under meet and join.

A bounded lattice has a least element 0 and a greatest element 1. A complemented lattice has, for each a, an element a′ such that a ∧ a′ = 0 and a ∨ a′ = 1. A distributive lattice satisfies both distributive laws.

Exam tip: For a Hasse diagram, first list the elements, identify the order relation, find cover pairs, and then draw from bottom to top.

MODULE 4 – COUNTING PRINCIPLES AND RECURRENCE

RELATIONS

Counting techniques calculate the number of possible outcomes without listing every outcome. Recurrence relations define a sequence using earlier terms.

4.1 Fundamental Counting Principles

Sum rule: If one task can be done in m ways and a mutually exclusive alternative in n ways, either task can be done in m+n ways. Product rule: If a process has successive stages with m and n choices, it can be done in m×n ways.

Example: Choose one drink from 3 types OR one snack from 4 types: 3+4=7 choices. Choose one shirt from 3 and one pair of trousers from 4: 3×4=12 outfits.

4.2 Permutations and Combinations

A permutation is an arrangement where order matters: nPr = n!/(n−r)!. A combination is a selection where order does not matter: nCr = n!/[r!(n−r)!]. Also, nCr = nC(n−r).

Example: Choose 2 students from 5: 5C2 = 5!/(2!3!) = 10. Arrange 2 students from 5 in two positions: 5P2 = 5×4 = 20.

4.3 Pigeonhole Principle

If more than n objects are placed into n boxes, at least one box contains at least two objects. General form: placing N objects into k boxes means some box contains at least ceil(N/k) objects.

Example: Among 13 people, at least two were born in the same month because there are only 12 months.

4.4 Inclusion–Exclusion Principle

For two finite sets: |A∪B| = |A| + |B| − |A∩B|. For three sets, add the three individual sizes, subtract the three pairwise intersections, then add the triple intersection.

Example: In a class, 30 like tea, 25 like coffee and 10 like both. Number who like at least one = 30+25−10 = 45.

4.5 Recurrence Relations

A recurrence relation defines a term using one or more earlier terms, together with initial conditions. Example: an = annn + 2, an=1 gives 1,3,5,7,…

Common forms: Linear recurrence: an = cnannn + cnannn + …. Homogeneous recurrence has no separate non-zero term. Initial conditions are needed to determine a unique sequence.

4.6 Solving Simple Recurrences

Iteration/substitution: Expand repeatedly until the initial term appears. Characteristic equation: For an = p annn + q annn, try an=rn, giving r²−pr−q=0. Solve for roots and use initial conditions.

Example: an = annn + 3, an=2. Expanding gives an = an + 3n = 2+3n.

Exam tip: Identify whether order matters before choosing permutation or combination. In inclusion–exclusion, subtract common elements once because they were counted twice.

MODULE 5 – ALGEBRAIC STRUCTURES

Algebraic structures study sets together with operations and the properties those operations satisfy.

5.1 Binary Operation

A binary operation on a set S combines any two elements of S and produces an element of S. This property is called closure. For example, addition is a binary operation on integers because the sum of two integers is an integer.

5.2 Semigroup and Monoid

Semigroup: A non-empty set with a closed, associative binary operation. Associativity means (ab)c = a(bc). Monoid: A semigroup that also has an identity element e, where ae=ea=a.

Example: The integers under addition form a monoid: addition is closed and associative, and 0 is the identity.

5.3 Groups

A group (G,) satisfies: closure; associativity; identity element e; and an inverse for every element a, meaning aan¹=an¹*a=e.

An Abelian group is a group that also satisfies commutativity: ab=ba. A group need not be Abelian.

Example: The integers under addition form an Abelian group. The identity is 0 and the inverse of a is −a.

5.4 Subgroups and Cyclic Groups

A subgroup is a subset H of a group G that forms a group under the same operation. A cyclic group is generated by one element a; its elements are powers of a (multiplicative notation) or multiples of a (additive notation).

Example: In integers under addition, the set of even integers is a subgroup. It is generated by 2 because every even integer is 2k for some integer k.

5.5 Isomorphism

Two algebraic structures are isomorphic when there is a bijection between them that preserves the operation. The structures may use different symbols but have the same operation pattern.

5.6 Rings

A ring has two operations, usually addition and multiplication. Under addition, the set forms an Abelian group. Multiplication is associative, and multiplication distributes over addition: a(b+c)=ab+ac and (a+b)c=ac+bc.

Some definitions require a multiplicative identity and some do not; follow the convention used by your course notes or instructor.

5.7 Basic Coding Theory

Coding theory represents information using codewords. In binary coding, information is represented using 0s and 1s. Redundancy can be added to detect or correct errors during transmission.

The Hamming distance between two equal-length binary strings is the number of positions in which they differ. A code with minimum Hamming distance d can detect up to d−1 errors and correct up to floor((d−1)/2) errors.

Example: The distance between 10110 and 10011 is 2 because they differ in two positions.

Revision tip: When checking whether a structure is a group, test closure, associativity, identity and inverses separately. Do not assume commutativity unless it is given or proved.

but not circuit exists when exactly two vertices have odd degree.

Hamiltonian path: Visits every vertex exactly once. Hamiltonian cycle: Visits every vertex exactly once and returns to the start. Unlike Euler graphs, there is no single simple degree test that decides every Hamiltonian case.

6.10 Planar Graphs

A planar graph can be drawn in a plane without edges crossing except at shared endpoints. For a connected planar graph, Euler's formula is V−E+F=2, where F is the number of faces including the outside face.

For a simple connected planar graph with V≥3, E≤3V−6. This is a useful necessary condition: if it fails, the graph is non-planar.

6.11 Cut Vertex and Cut Set

A cut vertex is a vertex whose removal (with its incident edges) increases the number of connected components. A cut set is a set of edges whose removal disconnects a connected graph.

6.12 Applications

Computer networks: devices are vertices and communication links are edges. Maps: locations are vertices and roads are edges. Social networks: people are vertices and relationships are edges. Scheduling: conflicts can be modelled using graph colouring. Routing: shortest-path methods help find efficient routes.

Exam tip: For Euler questions, check vertex degrees and connectedness. For Hamiltonian questions, test possible vertex cycles directly. For planar questions, apply Euler's formula and the edge bound carefully.

QUICK REVISION – FORMULAS AND CHECKLIST

Important formulas

Topic Formula / rule

Set counting |A∪B| = |A| + |B| − |A∩B|

Three sets |A∪B∪C| = sum of singles − sum of pair intersections + triple intersection

Permutation nPr = n!/(n−r)!

Combination nCr = n!/[r!(n−r)!]

Pigeonhole At least one box has ≥ ceil(N/k) objects

Warshall update W[i,j] = W[i,j] OR (W[i,k] AND W[k,j])

Induction Base case + inductive hypothesis + inductive step

Handshaking theorem Σ deg(v) = 2|E|

Planar connected graph V − E + F = 2

Simple planar graph bound E ≤ 3V − 6 for V ≥ 3

Error detection Minimum distance d detects up to d−1 errors

Error correction Minimum distance d corrects up to floor((d−1)/2) errors

Before the examination

  • Practise at least one truth table and one mathematical induction proof.
  • Solve relation-property and equivalence-class questions.
  • Practise injective, surjective, bijective and composition problems.
  • Solve inclusion–exclusion, pigeonhole and recurrence examples.
  • Check group properties using the complete definition.
  • Practise Hasse diagrams, graph degrees, Euler trails/circuits and planar graph questions.

References and syllabus note

Syllabus basis: University of Mumbai, B.E. Computer Engineering, Semester III, Discrete Structures and Graph Theory (NEP 2020 listing). A syllabus summary is available at munotes.in. The university syllabus and the student's college-issued syllabus should be treated as final if module wording or coverage differs.

Further reading: Susanna S. Epp, Discrete Mathematics with Applications; Ralph P. Grimaldi, Discrete and Combinatorial Mathematics; Edgar G. Goodaire and Michael M. Parmenter, Discrete Mathematics with Graph Theory.

Prepared as original study notes for educational use. Verify notation and theorems against your faculty's prescribed textbook before final exam use.