Unit 3: Counting Principles and Relations - Subjective Questions
MTH401 — Discrete Mathematics • Practice Questions with Detailed Answers
20 questions
State and derive the Principle of Inclusion-Exclusion for three finite sets , , and .
Principle of Inclusion-Exclusion: It determines the number of elements in the union of overlapping finite sets.
For two sets,
For three sets, first add the sizes of all three sets. Elements in pairwise intersections are then counted twice, so subtract each pairwise intersection. However, elements in were initially counted three times and subsequently subtracted three times, so they must be added once.
Therefore,
More generally, for finite sets ,
The signs alternate because each element must finally be counted exactly once.
Using the Principle of Inclusion-Exclusion, find how many integers from to are divisible by at least one of , , or .
Let:
- be the set of integers divisible by ,
- be the set of integers divisible by ,
- be the set of integers divisible by .
The individual counts are
The pairwise intersections are found using least common multiples:
The triple intersection is
By inclusion-exclusion,
Thus, 271 integers from to are divisible by at least one of , , or .
State the Pigeonhole Principle and use it to prove that among any people, at least two were born in the same month.
Pigeonhole Principle: If more than objects are placed into boxes, then at least one box contains at least two objects.
In this problem:
- The objects are the people.
- The boxes are the months of the year.
Suppose, for contradiction, that no two people were born in the same month. Then each month could contain the birthday of at most one person, so at most people could be assigned to the months.
However, there are people. Since
the Pigeonhole Principle guarantees that at least one month contains the birthdays of at least two people.
Therefore, among any people, at least two must have been born in the same month.
State and prove the Generalized Pigeonhole Principle. Hence, determine the minimum number of students who must share a birth month in a group of students.
Generalized Pigeonhole Principle: If objects are distributed among boxes, then at least one box contains at least
objects.
Proof: Assume every box contains fewer than objects. Then every box contains at most
objects. Hence, the total number of objects would be at most
which contradicts the fact that there are objects. Therefore, at least one box must contain at least objects.
For students and birth months,
Thus, at least 9 students must have been born in the same month.
Define a binary relation and explain the reflexive, symmetric, antisymmetric, and transitive properties of a relation.
A binary relation from a set to a set is any subset of the Cartesian product :
If , then is called a relation on . The notation means .
For a relation on :
-
Reflexive: is reflexive if every element is related to itself:
-
Symmetric: is symmetric if reversing every related pair produces another related pair:
-
Antisymmetric: is antisymmetric if two distinct elements cannot be related in both directions:
-
Transitive: is transitive if a relation from to and from to implies a relation from to :
A relation may satisfy several of these properties simultaneously. Symmetry and antisymmetry are not logical opposites; for example, the equality relation is both symmetric and antisymmetric.
Let be the divisibility relation on the set of positive integers, defined by if and only if . Determine whether is reflexive, symmetric, antisymmetric, and transitive.
The relation is defined by
-
Reflexive: For every positive integer , , so . Therefore, is reflexive.
-
Symmetric: The relation is not symmetric. For example, , but .
-
Antisymmetric: Suppose and . Then there exist positive integers and such that
Substitution gives . Since , , which implies . Hence, . Therefore, is antisymmetric. -
Transitive: If and , then and for some positive integers . Thus,
so . Therefore, is transitive.
Hence, divisibility is reflexive, antisymmetric, and transitive, but not symmetric. It is consequently a partial ordering relation on the positive integers.
Explain how relations can be combined using union, intersection, difference, complement, and inverse. State an important property of the inverse operation.
Let and be relations from to .
-
Union:
A pair belongs to the union if it belongs to at least one relation. -
Intersection:
-
Difference:
-
Complement: Relative to ,
-
Inverse: The inverse relation is a relation from to defined by
For example, if
then
An important property is
Also,
and
Define the composition of two relations. For and on , find and .
For relations from to and from to , the composition is defined by
Thus, is applied first and second.
For :
- and , giving .
- and , giving .
- and , giving .
Therefore,
For , apply first and then :
- and , giving .
- and , giving .
- and , giving .
Therefore,
Since , composition of relations is generally not commutative.
Explain how a finite relation is represented using a zero-one matrix. How can the matrix of a composition of relations be obtained?
Let be a relation from
to
The zero-one matrix of is the matrix , where
For example, if
then
If is a relation from to and is a relation from to , then
where denotes the Boolean product. Its entries are
Here, multiplication is replaced by logical AND, and addition is replaced by logical OR. An entry is exactly when there exists an intermediate element such that and .
Describe the directed-graph representation of a relation. Explain how reflexivity, symmetry, and transitivity can be recognized from its directed graph.
For a relation on a finite set , its directed graph, or digraph, consists of:
- A vertex for each element of .
- A directed edge from to whenever .
- A loop at whenever .
The main relation properties can be recognized as follows:
- Reflexive: Every vertex has a loop.
- Irreflexive: No vertex has a loop.
- Symmetric: Whenever there is an edge from to , there is also an edge from to .
- Antisymmetric: For distinct vertices and , edges cannot occur in both directions.
- Transitive: Whenever there are edges and , there must also be an edge .
For example, if
then the graph has loops at and and directed edges in both directions between them. Thus, the relation is reflexive and symmetric. It is not antisymmetric because and while .
Define an equivalence relation. Prove that the relation on defined by if and only if is an equivalence relation.
An equivalence relation is a relation that is reflexive, symmetric, and transitive.
Here,
which is equivalent to
Reflexivity: For every ,
and . Hence, .
Symmetry: If , then . Thus, for some integer . Therefore,
so and .
Transitivity: If and , then
for some integers . Adding gives
Therefore, and .
Since is reflexive, symmetric, and transitive, it is an equivalence relation.
Explain equivalence classes and prove that the equivalence classes of an equivalence relation form a partition of the underlying set.
Let be an equivalence relation on a set . The equivalence class of is
To show that the equivalence classes form a partition, the following conditions must hold:
-
Every class is nonempty: Since is reflexive, . Hence, , so .
-
The classes cover : Every belongs to its own class . Therefore,
-
Two classes are either identical or disjoint: Suppose
Then some satisfies and . By symmetry, , and by transitivity, . If , then . Since , transitivity gives , so . Thus, . Similarly, , so .
Hence, distinct equivalence classes are disjoint and together cover $A`; therefore, they form a partition of $A$.
Conversely, every partition of a set defines an equivalence relation by declaring two elements equivalent when they belong to the same block.
Distinguish between partial ordering and total ordering relations, with suitable examples.
A relation on a set is a partial ordering relation if it is:
- Reflexive,
- Antisymmetric,
- Transitive.
The pair is then called a partially ordered set, or poset.
A partial order does not require every pair of elements to be comparable. Elements and are comparable if
A total ordering relation is a partial order in which every pair of elements is comparable:
Examples:
- The subset relation on is a partial order. For , the sets and are incomparable.
- The usual relation on is a total order because for any integers and , either or .
- Divisibility on positive integers is a partial order but not a total order; for example, neither nor .
Thus, every total order is a partial order, but every partial order need not be a total order.
Construct and describe the Hasse diagram of the poset . Identify its levels, least element, greatest element, and number of covering edges.
The power set is
In a Hasse diagram, reflexive loops and transitive edges are omitted. An element covers when
and no set lies strictly between them. For the subset relation, covers exactly when is obtained by adding one element to .
The levels are:
- Level 0:
- Level 1:
- Level 2:
- Level 3:
The covering edges connect sets on consecutive levels that differ by one element.
- From level to level : edges.
- From level to level : edges.
- From level to level : edges.
Thus, the total number of covering edges is
The least element is , and the greatest element is . The diagram is the three-dimensional Boolean lattice .
Explain the components of a Hasse diagram: covering relation, minimal and maximal elements, least and greatest elements, upper and lower bounds, supremum, and infimum.
A Hasse diagram is a simplified graphical representation of a finite poset. Larger elements are placed above smaller elements, while loops, arrowheads, and edges implied by transitivity are omitted.
-
Covering relation: An element covers if and there is no such that . A line is drawn between and .
-
Minimal element: An element with no strictly smaller element in the poset. A poset may have several minimal elements.
-
Maximal element: An element with no strictly greater element. A poset may have several maximal elements.
-
Least element: An element satisfying for every . If it exists, it is unique.
-
Greatest element: An element satisfying for every . If it exists, it is unique.
-
Upper bound of : An element such that for every .
-
Lower bound of : An element such that for every .
-
Supremum or least upper bound: The smallest of all upper bounds, denoted or .
-
Infimum or greatest lower bound: The greatest of all lower bounds, denoted or .
A least element is necessarily the unique minimal element, but a unique minimal element in an infinite poset need not always be least. Similar terminology applies to greatest and maximal elements.
Define a lattice. Show that the set of positive divisors of , ordered by divisibility, forms a lattice.
A lattice is a poset in which every pair of elements has:
- A unique greatest lower bound, called the meet and denoted .
- A unique least upper bound, called the join and denoted .
The positive divisors of are
The ordering relation is divisibility. For any :
-
Their greatest lower bound is their greatest common divisor:
-
Their least upper bound is their least common multiple:
Since and both divide , their greatest common divisor and least common multiple also divide $12`. Thus, both belong to $D_{12}$.
For example, for and ,
Therefore, every pair has a meet and a join, so is a lattice. Its least element is , and its greatest element is .
Define a sublattice. Determine whether and are sublattices of the divisor lattice of .
A nonempty subset of a lattice is a sublattice if it is closed under the meet and join operations of $L`. Thus, for all $a,b\in S$,
In the divisor lattice of ,
For
the elements form a divisibility chain:
For any two elements in a chain, the meet is the smaller element and the join is the larger element. Both remain in S_1$ is a sublattice**.
For
consider and :
but
Thus, is not closed under join. Therefore, is not a sublattice.
State the fundamental algebraic laws satisfied by meet and join in a lattice. Illustrate the absorption laws.
For all elements of a lattice, the meet and join satisfy the following laws:
-
Idempotent laws:
-
Commutative laws:
-
Associative laws:
-
Absorption laws:
The first absorption law holds because a$ and $a\vee b$ is $a$ itself:
Similarly, a$ and $a\wedge b$ is $a$:
These laws permit a lattice to be described algebraically using the two binary operations and .
Draw conceptually the Hasse diagram for the positive divisors of ordered by divisibility. List all covering pairs and show that the poset is a lattice.
The positive divisors of are
Since
each divisor corresponds to a subset of the prime factors ${2,3,5}`. The Hasse diagram has four levels:
- Level 0:
- Level 1:
- Level 2:
- Level 3:
The covering pairs are
For any , the meet and join are
Both values are divisors of $30`. For example,
and
Thus, every pair has a unique greatest lower bound and least upper bound. Therefore, is a lattice. It is structurally equivalent to the Boolean lattice .
Let be a relation on . Find , , and the transitive closure of using composition.
The powers of a relation are defined recursively by
A pair belongs to when there is a directed path of length from to .
Given
paths of length are:
- , giving .
- , giving .
Therefore,
The only path of length is
so
There are no paths of length , so
The transitive closure is the smallest transitive relation containing $R` and is given by
Hence,
This relation includes a pair whenever is reachable from by a path of positive length.
State and derive the Principle of Inclusion-Exclusion for three finite sets , , and .
Principle of Inclusion-Exclusion: It determines the number of elements in the union of overlapping finite sets.
For two sets,
For three sets, first add the sizes of all three sets. Elements in pairwise intersections are then counted twice, so subtract each pairwise intersection. However, elements in were initially counted three times and subsequently subtracted three times, so they must be added once.
Therefore,
More generally, for finite sets ,
The signs alternate because each element must finally be counted exactly once.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →