Skip to content

RGPV Discrete Structure (CS302) Unit-Wise Notes PDF Download | B.Tech CSE 3rd Semester

Find RGPV Discrete Structure CS302 unit-wise notes, complete syllabus, important formulas, solved problems and questions for B.Tech CSE 3rd semester.

Are you looking for RGPV Discrete Structure (CS302) unit-wise notes PDF for your B.Tech third-semester examination? Here, you can find the complete syllabus, topic-wise study materials, important mathematical formulas, solved problems, important questions and examination preparation resources.

Discrete Structure is a fundamental subject in Computer Science and Engineering at Rajiv Gandhi Proudyogiki Vishwavidyalaya (RGPV), Bhopal. It covers set theory, relations, functions, mathematical proofs, algebraic structures, propositional logic, graph theory, combinatorics and recurrence relations.

The subject provides the mathematical foundation required for data structures, algorithms, database management systems, digital logic, automata theory and other computer science subjects.

These study resources follow the RGPV CSE third-semester syllabus based on the AICTE Flexible Curricula scheme.

RGPV Discrete Structure (CS302) Overview

ParticularsDetails
UniversityRajiv Gandhi Proudyogiki Vishwavidyalaya (RGPV), Bhopal
CourseB.Tech
BranchComputer Science and Engineering
Academic YearSecond Year
Semester3rd Semester
Subject NameDiscrete Structure
Subject CodeCS302
Academic SchemeNew Scheme Based on AICTE Flexible Curricula
Resource TypeUnit-Wise Notes
File FormatPDF

RGPV Discrete Structure Notes PDF Download

Students can access topic-wise CS302 Discrete Structure study materials through the following table.

Study UnitSubject TopicsNotes PDF
Unit 1Set Theory, Relations, Functions and Theorem Proving TechniquesComing Soon
Unit 2Algebraic StructuresComing Soon
Unit 3Propositional Logic and Finite State MachinesComing Soon
Unit 4Graph TheoryComing Soon
Unit 5Posets, Hasse Diagrams, Lattices, Combinatorics and Recurrence RelationsComing Soon

The official CS302 syllabus lists topic headings without assigning explicit unit numbers. For convenient examination preparation, the topics have been organized into five study units while preserving their original sequence and content.

Verified PDF download links will be added when the respective study materials become available.

RGPV Discrete Structure (CS302) Complete Syllabus

Syllabus SectionImportant Topics
Set TheorySets, countable and uncountable sets, Venn diagrams and set identities
RelationsTypes of relations, composition, equivalence relations, partial ordering and job scheduling
FunctionsOne-to-one, into, onto, inverse, composition and recursive functions
Theorem Proving TechniquesMathematical induction and proof by contradiction
Algebraic StructuresSemigroups, monoids, groups, subgroups, cosets, rings and fields
Propositional LogicLogical operations, truth tables, predicates, normal forms and quantifiers
Finite State MachinesPhysical system models, equivalent machines and language recognizers
Graph TheoryGraphs, paths, cycles, connectivity, shortest paths, Eulerian and Hamiltonian graphs
Posets and LatticesPartial ordering, Hasse diagrams, ordered sets and lattice properties
CombinatoricsPermutations, combinations, binomial theorem and multinomial coefficients
Recurrence RelationsRecursive algorithms, homogeneous and particular solutions, generating functions

Unit 1: Set Theory, Relations, Functions and Theorem Proving Techniques

The first study unit introduces fundamental mathematical concepts used throughout computer science. Students learn how to represent collections, establish relationships, define mappings and prove mathematical statements.

Unit 1 Complete Syllabus

  • Definition of sets
  • Countable and uncountable sets
  • Venn diagrams
  • Proofs of general set identities
  • Definition and types of relations
  • Composition of relations
  • Pictorial representation of relations
  • Equivalence relations
  • Partial ordering relations
  • Job-scheduling problem
  • Definition and types of functions
  • One-to-one functions
  • Into functions
  • Onto functions
  • Inverse functions
  • Composition of functions
  • Recursively defined functions
  • Pigeonhole principle
  • Mathematical induction
  • Proof by contradiction

Introduction to Set Theory

A set is a well-defined collection of distinct objects. The objects belonging to a set are called its elements.

For example:

A = {1, 2, 3, 4, 5}

Here, A is a finite set containing five elements.

Important Types of Sets

Set TypeDescriptionExample
Empty SetContains no elements∅
Singleton SetContains exactly one element{5}
Finite SetContains a finite number of elements{1, 2, 3}
Infinite SetContains infinitely many elementsNatural numbers
Equal SetsContain exactly the same elements{1, 2} and {2, 1}
Equivalent SetsHave the same cardinality{1, 2} and {a, b}
SubsetEvery element belongs to another set{1, 2} ⊆ {1, 2, 3}
Proper SubsetA subset not equal to the original set{1} ⊂ {1, 2}
Universal SetContains all elements under considerationU
Disjoint SetsHave no common elements{1, 2} and {3, 4}
Power SetContains every subset of a setP({a}) = {∅, {a}}

Countable and Uncountable Sets

Countable SetsUncountable Sets
Finite sets or sets that can be placed in bijection with natural numbersSets that cannot be placed in bijection with natural numbers
Natural numbersReal numbers
IntegersReal numbers between 0 and 1
Rational numbersIrrational numbers

Important Set Operations

OperationSymbolDescription
UnionA ∪ BElements belonging to A or B or both
IntersectionA ∩ BElements common to A and B
DifferenceA − BElements belonging to A but not B
ComplementAᶜElements outside A within the universal set
Symmetric DifferenceA △ BElements belonging to exactly one of the two sets
Cartesian ProductA × BOrdered pairs formed from A and B

Important Set Theory Formulas

Law or FormulaExpression
Union Cardinalityn(A ∪ B) = n(A) + n(B) − n(A ∩ B)
Difference Cardinalityn(A − B) = n(A) − n(A ∩ B)
Cartesian Productn(A × B) = n(A)n(B)
Number of Subsets2ⁿ
Number of Proper Subsets2ⁿ − 1
Number of Non-Empty Subsets2ⁿ − 1
Number of Non-Empty Proper Subsets2ⁿ − 2, for n ≥ 1
De Morgan’s First Law(A ∪ B)ᶜ = Aᶜ ∩ Bᶜ
De Morgan’s Second Law(A ∩ B)ᶜ = Aᶜ ∪ Bᶜ
Idempotent LawA ∪ A = A and A ∩ A = A
Absorption LawA ∪ (A ∩ B) = A
Complement LawA ∪ Aᶜ = U and A ∩ Aᶜ = ∅

Inclusion-Exclusion Principle

For three finite sets:

n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(B ∩ C) − n(A ∩ C) + n(A ∩ B ∩ C)

This formula is useful for solving problems involving three overlapping sets.

Set Theory Solved Problems

Problem 1: Find the union, intersection and difference of A = {1, 2, 3, 4} and B = {3, 4, 5, 6}.

Solution:

A ∪ B = {1, 2, 3, 4, 5, 6}

A ∩ B = {3, 4}

A − B = {1, 2}

B − A = {5, 6}

A △ B = {1, 2, 5, 6}

Problem 2: Find the number of subsets of a set containing six elements.

Solution:

Number of subsets = 2ⁿ

= 2⁶

Final answer: 64 subsets.

Number of proper subsets = 64 − 1 = 63.

Problem 3: In a class of 100 students, 60 study Mathematics, 45 study Computer Science and 25 study both subjects. Find the number of students studying at least one subject.

Solution:

n(M ∪ C) = n(M) + n(C) − n(M ∩ C)

= 60 + 45 − 25

Final answer: 80 students.

Students studying neither subject = 100 − 80 = 20.

Introduction to Relations

A binary relation from set A to set B is a subset of the Cartesian product A × B.

For example:

A = {1, 2, 3}

R = {(1, 1), (2, 2), (3, 3)}

The relation R is the identity relation on A.

Important Types of Relations

RelationMathematical Condition
Reflexive(a, a) ∈ R for every a ∈ A
Irreflexive(a, a) ∉ R for every a ∈ A
SymmetricaRb implies bRa
AntisymmetricaRb and bRa imply a = b
AsymmetricaRb implies that bRa does not hold
TransitiveaRb and bRc imply aRc
Equivalence RelationReflexive, symmetric and transitive
Partial Order RelationReflexive, antisymmetric and transitive

Important Relation Formulas

TopicFormula
Relations from A to B2ᵐⁿ, where m = n(A) and n = n(B)
Binary Relations on an n-Element Set2ⁿ²
Reflexive Relations2ⁿ⁽ⁿ⁻¹⁾
Symmetric Relations2ⁿ⁽ⁿ⁺¹⁾/²
Antisymmetric Relations2ⁿ × 3ⁿ⁽ⁿ⁻¹⁾/²
Irreflexive Relations2ⁿ⁽ⁿ⁻¹⁾

Composition of Relations

If R is a relation from A to B and S is a relation from B to C, their composition S ∘ R is a relation from A to C.

S ∘ R = {(a, c) : there exists b such that (a, b) ∈ R and (b, c) ∈ S}

Relations Solved Problems

Problem 4: Find the number of binary relations on a set containing three elements.

Solution:

Number of relations = 2ⁿ²

= 2⁹

Final answer: 512 relations.

Problem 5: Find the number of reflexive relations on a set containing four elements.

Solution:

Number of reflexive relations = 2ⁿ⁽ⁿ⁻¹⁾

= 2¹²

Final answer: 4,096 relations.

Problem 6: Determine whether the relation R = {(1,1), (2,2), (3,3), (1,2), (2,1)} on A = {1,2,3} is an equivalence relation.

Solution:

Reflexive: Every element is related to itself.

Symmetric: Both (1,2) and (2,1) are present.

Transitive: All required composed pairs are present.

Therefore, R is an equivalence relation.

The equivalence classes are {1,2} and {3}.

Job-Scheduling Problem

Relations and partial ordering can represent dependencies between jobs.

Suppose four tasks have the following dependencies:

  • Task A must finish before Task B.
  • Task A must finish before Task C.
  • Task B and Task C must finish before Task D.

Possible valid schedules are:

A → B → C → D

A → C → B → D

This concept is useful in project scheduling, compiler design and dependency management.

Introduction to Functions

A function from set A to set B assigns exactly one element of B to every element of A.

A is called the domain and B is called the codomain.

Types of Functions

FunctionDescription
One-to-One FunctionDistinct inputs produce distinct outputs
Many-to-One FunctionAt least two distinct inputs produce the same output
Into FunctionAt least one codomain element is not an output
Onto FunctionEvery codomain element has a preimage
Bijective FunctionBoth one-to-one and onto
Identity Functionf(x) = x
Constant FunctionEvery input maps to the same output
Inverse FunctionReverses a bijective mapping
Composite FunctionApplies one function after another
Recursive FunctionDefined using previously defined values and base conditions

Important Function Formulas

Let A contain m elements and B contain n elements.

TopicFormula
Total Functions from A to Bnᵐ
One-to-One Functionsn!/(n − m)!, when m ≤ n
Bijective Functionsn!, when m = n
Composition of Functions(g ∘ f)(x) = g(f(x))
Onto FunctionsΣ from k = 0 to n of (−1)ᵏ C(n,k)(n−k)ᵐ

The onto function formula uses the inclusion-exclusion principle.

Functions Solved Problems

Problem 7: Find the number of functions from a set containing three elements to a set containing four elements.

Solution:

Number of functions = 4³

Final answer: 64.

Problem 8: Find the number of one-to-one functions from a three-element set to a five-element set.

Solution:

Number of one-to-one functions = 5!/(5 − 3)!

= 5!/2!

= 120/2

Final answer: 60.

Problem 9: If f(x) = 2x + 3 and g(x) = x², find f ∘ g and g ∘ f.

Solution:

(f ∘ g)(x) = f(g(x))

= 2x² + 3

(g ∘ f)(x) = g(f(x))

= (2x + 3)²

= 4x² + 12x + 9

Function composition is generally not commutative.

Problem 10: Find the inverse of f(x) = 3x + 5, defined from real numbers to real numbers.

Solution:

y = 3x + 5

x = (y − 5)/3

Final answer:

f⁻¹(x) = (x − 5)/3

Pigeonhole Principle

If more than n objects are placed into n boxes, at least one box must contain more than one object.

Generalized pigeonhole principle:

When N objects are placed into k non-empty or potentially empty boxes, at least one box contains at least ⌈N/k⌉ objects, provided k is positive.

Problem 11: Show that among 13 people, at least two people were born in the same month.

Solution:

There are 12 months and 13 people.

Since 13 > 12, at least one month contains the birthdays of two or more people.

Problem 12: Find the minimum number of students guaranteed to share a birth month in a group of 50 students.

Solution:

⌈50/12⌉ = 5

Final answer: At least five students share a birth month.

Mathematical Induction

Mathematical induction is a proof technique used to establish statements for natural numbers.

The main steps are:

  1. Prove that the statement is true for the initial value.
  2. Assume the statement is true for n = k.
  3. Prove that the statement is true for n = k + 1.

Problem 13: Prove that 1 + 2 + 3 + … + n = n(n + 1)/2.

Base case:

For n = 1:

LHS = 1

RHS = 1(1 + 1)/2 = 1

Therefore, the statement is true for n = 1.

Induction hypothesis:

Assume that:

1 + 2 + … + k = k(k + 1)/2

Induction step:

1 + 2 + … + k + (k + 1)

= k(k + 1)/2 + (k + 1)

= (k + 1)(k + 2)/2

Therefore, the formula is true for n = k + 1.

By mathematical induction, the result holds for every positive integer n.

Proof by Contradiction

Proof by contradiction establishes a statement by assuming that it is false and deriving a contradiction.

Problem 14: Prove that √2 is irrational.

Assume that √2 is rational.

Then √2 = a/b, where a and b are coprime integers and b ≠ 0.

Squaring both sides:

a² = 2b²

Therefore, a² is even, so a is even.

Let a = 2k.

Substituting:

4k² = 2b²

b² = 2k²

Therefore, b is also even.

Both a and b are divisible by 2, contradicting the assumption that they are coprime.

Hence, √2 is irrational.

Unit 1 Important Questions

S.No.Important Question
1Define a set and explain different types of sets.
2Explain countable and uncountable sets.
3Explain set operations with Venn diagrams.
4Prove De Morgan’s laws for sets.
5Explain the inclusion-exclusion principle.
6Define the Cartesian product of two sets.
7Define a relation and explain its properties.
8Differentiate between symmetric and antisymmetric relations.
9Explain equivalence relations with examples.
10Explain partial ordering relations.
11Explain composition of relations.
12Explain pictorial representation of relations.
13Explain the job-scheduling problem using partial ordering.
14Calculate the number of binary relations on a finite set.
15Calculate the number of reflexive and symmetric relations.
16Define a function and explain its types.
17Differentiate between into and onto functions.
18Explain one-to-one and many-to-one functions.
19Explain bijective functions with examples.
20Find the inverse of a given function.
21Solve problems involving composition of functions.
22Explain recursively defined functions.
23Explain the pigeonhole principle with examples.
24Explain the generalized pigeonhole principle.
25Prove a mathematical identity using induction.
26Explain proof by contradiction.
27Prove that the square root of 2 is irrational.
28Solve problems involving the cardinality of sets.
29Calculate the number of one-to-one and onto functions.
30Discuss applications of set theory and relations in computer science.

Unit 1 Notes PDF Download

Study MaterialDownload Link
Set Theory Complete NotesComing Soon
Relations and Their Properties NotesComing Soon
Functions and Composition NotesComing Soon
Pigeonhole Principle NotesComing Soon
Mathematical Induction and Proof TechniquesComing Soon
Unit 1 Solved Mathematical ProblemsComing Soon

Unit 2: Algebraic Structures

Algebraic structures provide mathematical models for operations on sets. These concepts have applications in coding theory, cryptography, computer arithmetic and theoretical computer science.

Unit 2 Complete Syllabus

  • Definition and properties of algebraic structures
  • Semigroups
  • Monoids
  • Groups
  • Abelian groups
  • Properties of groups
  • Subgroups
  • Cyclic groups
  • Cosets
  • Factor groups
  • Permutation groups
  • Normal subgroups
  • Group homomorphism
  • Group isomorphism
  • Standard results of groups
  • Rings
  • Fields
  • Standard results of rings and fields

Important Properties of Binary Operations

PropertyMathematical Condition
Closurea ∗ b ∈ S for every a, b ∈ S
Associativity(a ∗ b) ∗ c = a ∗ (b ∗ c)
Commutativitya ∗ b = b ∗ a
Identitya ∗ e = e ∗ a = a
Inversea ∗ a⁻¹ = a⁻¹ ∗ a = e
DistributivityOne operation distributes over another

Difference Between Algebraic Structures

StructureClosureAssociativityIdentityInverseCommutativity
SemigroupYesYesNot RequiredNot RequiredNot Required
MonoidYesYesYesNot RequiredNot Required
GroupYesYesYesYesNot Required
Abelian GroupYesYesYesYesYes

Important Examples of Algebraic Structures

StructureExample
SemigroupPositive integers under addition
MonoidNon-negative integers under addition
GroupIntegers under addition
Abelian GroupIntegers under addition
Non-Abelian GroupPermutations in S₃ under composition
Cyclic GroupIntegers modulo n under addition
RingIntegers under addition and multiplication
FieldRational numbers under addition and multiplication

Subgroups

A non-empty subset H of a group G is a subgroup if H itself forms a group under the operation inherited from G.

A useful subgroup test is:

For every a, b ∈ H, ab⁻¹ ∈ H.

Cyclic Groups

A group is cyclic if every element can be generated using powers of a single element.

G = ⟨a⟩

The element a is called a generator.

Every cyclic group is Abelian, but every Abelian group need not be cyclic.

Cosets and Lagrange’s Theorem

If H is a subgroup of G and a ∈ G:

Left coset = aH

Right coset = Ha

Lagrange’s theorem states that the order of a subgroup of a finite group divides the order of the group.

ConceptFormula
Group OrderNumber of elements in G
Subgroup OrderNumber of elements in H
Index of a Subgroup[G : H] = order(G)/order(H)
Order of a Factor Grouporder(G/N) = order(G)/order(N), for a normal subgroup N
Order of Symmetric Group Sₙn!
Order of Element a in Zₙn/gcd(a,n)
Number of Generators of a Cyclic Group of Order nEuler’s totient function φ(n)

Normal Subgroups and Factor Groups

A subgroup N of G is normal if:

gN = Ng for every g ∈ G.

Every subgroup of an Abelian group is normal.

The factor group G/N is formed from the cosets of a normal subgroup N.

Group Homomorphism and Isomorphism

ParticularsHomomorphismIsomorphism
MeaningOperation-preserving mappingBijective operation-preserving mapping
Basic Conditionf(ab) = f(a)f(b)f(ab) = f(a)f(b)
One-to-OneNot RequiredRequired
OntoNot RequiredRequired
PurposeDescribes relationships between groupsEstablishes structural equivalence

The kernel of a group homomorphism is the set of elements mapped to the identity of the target group.

Difference Between Rings and Fields

ParticularsRingField
OperationsAddition and multiplicationAddition and multiplication
AdditionForms an Abelian groupForms an Abelian group
MultiplicationAssociativeAssociative and commutative
Multiplicative IdentityDepends on the adopted ring definitionRequired
Non-Zero Multiplicative InverseNot RequiredRequired
ExampleIntegersRational numbers

Unit 2 Solved Mathematical Problems

Problem 1: Determine whether integers under addition form an Abelian group.

Solution:

Closure: The sum of any two integers is an integer.

Associativity: (a + b) + c = a + (b + c).

Identity: 0 is the additive identity.

Inverse: For every integer a, −a is its additive inverse.

Commutativity: a + b = b + a.

Therefore, integers under addition form an Abelian group.

Problem 2: Find the order of the element 4 in Z₁₂ under addition modulo 12.

Solution:

Order of 4 = 12/gcd(4,12)

= 12/4

Final answer: 3.

The generated subgroup is {0,4,8}.

Problem 3: A finite group has 24 elements and its subgroup has six elements. Find the subgroup index.

Solution:

[G : H] = 24/6

Final answer: 4.

Problem 4: Find all cosets of H = {0,3} in Z₆ under addition modulo 6.

Solution:

0 + H = {0,3}

1 + H = {1,4}

2 + H = {2,5}

The remaining cosets repeat these sets.

Final answer: Three distinct cosets.

Problem 5: Find the order of the permutation group S₄.

Solution:

Order of Sₙ = n!

Order of S₄ = 4!

Final answer: 24.

Problem 6: Determine whether Z₅ is a field under addition and multiplication modulo 5.

Solution:

Since 5 is prime, every non-zero element has a multiplicative inverse modulo 5.

ElementMultiplicative Inverse
11
23
32
44

Therefore, Z₅ is a field.

Problem 7: Show that f: Z → Z defined by f(x) = 2x is a group homomorphism under addition.

Solution:

f(a + b) = 2(a + b)

= 2a + 2b

= f(a) + f(b)

Therefore, f is a homomorphism.

It is injective but not onto Z because odd integers are not in its image.

Unit 2 Important Questions

S.No.Important Question
1Define an algebraic structure with examples.
2Explain the properties of binary operations.
3Define a semigroup and give suitable examples.
4Define a monoid and explain its properties.
5Define a group and explain group axioms.
6Explain Abelian groups with examples.
7Differentiate between semigroups, monoids and groups.
8Prove the uniqueness of the identity element in a group.
9Prove the uniqueness of the inverse of a group element.
10Explain subgroups and the subgroup test.
11Define cyclic groups with examples.
12Prove that every cyclic group is Abelian.
13Find the order of an element in a finite group.
14Explain left and right cosets.
15State and prove Lagrange’s theorem.
16Explain factor groups with examples.
17Define permutation groups.
18Find the order of a permutation group.
19Define a normal subgroup.
20Prove that every subgroup of an Abelian group is normal.
21Explain group homomorphism.
22Define the kernel of a homomorphism.
23Explain group isomorphism.
24Differentiate between homomorphism and isomorphism.
25Define a ring and explain its properties.
26Define a field and explain its properties.
27Differentiate between rings and fields.
28Determine whether a given set forms a group.
29Determine whether integers modulo n form a field.
30Discuss applications of algebraic structures in computer science.

Unit 2 Notes PDF Download

Study MaterialDownload Link
Algebraic Structures Complete NotesComing Soon
Semigroups, Monoids and Groups NotesComing Soon
Subgroups, Cosets and Lagrange’s TheoremComing Soon
Permutation Groups and Factor GroupsComing Soon
Homomorphism and Isomorphism NotesComing Soon
Rings and Fields NotesComing Soon
Unit 2 Solved ProblemsComing Soon

Unit 3: Propositional Logic and Finite State Machines

Propositional logic provides mathematical methods for representing statements, evaluating logical expressions and establishing valid reasoning.

Finite state machines describe systems that operate using a finite number of states and transitions.

Unit 3 Complete Syllabus

  • Propositions
  • First-order logic
  • Basic logical operations
  • Truth tables
  • Tautologies
  • Contradictions
  • Algebra of propositions
  • Logical implication
  • Logical equivalence
  • Predicates
  • Normal forms
  • Universal quantifiers
  • Existential quantifiers
  • Introduction to finite state machines
  • Finite state machines as models of physical systems
  • Equivalent machines
  • Finite state machines as language recognizers

Important Logical Operators

OperatorSymbolMeaning
Negation¬pNOT
Conjunctionp ∧ qAND
Disjunctionp ∨ qOR
Exclusive ORp ⊕ qExactly one statement is true
Implicationp → qIf p, then q
Biconditionalp ↔ qp if and only if q

Complete Truth Table

pq¬pp ∧ qp ∨ qp ⊕ qp → qp ↔ q
TTFTTFTT
TFFFTTFF
FTTFTTTF
FFTFFFTT

Types of Logical Statements

TypeDescriptionExample
TautologyAlways truep ∨ ¬p
ContradictionAlways falsep ∧ ¬p
ContingencyTrue for some assignments and false for othersp ∧ q

Important Logical Equivalence Laws

LawExpression
Identityp ∧ T ≡ p
Dominationp ∨ T ≡ T
Idempotentp ∨ p ≡ p
Double Negation¬(¬p) ≡ p
Complementp ∨ ¬p ≡ T
De Morgan’s First Law¬(p ∧ q) ≡ ¬p ∨ ¬q
De Morgan’s Second Law¬(p ∨ q) ≡ ¬p ∧ ¬q
Implication Lawp → q ≡ ¬p ∨ q
Biconditional Lawp ↔ q ≡ (p → q) ∧ (q → p)
Contrapositive Lawp → q ≡ ¬q → ¬p
Absorptionp ∨ (p ∧ q) ≡ p
Distributive Lawp ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)

Converse, Inverse and Contrapositive

StatementExpression
Original Implicationp → q
Converseq → p
Inverse¬p → ¬q
Contrapositive¬q → ¬p

An implication and its contrapositive are logically equivalent.

Normal Forms

Normal FormDescription
DNFDisjunction of conjunctions
CNFConjunction of disjunctions
PDNFPrincipal Disjunctive Normal Form
PCNFPrincipal Conjunctive Normal Form

Example of DNF:

(p ∧ q) ∨ (¬p ∧ r)

Example of CNF:

(p ∨ q) ∧ (¬p ∨ r)

Predicates and Quantifiers

A predicate contains variables and becomes a proposition when appropriate values are assigned or its variables are quantified.

QuantifierSymbolMeaning
Universal Quantifier∀For every element
Existential Quantifier∃There exists at least one element

Negation of Quantifiers

StatementNegation
∀x P(x)∃x ¬P(x)
∃x P(x)∀x ¬P(x)

Propositional Logic Solved Problems

Problem 1: Find the number of truth table rows for four propositional variables.

Solution:

Number of rows = 2ⁿ

= 2⁴

Final answer: 16 rows.

Problem 2: Prove that (p → q) ↔ (¬p ∨ q) is a tautology.

pqp → q¬p ∨ qFinal Expression
TTTTT
TFFFT
FTTTT
FFTTT

Since the final column contains only true values, the expression is a tautology.

Problem 3: Simplify ¬(p ∨ q) ∨ (¬p ∧ q).

Solution:

Using De Morgan’s law:

= (¬p ∧ ¬q) ∨ (¬p ∧ q)

Taking ¬p common:

= ¬p ∧ (¬q ∨ q)

= ¬p ∧ T

Final answer: ¬p.

Problem 4: Find the negation of the statement “Every student understands mathematics.”

Let P(x) represent “x understands mathematics.”

Original statement:

∀x P(x)

Negation:

∃x ¬P(x)

Final answer: At least one student does not understand mathematics.

Problem 5: Convert p → (q ∧ r) into CNF.

Solution:

p → (q ∧ r)

= ¬p ∨ (q ∧ r)

Using the distributive law:

Final answer:

(¬p ∨ q) ∧ (¬p ∨ r)

Introduction to Finite State Machines

A finite state machine uses states and transitions to represent a system’s behaviour.

A deterministic finite automaton can be represented as:

M = (Q, Σ, δ, q₀, F)

SymbolDescription
QFinite set of states
ΣInput alphabet
δTransition function
q₀Initial state
FSet of accepting states

This five-component representation applies specifically to deterministic finite automata used as language recognizers.

Applications of Finite State Machines

ApplicationPurpose
Traffic LightsRepresents changes between traffic signal states
Vending MachinesRepresents payment and product selection states
Digital CircuitsModels sequential logic behaviour
CompilersRecognizes lexical patterns
Communication SystemsRepresents communication protocol states
Software DevelopmentModels controlled state transitions

Equivalent Finite State Machines

Equivalent language-recognizing machines accept the same language.

For finite state machines that produce outputs, equivalence is determined according to their observable input-output behaviour.

State equivalence can help reduce the number of states without changing the relevant behaviour of a machine.

Finite State Machine Solved Problem

Problem 6: Design a finite state machine that accepts binary strings ending in 1.

Required states:

  • q₀: Initial state representing an empty string or a string ending in 0.
  • q₁: Accepting state representing a string ending in 1.

Transition table:

Current StateInput 0Input 1
q₀q₀q₁
q₁q₀q₁

Initial state: q₀

Accepting state: q₁

Input StringResult
0Rejected
1Accepted
101Accepted
110Rejected
111Accepted
1001Accepted

Unit 3 Important Questions

S.No.Important Question
1Define a proposition with examples.
2Explain basic logical operators.
3Construct truth tables for logical expressions.
4Explain tautologies and contradictions.
5Differentiate between tautology, contradiction and contingency.
6Explain logical implication.
7Explain logical equivalence with examples.
8Prove De Morgan’s laws using truth tables.
9Simplify expressions using logical equivalence laws.
10Explain converse, inverse and contrapositive.
11Define first-order logic.
12Differentiate between propositional and predicate logic.
13Define predicates with examples.
14Explain universal and existential quantifiers.
15Find the negation of quantified statements.
16Explain conjunctive normal form.
17Explain disjunctive normal form.
18Convert a logical expression into CNF.
19Convert a logical expression into DNF.
20Explain principal normal forms.
21Define a finite state machine.
22Explain finite state machines as models of physical systems.
23Explain state transitions with examples.
24Explain equivalent finite state machines.
25Explain finite state machines as language recognizers.
26Design a finite state machine accepting strings ending in 1.
27Construct a finite state machine for strings containing an even number of 1s.
28Explain the applications of finite state machines.
29Solve logical equivalence problems using truth tables.
30Discuss applications of mathematical logic in computer science.

Unit 3 Notes PDF Download

Study MaterialDownload Link
Propositional Logic Complete NotesComing Soon
Truth Tables and Logical OperatorsComing Soon
Logical Equivalence and Important LawsComing Soon
Predicate Logic and QuantifiersComing Soon
CNF, DNF, PCNF and PDNF NotesComing Soon
Finite State Machines NotesComing Soon
Unit 3 Solved ProblemsComing Soon

Unit 4: Graph Theory

Graph theory is an important part of discrete mathematics. It provides mathematical models for networks, communication systems, social networks, transportation systems and computer algorithms.

Unit 4 Complete Syllabus

  • Introduction to graphs
  • Basic graph terminology
  • Planar graphs
  • Multigraphs
  • Weighted graphs
  • Isomorphic graphs
  • Paths
  • Cycles
  • Connectivity
  • Shortest path in weighted graphs
  • Eulerian paths and circuits
  • Hamiltonian paths and circuits
  • Graph coloring
  • Chromatic number
  • Graph isomorphism
  • Graph homomorphism

Important Graph Theory Terminology

A graph is represented as G = (V,E), where V is the vertex set and E is the edge set.

TermDescription
VertexA node in a graph
EdgeA connection between vertices
DegreeNumber of incident edge ends at a vertex
Adjacent VerticesVertices connected by an edge
WalkSequence of adjacent vertices and edges
TrailWalk without repeated edges
PathWalk without repeated vertices
CycleClosed path with no repeated internal vertices
Connected GraphA graph with a path between every pair of vertices
Weighted GraphGraph whose edges have associated weights
MultigraphGraph allowing parallel edges
Isolated VertexVertex having degree zero
Pendant VertexVertex having degree one

Important Types of Graphs

Graph TypeDescription
Simple GraphNo loops or parallel edges
Directed GraphEdges have directions
Undirected GraphEdges have no assigned directions
Complete GraphEvery pair of distinct vertices is adjacent
Regular GraphEvery vertex has the same degree
Bipartite GraphVertices can be divided into two independent sets
Complete Bipartite GraphEvery vertex in one partition connects to every vertex in the other
Planar GraphCan be drawn without edge crossings
Null GraphContains vertices but no edges
Connected GraphEvery pair of vertices is connected by a path

Important Graph Theory Formulas

TopicFormula
Handshaking LemmaΣ deg(v) = 2E
Maximum Edges in a Simple Undirected Graphn(n − 1)/2
Edges in Complete Graph Kₙn(n − 1)/2
Edges in Complete Bipartite Graph Kₘ,ₙmn
Edges in an r-Regular Graphnr/2
Euler’s Formula for Connected Planar GraphsV − E + F = 2
Maximum Edges in Simple Planar GraphE ≤ 3V − 6, for V ≥ 3
Maximum Edges in Simple Bipartite Planar GraphE ≤ 2V − 4, for V ≥ 3

Handshaking Lemma

The sum of degrees of all vertices in an undirected graph equals twice the number of edges.

An important consequence is that the number of vertices having odd degree must be even.

Eulerian and Hamiltonian Graphs

ParticularsEulerianHamiltonian
Main FocusEdgesVertices
Path RequirementEvery edge is traversed exactly onceEvery vertex is visited exactly once
Circuit RequirementReturns to the starting vertexReturns to the starting vertex
Repeated VerticesMay be allowedNot allowed except start/end in a circuit

For a connected undirected graph:

  • An Euler circuit exists when every vertex has even degree.
  • An open Euler trail exists when exactly two vertices have odd degree.

For these conditions, isolated vertices may be ignored when considering the connected component containing edges.

There is no comparable simple degree characterization that determines the existence of a Hamiltonian cycle in every graph.

Graph Coloring

Graph coloring assigns colors to vertices so that adjacent vertices receive different colors.

The minimum number of colors required is called the chromatic number.

GraphChromatic Number
Complete Graph Kₙn
Path with at Least Two Vertices2
Even Cycle2
Odd Cycle3
Non-Empty Edgeless Graph1
Bipartite Graph with at Least One Edge2

Graph Isomorphism and Homomorphism

ParticularsGraph IsomorphismGraph Homomorphism
Vertex MappingBijectiveNot necessarily bijective
AdjacencyPreserved in both directionsAdjacent vertices map to adjacent vertices
PurposeEstablishes structural equivalenceRepresents structure-preserving mappings
Number of VerticesMust be equalMay differ

Shortest Path in Weighted Graphs

The shortest path is a path with minimum total edge weight between two vertices.

Dijkstra’s algorithm is a useful supplementary method for solving shortest-path problems in graphs with non-negative edge weights.

The main steps are:

  1. Assign distance zero to the source vertex.
  2. Assign infinite tentative distances to other vertices.
  3. Select the unprocessed vertex with minimum tentative distance.
  4. Update its neighboring vertices.
  5. Repeat until the required shortest distances are determined.

Unit 4 Solved Graph Theory Problems

Problem 1: Find the number of edges in a complete graph with seven vertices.

Solution:

E = n(n − 1)/2

= 7 × 6/2

Final answer: 21 edges.

Problem 2: A graph has eight vertices, each having degree three. Find the number of edges.

Solution:

Sum of degrees = 8 × 3 = 24

2E = 24

Final answer: 12 edges.

Problem 3: Find the number of edges in K₄,₅.

Solution:

E = m × n

= 4 × 5

Final answer: 20 edges.

Problem 4: A connected planar graph has eight vertices and twelve edges. Find the number of faces.

Solution:

V − E + F = 2

8 − 12 + F = 2

Final answer: Six faces, including the outer face.

Problem 5: Determine whether a connected graph with vertex degrees 2, 2, 4, 4 and 2 has an Euler circuit.

Solution:

Every vertex has even degree.

Therefore, the graph has an Euler circuit.

Problem 6: Find the chromatic number of C₇.

Solution:

C₇ is a cycle containing an odd number of vertices.

An odd cycle requires three colors.

Final answer: χ(C₇) = 3.

Problem 7: Determine whether K₅ is planar.

Solution:

K₅ has five vertices and ten edges.

For a simple planar graph:

E ≤ 3V − 6

E ≤ 3(5) − 6

E ≤ 9

However, K₅ has ten edges.

Therefore, K₅ is non-planar.

Problem 8: Find the shortest path from A to D in the following undirected weighted graph.

EdgeWeight
A–B4
A–C2
B–C1
B–D5
C–D8

Solution:

Starting from A:

Distance to C = 2.

Distance to B through C = 2 + 1 = 3.

Distance to D through B = 3 + 5 = 8.

Final shortest path:

A → C → B → D

Minimum distance: 8.

Unit 4 Important Questions

S.No.Important Question
1Define a graph and explain its basic terminology.
2Explain different types of graphs.
3Differentiate between directed and undirected graphs.
4Define simple graphs and multigraphs.
5Explain weighted graphs with examples.
6State and prove the handshaking lemma.
7Prove that the number of odd-degree vertices is even.
8Calculate the number of edges in a complete graph.
9Explain regular graphs with examples.
10Define bipartite and complete bipartite graphs.
11Explain walks, trails, paths and cycles.
12Differentiate between connected and disconnected graphs.
13Define planar graphs.
14Explain Euler’s formula for connected planar graphs.
15Solve problems involving vertices, edges and faces.
16Prove that K₅ is non-planar.
17Explain why K₃,₃ is non-planar.
18Define Eulerian paths and circuits.
19Explain the conditions for the existence of an Euler circuit.
20Define Hamiltonian paths and circuits.
21Differentiate between Eulerian and Hamiltonian graphs.
22Explain shortest-path problems in weighted graphs.
23Explain Dijkstra’s shortest-path algorithm.
24Solve shortest-path numerical problems.
25Define graph coloring.
26Define the chromatic number of a graph.
27Calculate chromatic numbers of complete graphs and cycles.
28Explain graph isomorphism.
29Explain graph homomorphism.
30Differentiate between graph isomorphism and homomorphism.
31Determine whether two given graphs are isomorphic.
32Discuss applications of graph theory in computer science.

Unit 4 Notes PDF Download

Study MaterialDownload Link
Graph Theory Complete NotesComing Soon
Graph Types and Handshaking LemmaComing Soon
Planar Graphs and Euler’s FormulaComing Soon
Eulerian and Hamiltonian GraphsComing Soon
Shortest Path ProblemsComing Soon
Graph Coloring and Chromatic NumberComing Soon
Graph Isomorphism and HomomorphismComing Soon
Unit 4 Solved ProblemsComing Soon

Unit 5: Posets, Hasse Diagrams, Lattices, Combinatorics and Recurrence Relations

The final study unit introduces ordered structures, counting techniques, recursive mathematical relationships and generating functions.

These concepts are useful in algorithm analysis, database theory, scheduling problems and mathematical modeling.

Unit 5A: Posets, Hasse Diagrams and Lattices

Complete Syllabus

  • Introduction to partially ordered sets
  • Ordered sets
  • Hasse diagrams of partially ordered sets
  • Isomorphic ordered sets
  • Well-ordered sets
  • Properties of lattices
  • Bounded lattices
  • Complemented lattices

Partially Ordered Sets

A partially ordered set, or poset, consists of a set together with a partial order relation.

A partial order satisfies:

  • Reflexivity
  • Antisymmetry
  • Transitivity

For example, the divisibility relation on {1,2,3,6} forms a partially ordered set.

Important Ordered Set Terminology

TermDescription
PosetSet together with a partial order
Comparable ElementsElements a and b for which a ≤ b or b ≤ a
ChainSubset whose elements are pairwise comparable
AntichainSubset whose distinct elements are pairwise incomparable
Minimal ElementElement with no strictly smaller element
Maximal ElementElement with no strictly larger element
Least ElementElement less than or equal to every element
Greatest ElementElement greater than or equal to every element
Upper BoundElement greater than or equal to every element of a subset
Lower BoundElement less than or equal to every element of a subset
LUBLeast upper bound
GLBGreatest lower bound
Well-Ordered SetTotally ordered set in which every non-empty subset has a least element

Hasse Diagrams

A Hasse diagram is a simplified graphical representation of a finite partially ordered set.

To construct a Hasse diagram:

  1. Identify the elements and the partial order.
  2. Remove reflexive relationships.
  3. Remove relationships implied by transitivity.
  4. Place greater elements above smaller elements.
  5. Connect elements that have a covering relationship.

Lattices

A lattice is a partially ordered set in which every pair of elements has a unique greatest lower bound and a unique least upper bound.

OperationSymbolMeaning
Meeta ∧ bGreatest lower bound
Joina ∨ bLeast upper bound

Important Types of Lattices

LatticeDescription
Bounded LatticeContains a least and greatest element
Complemented LatticeA bounded lattice in which every element has a complement
Distributive LatticeSatisfies both distributive laws
Modular LatticeSatisfies the modular law
Boolean LatticeBounded, distributive and complemented lattice

Distributive, modular and Boolean lattices are useful supplementary examples for understanding lattice properties.

Important Lattice Laws

PropertyExpression
Idempotenta ∨ a = a and a ∧ a = a
Commutativea ∨ b = b ∨ a
Associative(a ∨ b) ∨ c = a ∨ (b ∨ c)
Absorptiona ∨ (a ∧ b) = a
Dual Absorptiona ∧ (a ∨ b) = a
Complement in a Bounded Latticea ∨ a′ = 1 and a ∧ a′ = 0

Posets and Lattices Solved Problems

Problem 1: Construct the Hasse diagram for the divisors of 12 under divisibility.

Set:

D = {1,2,3,4,6,12}

Covering relationships:

Lower ElementUpper Element
12
13
24
26
36
412
612

The least element is 1.

The greatest element is 12.

Problem 2: Find the meet and join of 4 and 6 in the divisor lattice of 12.

Under divisibility:

Meet = gcd(4,6) = 2.

Join = lcm(4,6) = 12.

Final answer:

4 ∧ 6 = 2

4 ∨ 6 = 12

Problem 3: Consider the power set of A = {a,b}, ordered by inclusion. Determine the least and greatest elements.

Power set:

P(A) = {∅, {a}, {b}, {a,b}}

Least element = ∅.

Greatest element = {a,b}.

Meet is set intersection and join is set union.

The power set forms a bounded and complemented lattice.

Important Posets and Lattices Questions

S.No.Important Question
1Define a partially ordered set.
2Explain comparable and incomparable elements.
3Differentiate between partial and total ordering.
4Define chains and antichains.
5Explain minimal and maximal elements.
6Differentiate between minimal and least elements.
7Explain greatest lower bound and least upper bound.
8Define a Hasse diagram.
9Construct the Hasse diagram for a given divisibility relation.
10Construct the Hasse diagram of a power set.
11Explain isomorphic ordered sets.
12Define well-ordered sets with examples.
13Define a lattice and explain its properties.
14Explain meet and join operations.
15Explain bounded lattices.
16Explain complemented lattices.
17Explain important lattice laws.
18Determine whether a given poset is a lattice.
19Explain distributive lattices.
20Discuss applications of partially ordered sets.

Unit 5B: Combinatorics

Combinatorics deals with counting arrangements and selections without listing every possible outcome.

Complete Syllabus

  • Introduction to combinatorics
  • Permutations
  • Combinations
  • Binomial theorem
  • Multinomial coefficients

Difference Between Permutations and Combinations

ParticularsPermutationCombination
MeaningArrangement of objectsSelection of objects
OrderImportantNot Important
FormulanPr = n!/(n−r)!nCr = n!/[r!(n−r)!]
ExampleArranging students in seatsSelecting students for a team

Important Combinatorics Formulas

TopicFormula
Factorialn! = n × (n−1) × … × 1
Zero Factorial0! = 1
PermutationsnPr = n!/(n−r)!
CombinationsnCr = n!/[r!(n−r)!]
Permutations with Repeated Objectsn!/(n₁!n₂!…nₖ!)
Circular Permutations(n−1)!, for distinct objects with rotations considered equivalent
Ordered Selections with Repetitionnʳ
Combinations with RepetitionC(n+r−1,r), for n ≥ 1
Combination SymmetrynCr = nC(n−r)
Pascal’s IdentityC(n,r) = C(n−1,r−1) + C(n−1,r)
Sum of Binomial CoefficientsΣ C(n,r) = 2ⁿ, over r = 0 to n

Binomial Theorem

For a non-negative integer n:

(a + b)ⁿ = Σ C(n,r)aⁿ⁻ʳbʳ

The general term is:

Tᵣ₊₁ = C(n,r)aⁿ⁻ʳbʳ

Multinomial Theorem

The multinomial theorem extends the binomial theorem to expressions containing more than two terms.

The coefficient of x₁ᵏ¹x₂ᵏ²…xₘᵏᵐ in (x₁ + x₂ + … + xₘ)ⁿ is:

n!/(k₁!k₂!…kₘ!)

Where k₁ + k₂ + … + kₘ = n.

Combinatorics Solved Problems

Problem 1: In how many ways can three students be selected from eight students?

Solution:

Since selection order does not matter:

8C3 = 8!/(3!5!)

= (8 × 7 × 6)/(3 × 2 × 1)

Final answer: 56 ways.

Problem 2: In how many ways can three books be arranged from seven different books?

Solution:

7P3 = 7!/(7−3)!

= 7 × 6 × 5

Final answer: 210 ways.

Problem 3: Find the number of distinct arrangements of the word BANANA.

There are six letters.

A appears three times.

N appears twice.

B appears once.

Number of arrangements:

6!/(3!2!1!)

= 720/12

Final answer: 60 arrangements.

Problem 4: In how many ways can six different people sit around a circular table, considering rotations equivalent?

Solution:

Circular arrangements = (6−1)!

= 5!

Final answer: 120 arrangements.

Problem 5: Find the coefficient of x³ in (1 + x)⁷.

Solution:

Coefficient = 7C3

= 35

Final answer: 35.

Problem 6: Find the coefficient of x²y³z in (x + y + z)⁶.

Solution:

Multinomial coefficient:

6!/(2!3!1!)

= 720/12

Final answer: 60.

Problem 7: How many four-digit PIN strings can be formed using digits 0–9 if repetition is allowed?

Each position has ten possible digits.

Total = 10⁴

Final answer: 10,000 PIN strings.

Leading zeros are allowed because the question concerns PIN strings.

Important Combinatorics Questions

S.No.Important Question
1Define combinatorics and explain its applications.
2Explain the fundamental counting principle.
3Define permutations with examples.
4Define combinations with examples.
5Differentiate between permutations and combinations.
6Derive the formula for nPr.
7Derive the formula for nCr.
8Explain permutations involving repeated objects.
9Solve word arrangement problems.
10Solve committee selection problems.
11Explain circular permutations.
12Solve problems involving repetition.
13State and explain the binomial theorem.
14Find particular coefficients using the binomial theorem.
15Explain Pascal’s identity.
16Explain multinomial coefficients.
17Find coefficients using the multinomial theorem.
18Solve counting problems involving restrictions.
19Calculate the number of possible PIN strings.
20Discuss applications of combinatorics in computer science.

Unit 5C: Recurrence Relations and Generating Functions

A recurrence relation expresses a sequence term using one or more preceding terms.

Recurrence relations are widely used in recursive algorithms, sequence analysis and computational mathematics.

Complete Syllabus

  • Introduction to recurrence relations
  • Recursive algorithms
  • Linear recurrence relations with constant coefficients
  • Homogeneous solutions
  • Particular solutions
  • Total solutions
  • Generating functions
  • Solution by the method of generating functions

Important Recurrence Relation Types

TypeExample
First-Order Recurrenceaₙ = 2aₙ₋₁
Second-Order Recurrenceaₙ = aₙ₋₁ + aₙ₋₂
Homogeneous Linear Recurrenceaₙ − 3aₙ₋₁ = 0
Non-Homogeneous Linear Recurrenceaₙ − 2aₙ₋₁ = 3
Constant Coefficient Recurrenceaₙ = 5aₙ₋₁ − 6aₙ₋₂

Characteristic Equation Method

Consider the second-order homogeneous recurrence:

aₙ = paₙ₋₁ + qaₙ₋₂

Its characteristic equation is:

r² − pr − q = 0

Characteristic RootsGeneral Solution
Two Distinct Roots r₁ and r₂aₙ = Ar₁ⁿ + Br₂ⁿ
Repeated Root raₙ = (A + Bn)rⁿ

These forms apply to the standard second-order recurrence with non-zero characteristic roots. Constants are determined using initial conditions.

For a non-homogeneous linear recurrence:

Total solution = Homogeneous solution + Particular solution.

Recurrence Relations Solved Problems

Problem 1: Solve aₙ = 2aₙ₋₁ with a₀ = 3.

Solution:

a₁ = 2 × 3 = 6

a₂ = 2 × 6 = 12

a₃ = 2 × 12 = 24

The general solution is:

Final answer: aₙ = 3 × 2ⁿ.

Problem 2: Solve aₙ = 5aₙ₋₁ − 6aₙ₋₂ with a₀ = 1 and a₁ = 4.

Characteristic equation:

r² − 5r + 6 = 0

(r − 2)(r − 3) = 0

Roots are 2 and 3.

General solution:

aₙ = A2ⁿ + B3ⁿ

Using a₀ = 1:

A + B = 1

Using a₁ = 4:

2A + 3B = 4

Solving:

A = −1

B = 2

Final answer:

aₙ = 2 × 3ⁿ − 2ⁿ

Problem 3: Solve aₙ = 4aₙ₋₁ − 4aₙ₋₂ with a₀ = 1 and a₁ = 4.

Characteristic equation:

r² − 4r + 4 = 0

(r − 2)² = 0

General solution:

aₙ = (A + Bn)2ⁿ

Using a₀ = 1:

A = 1

Using a₁ = 4:

2(1 + B) = 4

B = 1

Final answer:

aₙ = (n + 1)2ⁿ

Problem 4: Solve aₙ = 2aₙ₋₁ + 3 with a₀ = 1.

Homogeneous solution:

aₙʰ = C2ⁿ

Assume a constant particular solution K.

K = 2K + 3

K = −3

Total solution:

aₙ = C2ⁿ − 3

Using a₀ = 1:

C − 3 = 1

C = 4

Final answer:

aₙ = 4 × 2ⁿ − 3

Recursive Algorithms

Recursive algorithms solve problems by reducing them to smaller instances of the same problem.

Important examples include factorial calculation, Fibonacci sequences and recursive searching.

Recursive ProblemRecurrence
Factorialn! = n × (n−1)!
FibonacciFₙ = Fₙ₋₁ + Fₙ₋₂
Sum of Natural NumbersSₙ = Sₙ₋₁ + n
Tower of HanoiTₙ = 2Tₙ₋₁ + 1

Introduction to Generating Functions

An ordinary generating function represents a sequence as a formal power series.

For a sequence a₀, a₁, a₂, …:

A(x) = a₀ + a₁x + a₂x² + a₃x³ + …

Generating functions provide an algebraic method for solving counting and recurrence problems.

Important Generating Function Formulas

SequenceOrdinary Generating Function
1,1,1,1,…1/(1−x)
1,a,a²,a³,…1/(1−ax)
0,1,2,3,…x/(1−x)²
1,2,3,4,…1/(1−x)²
0,1,4,9,…x(1+x)/(1−x)³
1,−1,1,−1,…1/(1+x)
Fibonacci Sequence Beginning 0,1x/(1−x−x²)

These identities can be used as formal power series, without requiring numerical convergence.

Generating Functions Solved Problems

Problem 5: Find the generating function of the sequence 1,2,4,8,16,…

Solution:

aₙ = 2ⁿ

A(x) = 1 + 2x + 4x² + 8x³ + …

Using the geometric series formula:

Final answer:

A(x) = 1/(1−2x)

Problem 6: Solve aₙ = aₙ₋₁ + 1 with a₀ = 1 using generating functions.

Let:

A(x) = Σ aₙxⁿ, for n ≥ 0.

From the recurrence:

A(x) − 1 = xA(x) + x/(1−x)

Therefore:

(1−x)A(x) = 1/(1−x)

A(x) = 1/(1−x)²

Expanding:

A(x) = 1 + 2x + 3x² + 4x³ + …

Final answer:

aₙ = n + 1

Problem 7: Find the generating function of the Fibonacci sequence.

Let F₀ = 0, F₁ = 1.

Fₙ = Fₙ₋₁ + Fₙ₋₂ for n ≥ 2.

Let F(x) represent the ordinary generating function.

Applying the recurrence:

F(x) − x = xF(x) + x²F(x)

F(x)(1−x−x²) = x

Final answer:

F(x) = x/(1−x−x²)

Important Recurrence Relations Questions

S.No.Important Question
1Define recurrence relations with examples.
2Explain recursively defined sequences.
3Explain recursive algorithms.
4Define linear recurrence relations.
5Differentiate between homogeneous and non-homogeneous recurrence relations.
6Explain recurrence relations with constant coefficients.
7Explain the characteristic equation method.
8Solve first-order recurrence relations.
9Solve second-order homogeneous recurrence relations.
10Solve recurrence relations having distinct characteristic roots.
11Solve recurrence relations having repeated characteristic roots.
12Explain particular solutions.
13Explain total solutions of non-homogeneous recurrences.
14Solve a non-homogeneous recurrence relation.
15Define an ordinary generating function.
16Find generating functions of common sequences.
17Explain the generating function method for solving recurrences.
18Derive the generating function of the Fibonacci sequence.
19Explain the relationship between generating functions and combinatorics.
20Discuss applications of recurrence relations in algorithm analysis.

Unit 5 Notes PDF Download

Study MaterialDownload Link
Posets and Partial Ordering NotesComing Soon
Hasse Diagram Solved ProblemsComing Soon
Lattices Complete NotesComing Soon
Permutations and Combinations NotesComing Soon
Binomial and Multinomial Theorem NotesComing Soon
Recurrence Relations Complete NotesComing Soon
Generating Functions NotesComing Soon
Unit 5 Solved Mathematical ProblemsComing Soon

RGPV Discrete Structure Important Formulas for Quick Revision

TopicFormula
Number of Subsets2ⁿ
Number of Proper Subsets2ⁿ − 1
Union of Two Setsn(A) + n(B) − n(A ∩ B)
Cartesian Productmn
Number of Binary Relations2ⁿ²
Number of Reflexive Relations2ⁿ⁽ⁿ⁻¹⁾
Number of Functionsnᵐ
Number of One-to-One Functionsn!/(n−m)!
Number of Bijective Functionsn!
Generalized Pigeonhole Principle⌈N/k⌉
Sum of First n Natural Numbersn(n+1)/2
Sum of Squaresn(n+1)(2n+1)/6
Sum of Cubes[n(n+1)/2]²
Subgroup Indexorder(G)/order(H)
Order of Symmetric Groupn!
Order of an Element in Zₙn/gcd(a,n)
Number of Truth Table Rows2ⁿ
Logical Implication¬p ∨ q
Handshaking LemmaΣ deg(v) = 2E
Complete Graph Edgesn(n−1)/2
Complete Bipartite Graph Edgesmn
Euler’s Planar Graph FormulaV−E+F = 2
Permutationsn!/(n−r)!
Combinationsn!/[r!(n−r)!]
Circular Permutations(n−1)!
Multinomial Coefficientn!/(n₁!n₂!…nₖ!)
Geometric Sequence Generating Function1/(1−ax)
Fibonacci Generating Functionx/(1−x−x²)
Total Recurrence SolutionHomogeneous + Particular Solution

Students should apply each formula only when its required mathematical conditions are satisfied.

RGPV CS302 Additional Practice Questions

S.No.Practice ProblemFinal Answer
1Find the number of subsets of a seven-element set.128
2Find the number of relations on a two-element set.16
3Find the number of reflexive relations on a three-element set.64
4Find the number of functions from a four-element set to a three-element set.81
5Find the number of bijections between two five-element sets.120
6Find the order of element 6 in Z₁₈.3
7Find the index of a subgroup of order 8 in a group of order 40.5
8Find the order of S₅.120
9Find the number of truth table rows for five variables.32
10Simplify p ∨ (p ∧ q).p
11Find the number of edges in K₈.28
12Find the number of edges in K₃,₆.18
13Find the chromatic number of C₁₀.2
14Find the chromatic number of K₆.6
15Find the faces in a connected planar graph with 10 vertices and 15 edges.7
16Calculate 10C3.120
17Calculate 8P3.336
18Find distinct arrangements of the word LEVEL.30
19Find the coefficient of x⁴ in (1+x)⁶.15
20Find the coefficient of x²y²z in (x+y+z)⁵.30
21Find gcd(8,12) as the meet in the divisor lattice of 24.4
22Find lcm(8,12) as the join in the divisor lattice of 24.24
23Solve aₙ = 3aₙ₋₁ with a₀ = 2.aₙ = 2 × 3ⁿ
24Find the generating function of 1,3,9,27,…1/(1−3x)
25Find the minimum guaranteed maximum occupancy for 25 objects distributed among 6 boxes.5

Important Diagrams for RGPV Discrete Structure

UnitImportant Diagram
Unit 1Venn diagram of union and intersection
Unit 1Venn diagram of De Morgan’s laws
Unit 1Arrow diagram of relations
Unit 1Directed graph representation of relations
Unit 1One-to-one function mapping
Unit 1Onto function mapping
Unit 1Bijective function mapping
Unit 1Job dependency diagram
Unit 2Classification of algebraic structures
Unit 2Cayley table for a finite group
Unit 2Subgroup representation
Unit 3Logical operator truth tables
Unit 3Logical expression representation
Unit 3Finite state machine transition diagram
Unit 3Language recognizer state diagram
Unit 4Complete graph
Unit 4Bipartite graph
Unit 4Complete bipartite graph
Unit 4Planar and non-planar graph
Unit 4Eulerian circuit
Unit 4Hamiltonian cycle
Unit 4Weighted shortest-path graph
Unit 4Graph coloring
Unit 4Isomorphic graphs
Unit 5Hasse diagram of a power set
Unit 5Hasse diagram of divisibility
Unit 5Bounded lattice
Unit 5Complemented lattice
Unit 5Pascal’s triangle
Unit 5Recursive computation tree

Applications of Discrete Structure in Computer Science

Computer Science AreaApplications of Discrete Mathematics
Data StructuresGraphs and relationships
Design and Analysis of AlgorithmsRecurrence relations and counting techniques
Database Management SystemsSets, relations and relational algebra
Digital SystemsBoolean algebra and logical operations
Theory of ComputationFinite state machines and formal languages
Computer NetworksGraph theory and shortest paths
CryptographyGroups, rings and fields
Artificial IntelligenceMathematical logic and graph-based problem solving
Compiler DesignFinite state machines and pattern recognition
Software EngineeringState modeling and dependency scheduling
Coding TheoryAlgebraic structures and mathematical mappings

Understanding discrete mathematics helps students develop logical reasoning and mathematical problem-solving skills for advanced computer science subjects.

RGPV Discrete Structure Previous Year Question Papers PDF

Solving previous year question papers can help students understand examination question formats and improve their mathematical problem-solving skills.

Examination YearJune Question PaperDecember Question Paper
2026Coming SoonComing Soon
2025Coming SoonComing Soon
2024Coming SoonComing Soon
2023Coming SoonComing Soon
2022Coming SoonComing Soon
2021Coming SoonComing Soon
2020Coming SoonComing Soon
2019Coming SoonComing Soon

Visit our dedicated RGPV Discrete Structure (CS302) Previous Year Question Papers PDF Download article for year-wise question paper listings, important questions, mathematical proofs and solved problems.

The table contains planned resource listings. It does not establish that a question paper exists for every examination session.

Students should verify the subject code and applicable academic scheme before solving older examination papers.

RGPV Discrete Structure Examination Pattern

The uploaded CS302 syllabus specifies the course contents, objectives and expected learning outcomes. It does not provide maximum examination marks, examination duration or question-wise marks distribution.

Students should refer to their applicable RGPV examination scheme and official question paper instructions.

Recommended Question Types for Preparation

Question TypePreparation Topics
DefinitionsSets, relations, groups, graphs and lattices
Mathematical ProofsInduction, contradiction, group properties and graph theorems
Numerical ProblemsCounting, functions, graph edges and recurrence relations
ComparisonsAlgebraic structures, logical statements and graph types
Truth TablesLogical equivalence and tautologies
Diagram-Based ProblemsHasse diagrams, graphs and finite state machines
Algorithm-Based ProblemsShortest paths and recursive algorithms

The important questions provided on this page are syllabus-based preparation questions. They are not verified previous year examination questions.

Best Reference Books for RGPV Discrete Structure

The RGPV syllabus recommends the following reference books.

S.No.Book NameAuthorPublisher
1Elements of Discrete MathematicsC. L. LiuTata McGraw Hill
2Discrete Mathematical Structures with Applications to Computer ScienceJ. P. Tremblay and R. ManoharMcGraw Hill
3Discrete Mathematics and Its ApplicationsKenneth H. RosenMcGraw Hill
4Discrete MathematicsBishtOxford University Press
5Discrete Mathematics and Graph TheoryBiswalPHI

Students can use C. L. Liu and Kenneth H. Rosen for theoretical explanations, mathematical proofs and practice problems.

For examination preparation, study the prescribed topics before attempting additional material from reference books.

RGPV Discrete Structure Important Viva Questions

Viva QuestionShort Answer
What is a set?A well-defined collection of distinct objects.
What is an empty set?A set containing no elements.
What is a power set?The set containing every subset of a given set.
What is cardinality?The number of elements in a finite set, or its size in the general set-theoretic sense.
What is a relation?A subset of a Cartesian product.
What is a reflexive relation?A relation in which every element is related to itself.
What is a symmetric relation?A relation where aRb implies bRa.
What is an equivalence relation?A reflexive, symmetric and transitive relation.
What is a partial order?A reflexive, antisymmetric and transitive relation.
What is a function?A mapping assigning exactly one output to every input.
What is an injective function?A function mapping distinct inputs to distinct outputs.
What is a surjective function?A function whose image equals its codomain.
What is a bijective function?A function that is both injective and surjective.
What is the pigeonhole principle?More objects than boxes guarantee a box containing at least two objects.
What is mathematical induction?A proof method using a base case and an induction step.
What is a semigroup?A set with an associative binary operation.
What is a monoid?A semigroup containing an identity element.
What is a group?A monoid in which every element has an inverse.
What is an Abelian group?A group whose operation is commutative.
What is a subgroup?A subset that forms a group under the inherited operation.
What is a cyclic group?A group generated by a single element.
What is a coset?A translate of a subgroup by a group element.
What is a normal subgroup?A subgroup whose left and right cosets coincide for every group element.
What is a homomorphism?A mapping that preserves the relevant algebraic operation.
What is an isomorphism?A bijective structure-preserving mapping with a structure-preserving inverse.
What is a ring?An algebraic structure with compatible addition and multiplication operations.
What is a field?A commutative ring with identity in which every non-zero element has a multiplicative inverse.
What is a proposition?A declarative statement having a truth value.
What is a tautology?A logical expression that is always true.
What is a contradiction?A logical expression that is always false.
What is a predicate?An expression involving variables that represents a property or relationship.
What does CNF stand for?Conjunctive Normal Form.
What does DNF stand for?Disjunctive Normal Form.
What is a universal quantifier?A quantifier expressing that a property holds for every element.
What is an existential quantifier?A quantifier expressing that a property holds for at least one element.
What is a finite state machine?A mathematical model using finitely many states and transitions.
What is a graph?A mathematical structure consisting of vertices and edges.
What is the degree of a vertex?The number of incident edge ends.
What is a complete graph?A simple graph in which every pair of distinct vertices is adjacent.
What is a planar graph?A graph that can be drawn without edge crossings.
What is a weighted graph?A graph having weights associated with its edges.
What is an Euler circuit?A closed trail traversing every edge exactly once.
What is a Hamiltonian cycle?A cycle visiting every vertex exactly once before returning to the start.
What is graph coloring?Assigning colors to vertices so that adjacent vertices have different colors.
What is the chromatic number?The minimum number of colors needed for proper vertex coloring.
What is a poset?A set equipped with a partial order.
What is a Hasse diagram?A graphical representation of covering relationships in a finite poset.
What is a lattice?A poset in which every pair has a meet and join.
What is the meet operation?Greatest lower bound of two elements.
What is the join operation?Least upper bound of two elements.
What is a bounded lattice?A lattice with a least and greatest element.
What is a permutation?An arrangement of objects in which order matters.
What is a combination?A selection of objects in which order does not matter.
What is a recurrence relation?A relation defining sequence terms using preceding terms.
What is a homogeneous recurrence?A linear recurrence having zero independent forcing term.
What is a characteristic equation?A polynomial equation used to solve suitable linear recurrences.
What is a generating function?A power series representing a sequence.
What is the binomial theorem?A theorem providing the expansion of a binomial raised to a non-negative integer power.
What is a multinomial coefficient?A coefficient counting arrangements distributed among multiple categories.
What is a recursive algorithm?An algorithm solving a problem through smaller instances of the same problem.

These viva questions are supplementary oral revision resources. The uploaded CS302 syllabus does not specify a separate list of practical experiments.

How to Prepare for RGPV Discrete Structure in 7 Days

DayPreparation Topics
Day 1Set theory, set identities, relations and functions
Day 2Pigeonhole principle, mathematical induction and proof techniques
Day 3Algebraic structures, groups, cosets, rings and fields
Day 4Propositional logic, predicates, normal forms and finite state machines
Day 5Graph theory, shortest paths, Eulerian and Hamiltonian graphs, graph coloring
Day 6Posets, Hasse diagrams, lattices, permutations and combinations
Day 7Recurrence relations, generating functions, formula revision and question paper practice

Effective Examination Preparation Tips

  • Understand mathematical definitions before memorizing formulas.
  • Practice set identities using Venn diagrams and algebraic proofs.
  • Solve relation and function counting problems regularly.
  • Memorize the conditions required for groups, rings and fields.
  • Construct truth tables for logical expressions.
  • Practice converting expressions into CNF and DNF.
  • Draw Hasse diagrams and identify covering relationships.
  • Solve shortest-path and graph coloring problems.
  • Practice recurrence relations with different characteristic roots.
  • Revise mathematical proofs and important formulas daily.
  • Solve available previous year question papers within their specified examination duration.
  • Review mistakes before attempting another question paper.

Benefits of RGPV Discrete Structure Unit-Wise Notes

BenefitDescription
Organized PreparationStudy topics according to the prescribed syllabus
Mathematical UnderstandingImprove knowledge of discrete mathematical concepts
Formula RevisionAccess important formulas in one place
Problem-Solving PracticePractice solved mathematical problems
Proof PreparationDevelop mathematical reasoning and proof-writing skills
Diagram PreparationPractice graphs, Hasse diagrams and state diagrams
Examination PreparationRevise syllabus-based important questions
Computer Science FoundationUnderstand concepts used in algorithms, DBMS and automata theory
Time ManagementFollow a structured examination preparation schedule

Frequently Asked Questions

What is the subject code of Discrete Structure in RGPV?

The subject code of Discrete Structure is CS302.

In which semester is RGPV Discrete Structure studied?

The supplied RGPV Computer Science and Engineering syllabus includes Discrete Structure in the third semester of B.Tech.

Where can I download RGPV CS302 unit-wise notes PDF?

Students can check the topic-wise notes download tables on this page. Verified PDF links will be added when the study materials become available.

How many units are there in RGPV Discrete Structure?

The uploaded syllabus lists several topic headings without explicit unit numbering. This article organizes the complete course content into five study units for convenient preparation.

What are the important topics in RGPV CS302?

Important topics include sets, relations, functions, algebraic structures, propositional logic, finite state machines, graph theory, lattices, combinatorics and recurrence relations.

Is set theory included in RGPV Discrete Structure?

Yes. The syllabus includes set definitions, countable and uncountable sets, Venn diagrams and set identities.

Is mathematical induction included in CS302?

Yes. Mathematical induction and proof by contradiction are included in theorem proving techniques.

What is the difference between equivalence relations and partial orders?

An equivalence relation is reflexive, symmetric and transitive. A partial order is reflexive, antisymmetric and transitive.

Are groups and subgroups included in RGPV CS302?

Yes. The algebraic structures section includes groups, subgroups, cyclic groups, cosets and normal subgroups.

Is Lagrange’s theorem important for Discrete Structure?

Lagrange’s theorem is a standard group theory result and is useful for studying finite groups, subgroup orders and cosets.

Are rings and fields included in CS302?

Yes. The syllabus includes definitions and standard results related to rings and fields.

What are the important topics in propositional logic?

Important topics include logical operations, truth tables, tautologies, contradictions, implications, equivalences, predicates, quantifiers and normal forms.

Are CNF and DNF important for CS302?

Yes. Normal forms are included in the prescribed syllabus, and CNF and DNF are important preparation topics.

Are finite state machines included in Discrete Structure?

Yes. The syllabus includes finite state machines, equivalent machines, physical system models and language recognizers.

Is graph theory included in RGPV CS302?

Yes. Graph theory is a major section of the prescribed syllabus.

What are the important graph theory formulas?

Important formulas include the handshaking lemma, complete graph edge formula, complete bipartite graph edge formula and Euler’s planar graph formula.

What is the difference between Eulerian and Hamiltonian graphs?

Eulerian paths and circuits focus on traversing edges, while Hamiltonian paths and circuits focus on visiting vertices.

Is graph coloring included in the syllabus?

Yes. Graph coloring and chromatic number are explicitly included in the syllabus.

Is Dijkstra’s algorithm included in CS302?

The syllabus specifies shortest paths in weighted graphs without naming a particular algorithm. Dijkstra’s algorithm is provided as a supplementary method for solving suitable shortest-path problems.

Are Hasse diagrams important for RGPV Discrete Structure?

Yes. Hasse diagrams are explicitly included in the partially ordered sets section.

Are lattices included in CS302?

Yes. The syllabus includes lattice properties, bounded lattices and complemented lattices.

Is combinatorics included in RGPV Discrete Structure?

Yes. The syllabus includes permutations, combinations, the binomial theorem and multinomial coefficients.

What is the difference between permutations and combinations?

Permutations involve arrangements where order matters. Combinations involve selections where order does not matter.

Are recurrence relations included in CS302?

Yes. The syllabus includes linear recurrence relations, homogeneous solutions, particular solutions and total solutions.

Are generating functions included in the syllabus?

Yes. Generating functions and their use in solving recurrence relations are explicitly included.

Is Discrete Structure useful for data structures and algorithms?

Yes. Graph theory, combinatorics, recursion and recurrence relations provide important mathematical foundations for studying algorithms and data structures.

Which books are recommended for RGPV Discrete Structure?

The syllabus recommends books by C. L. Liu, J. P. Tremblay and R. Manohar, Kenneth H. Rosen, Bisht and Biswal.

Can I prepare Discrete Structure in seven days?

A seven-day schedule can help students revise the complete syllabus. The time required depends on their existing mathematical understanding and problem-solving skills.

Where can I download RGPV CS302 previous year question papers?

Visit our RGPV CS302 previous year question papers article for year-wise resources and supplementary practice questions. Verified PDF links will be added when available.

Are the important questions on this page actual previous year examination questions?

The important questions and solved problems are prepared according to the supplied RGPV syllabus. Actual previous year papers will be listed separately.

Explore More RGPV CSE Third Semester Study Materials

Subject CodeSubject NameStudy Resources
ES301Energy & Environmental EngineeringView Notes
CS302Discrete StructureCurrent Page
CS303Data StructureComing Soon
CS304Digital SystemsComing Soon
CS305Object Oriented Programming & MethodologyComing Soon

Visit NotesGallery RGPV for subject-wise engineering notes, university syllabus resources, previous year question papers and examination preparation materials.

Bookmark this page to access RGPV Discrete Structure (CS302) unit-wise notes, mathematical formulas, solved problems, important questions and upcoming PDF downloads.

ABOUT THE AUTHOR

admin

Contributor to NotesGallery RGPV, an independent student resource platform. This collection brings course, subject and semester resources together to help students find relevant study material. Always compare linked documents with your admission batch and the latest official university scheme. For corrections or source questions, contact the student desk.

Contact the student desk →

Student discussion

Leave a Reply

Keep comments relevant to the subject. Never share passwords or personal documents.

STAY CONNECTED

Stay connected to your semester.

Get notes, question papers and RGPV updates on your preferred channel.

Join our RGPV community

Keep new notes, useful study materials and important university updates close. Follow us on WhatsApp or Telegram.

Join WhatsAppJoin Telegram

Search RGPV resources