1For two finite sets A and B, the formula for the Principle of Inclusion-Exclusion is ?
principle of Inclusion-Exclusion
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The Principle of Inclusion-Exclusion states that to find the size of the union of two sets, we add their individual sizes and subtract the size of their intersection to correct for double-counting elements.
Incorrect! Try again.
2If you have 10 pigeons and 9 pigeonholes, what does the Pigeonhole Principle guarantee?
Pigeonhole
Easy
A.At least one pigeonhole must contain more than one pigeon.
B.One pigeonhole must be empty.
C.Every pigeonhole has exactly one pigeon.
D.Each pigeon gets its own pigeonhole.
Correct Answer: At least one pigeonhole must contain more than one pigeon.
Explanation:
The Pigeonhole Principle states that if items are put into containers, then at least one container must contain more than one item. Here, we have 10 pigeons (items) and 9 pigeonholes (containers).
Incorrect! Try again.
3A relation R on a set A is called reflexive if for every element :
relations and their properties
Easy
A.
B.
C. and implies
D. implies
Correct Answer:
Explanation:
The definition of a reflexive relation is that every element in the set must be related to itself.
Incorrect! Try again.
4A relation R on a set A is called symmetric if for all elements :
relations and their properties
Easy
A.if , then
B.if and , then
C.if , then
D.
Correct Answer: if , then
Explanation:
The definition of a symmetric relation is that if an element 'a' is related to 'b', then 'b' must also be related to 'a'.
Incorrect! Try again.
5Which of the following properties are required for a relation to be an equivalence relation?
equivalence relations
Easy
A.Symmetric and Transitive
B.Reflexive, Symmetric, and Transitive
C.Reflexive and Symmetric
D.Reflexive, Antisymmetric, and Transitive
Correct Answer: Reflexive, Symmetric, and Transitive
Explanation:
By definition, a relation is an equivalence relation if and only if it is reflexive, symmetric, and transitive.
Incorrect! Try again.
6In the matrix representation of a relation R on a set , an entry means:
representing relation using matrices and graph
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The matrix of a relation R is defined such that the entry in the i-th row and j-th column is 1 if the pair is in the relation, and 0 otherwise.
Incorrect! Try again.
7What does a Hasse diagram visually represent?
Hasse diagram and its components
Easy
A.An equivalence relation
B.A function
C.A partially ordered set
D.A simple graph
Correct Answer: A partially ordered set
Explanation:
A Hasse diagram is a specific type of mathematical diagram used to represent a finite partially ordered set (poset), showing its ordering relationships in a simplified way.
Incorrect! Try again.
8A relation is a partial ordering if it is:
partial and total ordering relations
Easy
A.Reflexive, Symmetric, and Transitive
B.Irreflexive and Transitive
C.Reflexive, Antisymmetric, and Transitive
D.Symmetric and Antisymmetric
Correct Answer: Reflexive, Antisymmetric, and Transitive
Explanation:
These three properties—reflexivity, antisymmetry, and transitivity—are the defining characteristics of a partial ordering relation.
Incorrect! Try again.
9A partially ordered set in which every pair of elements has both a least upper bound (LUB) and a greatest lower bound (GLB) is called a:
lattice
Easy
A.Equivalence class
B.Total order
C.Chain
D.Lattice
Correct Answer: Lattice
Explanation:
This is the fundamental definition of a lattice. The LUB is also known as the join, and the GLB is also known as the meet.
Incorrect! Try again.
10If you have 25 students in a class and the grades are A, B, C, D, F (5 options), what is the minimum number of students that must receive the same grade?
generalized pigeonhole principle
Easy
A.6
B.5
C.25
D.4
Correct Answer: 5
Explanation:
Using the generalized pigeonhole principle, with N=25 students (objects) and k=5 grades (boxes), there must be at least students in one box (receiving the same grade).
Incorrect! Try again.
11In the directed graph of a relation, what does a loop (an edge from a vertex to itself) represent?
representing relation using matrices and graph
Easy
A.A transitive property
B.A symmetric pair in the relation
C.A reflexive pair in the relation
D.An isolated vertex not in any relation
Correct Answer: A reflexive pair in the relation
Explanation:
A loop from a vertex 'a' to itself in a directed graph indicates that the element 'a' is related to itself, meaning the pair is part of the relation.
Incorrect! Try again.
12Which of the following are NOT drawn in a Hasse diagram to simplify it?
Hasse diagram and its components
Easy
A.Edges showing the covering relation
B.The minimal elements at the bottom
C.The vertices representing the elements of the set
D.Loops for reflexivity and edges implied by transitivity
Correct Answer: Loops for reflexivity and edges implied by transitivity
Explanation:
The main purpose of a Hasse diagram is to simplify the visualization of a poset by removing redundant information. Loops (from reflexivity) and transitive edges are always omitted.
Incorrect! Try again.
13What is the key difference between a partial order and a total order?
partial and total ordering relations
Easy
A.A total order does not need to be reflexive.
B.A total order does not need to be transitive.
C.In a total order, every pair of elements is comparable.
D.In a total order, some pairs of elements may not be comparable.
Correct Answer: In a total order, every pair of elements is comparable.
Explanation:
A partial order becomes a total order (or linear order) if it has the additional property of comparability, meaning for any two distinct elements a and b, either a is related to b or b is related to a.
Incorrect! Try again.
14The "divides" relation on the set of positive integers is an example of a relation that is:
relations and their properties
Easy
A.Neither reflexive, symmetric, nor transitive
B.An equivalence relation
C.Symmetric
D.Transitive
Correct Answer: Transitive
Explanation:
The "divides" relation is transitive because if 'a' divides 'b' and 'b' divides 'c', then 'a' must divide 'c'. It is not symmetric (e.g., 2 divides 4, but 4 does not divide 2).
Incorrect! Try again.
15Let be a relation on . What is the composition ?
composition
Easy
A.
B.
C. (The empty set)
D.
Correct Answer:
Explanation:
The composition contains a pair if there is a such that and . Here, since and , the pair is in .
Incorrect! Try again.
16Let and be relations on the set . What is the intersection ?
combining relation
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The intersection of two relations contains only the ordered pairs that are present in BOTH relations. The only common pair between R and S is (1,2).
Incorrect! Try again.
17In any group of 367 people, at least two people must have the same birthday. This is an application of which principle?
Pigeonhole
Easy
A.Mathematical Induction
B.Pigeonhole Principle
C.Principle of Inclusion-Exclusion
D.Permutation Principle
Correct Answer: Pigeonhole Principle
Explanation:
This is a classic example of the Pigeonhole Principle. The 367 people are the 'pigeons' and the 366 possible birthdays (including Feb 29) are the 'pigeonholes'. Since there are more pigeons than pigeonholes, a collision is guaranteed.
Incorrect! Try again.
18An equivalence relation on a set partitions the set into disjoint subsets called:
equivalence relations
Easy
A.Kernels
B.Equivalence classes
C.Sublattices
D.Posets
Correct Answer: Equivalence classes
Explanation:
A fundamental property of an equivalence relation is that it divides the set into a collection of non-empty, disjoint subsets where every element in a subset is equivalent to every other element in that same subset.
Incorrect! Try again.
19What is the primary purpose of the Principle of Inclusion-Exclusion?
principle of Inclusion-Exclusion
Easy
A.To count the number of elements in the union of sets.
B.To draw a Hasse diagram.
C.To prove a relation is transitive.
D.To find the inverse of a relation.
Correct Answer: To count the number of elements in the union of sets.
Explanation:
The principle provides a systematic way to find the cardinality (number of elements) of the union of multiple sets by adding the sizes of individual sets, subtracting the sizes of all pairwise intersections, adding the sizes of all three-way intersections, and so on.
Incorrect! Try again.
20For a non-empty subset S of a lattice L to be a sublattice, it must be:
sub lattice
Easy
A.A finite set.
B.A total order.
C.Closed under the meet and join operations of L.
D.Contain at least three elements.
Correct Answer: Closed under the meet and join operations of L.
Explanation:
The definition of a sublattice is that for any two elements 'a' and 'b' in the subset S, their meet () and their join () must also be elements of S.
Incorrect! Try again.
21A class has 175 students. 100 students are in the Math club, 65 are in the Science club, and 45 are in the History club. If 30 students are in both Math and Science, 25 are in both Math and History, 15 are in both Science and History, and 10 are in all three clubs, how many students are in none of the clubs?
principle of Inclusion-Exclusion
Medium
A.25
B.35
C.45
D.15
Correct Answer: 25
Explanation:
Using the Principle of Inclusion-Exclusion for three sets: .
.
This is the number of students in at least one club. The number of students in none of the clubs is Total - .
Incorrect! Try again.
22What is the minimum number of students required in a class to be sure that at least six will receive the same grade, if there are five possible grades: A, B, C, D, and F?
generalized pigeonhole principle
Medium
A.31
B.25
C.30
D.26
Correct Answer: 26
Explanation:
This is an application of the Generalized Pigeonhole Principle. Let be the number of students (pigeons) and be the number of grades (pigeonholes), so . We want to find the smallest such that at least one pigeonhole contains at least pigeons. The formula is . Plugging in the values, we get . In the worst-case scenario, you could have 5 students with each grade (25 students total) before the 26th student forces a sixth person to have a certain grade.
Incorrect! Try again.
23Let R be a relation on the set of integers defined by if and only if is a multiple of 5. Which set of properties does R have?
relations and their properties
Medium
A.Symmetric, Transitive
B.Reflexive, Symmetric, Transitive
C.Reflexive, Antisymmetric, Transitive
D.Reflexive, Symmetric
Correct Answer: Reflexive, Symmetric, Transitive
Explanation:
Reflexive: For any integer , , which is a multiple of 5 (). So . The relation is reflexive.
Symmetric: If , then for some integer . Then , which is also a multiple of 5. So . The relation is symmetric.
Transitive: If and , then and for some integers . Adding these equations gives , which simplifies to . So . The relation is transitive.
Since it has all three properties, it is an equivalence relation.
Incorrect! Try again.
24Consider the Hasse diagram for the divisibility relation on the set . Which of the following are the maximal elements of this poset?
Hasse diagram and its components
Medium
A.2, 3, 5
B.6, 10, 15
C.1
D.30
Correct Answer: 30
Explanation:
A maximal element is an element that is not smaller than any other element in the set (i.e., there is no element 'above' it in the Hasse diagram). In the poset of divisibility on the set , an element is maximal if there is no other element (where ) such that divides . In the given set, 30 is divisible by all other elements, and no other element in the set divides 30 and is different from 30. Therefore, 30 is the only maximal element. It is also the greatest element.
Incorrect! Try again.
25Let be a relation from to and be a relation from to . Given and . What is the composition relation ?
composition
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The composition contains a pair if there is an element such that and .
For : We have and . So, .
For : We have and . So, .
For : We have and . So, .
Combining these gives .
Incorrect! Try again.
26Given the set and a partition . Which pair is NOT in the equivalence relation R corresponding to this partition?
equivalence relations
Medium
A.(4, 1)
B.(1, 2)
C.(3, 5)
D.(2, 2)
Correct Answer: (1, 2)
Explanation:
An equivalence relation corresponding to a partition relates two elements if and only if they are in the same subset of the partition.
(4, 1): 4 and 1 are in the same subset , so (4, 1) is in R.
(3, 5): 3 and 5 are in the same subset , so (3, 5) is in R.
(2, 2): 2 is in the same subset as itself, so (2, 2) is in R (relations must be reflexive).
(1, 2): 1 is in subset and 2 is in subset . Since they are in different subsets, the pair (1, 2) is not in R.
Incorrect! Try again.
27Which of the following posets represents a total ordering?
partial and total ordering relations
Medium
A.(, ' if is even')
B.(, '|' where '|' means 'divides')
C.(, '')
D.(Power set of , '')
Correct Answer: (, '')
Explanation:
A total ordering is a partial ordering where every pair of elements is comparable. That is, for any , either or .
(, ''): For any two integers , it is always true that either or . This is a total order.
(Power set of , ''): The elements and are incomparable because neither is a subset of the other. This is a partial order, not total.
(, '|'): The integers 2 and 3 are incomparable because 2 does not divide 3 and 3 does not divide 2. This is a partial order, not total.
(, ' if is even'): This is an equivalence relation, not a partial order (it is not antisymmetric).
Incorrect! Try again.
28Consider the poset represented by the Hasse diagram where the set is and the relations are , , , . Is this poset a lattice?
lattice
Medium
A.Yes, because every pair has a unique join and meet.
B.No, because the pair (d, e) has no greatest lower bound.
C.No, because the pair (b, c) has no least upper bound.
D.Yes, because it has a unique minimal and maximal element.
Correct Answer: No, because the pair (b, c) has no least upper bound.
Explanation:
For a poset to be a lattice, every pair of elements must have a unique greatest lower bound (GLB or meet) and a unique least upper bound (LUB or join).
In this poset, consider the pair of elements {b, c}.
The set of lower bounds for {b, c} is , so the GLB is .
The set of upper bounds for {b, c} are elements such that and . There are no such elements in the set . Since the set of upper bounds is empty, there is no least upper bound. Therefore, the poset is not a lattice.
Incorrect! Try again.
29A relation R on the set is represented by the matrix . Which property does this relation have?
representing relation using matrices and graph
Medium
A.Not Reflexive
B.Symmetric
C.Not Transitive
D.Antisymmetric
Correct Answer: Antisymmetric
Explanation:
Let's check the properties from the matrix :
Reflexive: The main diagonal consists of all 1s. So, it is reflexive.
Symmetric: The matrix is not symmetric, because but . So, it is not symmetric.
Antisymmetric: A relation is antisymmetric if for all , if , then . Here, and . This condition holds for all pairs. So, it is antisymmetric.
Transitive: We can check if . The boolean product is equal to in this case, which means the relation is transitive. For example, and implies . and implies . It is transitive.
Incorrect! Try again.
30In any simple graph with vertices, there must be at least two vertices that have the same degree. Which principle best explains this?
Pigeonhole
Medium
A.Permutation Principle
B.Pigeonhole Principle
C.Generalized Pigeonhole Principle
D.Principle of Inclusion-Exclusion
Correct Answer: Pigeonhole Principle
Explanation:
This is a classic application of the Pigeonhole Principle.
Pigeons: The vertices of the graph.
Pigeonholes: The possible degrees of the vertices.
The degree of any vertex can range from 0 to . However, a vertex cannot have degree 0 (isolated) at the same time another vertex has degree (connected to all other vertices). Thus, the set of possible degrees is either or . In either case, there are only possible degree values (pigeonholes). Since there are vertices (pigeons) and only possible degrees, by the Pigeonhole Principle, at least two vertices must share the same degree.
Incorrect! Try again.
31Let L be the lattice , where is the power set of . Let . Is a sub-lattice of L?
sub lattice
Medium
A.No, because the meet of and is not in $S' prona
B.Yes, because it is closed under join and meet operations.
C.Yes, because it contains the least and greatest elements of L.
D.No, because the join of and is not in $S' prona
Correct Answer: No, because the join of and is not in $S' prona
Explanation:
For to be a sub-lattice of L, for any two elements , their join () and meet () as calculated in L must also be in . Let's test the pair and .
Meet: . Since , the meet operation is closed for this pair.
Meet: . . This works.
Join: . The set is NOT in . Therefore, is not closed under the join operation and is not a sub-lattice. The original question text's actually is a sublattice. I will re-write the question to reflect my improved example. The correct answer will be about the failure of closure.
Incorrect! Try again.
32Let R be a relation on the set given by . What is the relation (or )?
composition
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The composition is found by finding pairs such that for some , and .
We have and . This gives .
We have and . This gives .
We have and . This gives .
Thus, .
Incorrect! Try again.
33The Boolean matrix product is used to find the matrix representing which relation?
representing relation using matrices and graph
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The matrix of the composition of two relations is the Boolean product of their matrices. However, the order is important. If is a relation from set A to set B, and is a relation from set B to set C, the matrix for the composition (a relation from A to C) is given by . The order of matrices in the product is the reverse of the order of relations in the composition.
Incorrect! Try again.
34How many cards must be selected from a standard 52-card deck to guarantee that at least three cards of the same suit are chosen?
generalized pigeonhole principle
Medium
A.13
B.5
C.9
D.7
Correct Answer: 9
Explanation:
This is an application of the Generalized Pigeonhole Principle.
The 'pigeonholes' are the four suits (Spades, Hearts, Diamonds, Clubs), so .
We want to guarantee at least three cards of the same suit, so .
The number of cards to be selected is .
The formula is .
.
In the worst case, you could draw two cards of each suit (2 Spades, 2 Hearts, 2 Diamonds, 2 Clubs), which is 8 cards. The 9th card drawn must complete a set of three for one of the suits.
Incorrect! Try again.
35In the poset where '|' denotes the 'divides' relation, what is the set of upper bounds for the subset ?
Hasse diagram and its components
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
An upper bound for a subset is an element in the poset that is divisible by every element in the subset. We need to find all numbers in the set such that and . This is equivalent to finding all elements in the set that are common multiples of 4 and 6.
Checking 8: 4|8 but 6 does not divide 8.
Checking 12: 4|12 and 6|12. So 12 is an upper bound.
Checking 18: 6|18 but 4 does not divide 18.
Therefore, the only upper bound for the subset within the given poset is .
Incorrect! Try again.
36Let . Let and be relations on A. What is the relation ?
combining relation
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
First, let's explicitly list the pairs in each relation on .
The union is the set of all pairs that are in either or .
.
This set contains all possible pairs from where is not equal to . Therefore, .
Incorrect! Try again.
37The 'divides' relation on the set of positive integers is a partial order. Which property prevents it from being an equivalence relation?
relations and their properties
Medium
A.It is not reflexive.
B.It is not symmetric.
C.It is not transitive.
D.It is not antisymmetric.
Correct Answer: It is not symmetric.
Explanation:
An equivalence relation must be reflexive, symmetric, and transitive. A partial order must be reflexive, antisymmetric, and transitive.
Let's check the properties of the 'divides' relation on :
Reflexive: for all . (True)
Transitive: If and , then . (True)
Antisymmetric: If and , then . (True for positive integers)
Symmetric: If , then . This is generally false. For example, but 4 does not divide 2.
Since the relation is not symmetric, it cannot be an equivalence relation.
Incorrect! Try again.
38How many integers between 1 and 200 (inclusive) are divisible by 4 or 6, but not by both?
principle of Inclusion-Exclusion
Medium
A.67
B.83
C.75
D.59
Correct Answer: 67
Explanation:
Corrected Question & Explanation: How many integers between 1 and 200 (inclusive) are divisible by 4 or 6?
. The number divisible by 4 or 6 is .
Incorrect! Try again.
39A relation is a partial order if it is reflexive, transitive, and which other property?
partial and total ordering relations
Medium
A.Symmetric
B.Irreflexive
C.Antisymmetric
D.Comparability
Correct Answer: Antisymmetric
Explanation:
A relation R on a set A is a partial order if it satisfies three properties:
Reflexivity: For every element , .
Antisymmetry: If and , then .
Transitivity: If and , then .
Symmetry is required for equivalence relations. Comparability ( or for all ) is the additional property that makes a partial order a total order.
Incorrect! Try again.
40Consider the relation R on the set of ordered pairs of positive integers where if and only if . Why is this relation an equivalence relation?
equivalence relations
Medium
A.It is antisymmetric and transitive, but not reflexive.
B.It is reflexive, symmetric, and transitive.
C.It is reflexive and symmetric, but not transitive.
D.It is a total ordering of the pairs.
Correct Answer: It is reflexive, symmetric, and transitive.
Explanation:
This relation defines equivalence for fractions (). Let's check the properties:
Reflexive: because . True.
Symmetric: If , then . This implies , which means . True.
Transitive: If and , then and . From the first, . From the second, . Therefore, , which means . So . True.
Since the relation is reflexive, symmetric, and transitive, it is an equivalence relation.
Incorrect! Try again.
41How many surjective (onto) functions are there from a set with to a set with ?
principle of Inclusion-Exclusion
Hard
A.2401
B.4096
C.16384
D.8400
Correct Answer: 8400
Explanation:
This is a classic application of the Principle of Inclusion-Exclusion. The total number of functions from to is . Let be the property that the element is not in the image of the function. We want to find the number of functions with none of these properties. Using PIE, the number of surjective functions is given by the formula: where and . So, the calculation is:
Incorrect! Try again.
42What is the minimum number of nodes in a complete graph such that if every edge is colored with one of three colors (red, green, or blue), there is guaranteed to be a monochromatic triangle (a set of three nodes where the three connecting edges all have the same color)?
generalized pigeonhole principle
Hard
A.27
B.17
C.9
D.6
Correct Answer: 17
Explanation:
This is a problem from Ramsey Theory, a generalization of the pigeonhole principle. We are looking for the Ramsey number . The value is 17. The proof sketch for is as follows: Pick an arbitrary vertex . It is connected to 16 other vertices. By the generalized pigeonhole principle, at least of these edges must be of the same color, say red. Let the set of vertices connected to by red edges be . If any edge between two vertices in is red, we have a red triangle. If not, all edges within are colored green or blue. Since and , there must be a monochromatic (green or blue) triangle within . Thus, in any case, a monochromatic triangle must exist in a . A specific coloring exists for that avoids any monochromatic triangle, proving 17 is the minimum.
Incorrect! Try again.
43Consider the poset , where is the set of positive divisors of 180 and '|' is the divisibility relation. Which of the following statements about this lattice is correct?
lattice
Hard
A.It is neither distributive nor complemented.
B.It is a complemented lattice but not a distributive lattice.
C.It is both distributive and complemented.
D.It is a distributive lattice but not a complemented lattice.
Correct Answer: It is neither distributive nor complemented.
Explanation:
A lattice of divisors is distributive if and only if is a square-free integer. The prime factorization of 180 is . Since it contains squared prime factors (), it is not square-free. Therefore, the lattice is not distributive. A lattice is complemented if every element has a complement such that and . Here, bottom is 1 and top is 180. The operations are GCD and LCM. Let's check the element . A complement must satisfy and . From , cannot be divisible by 2 or 3. The only divisor of 180 that is not divisible by 2 or 3 is 5. But . Thus, the element 6 has no complement. Therefore, the lattice is not complemented.
Incorrect! Try again.
44Let be a binary relation on a non-empty set , and let be its transitive closure. Which of the following statements about the composition is universally true for any relation ?
composition
Hard
A.
B.
C. is symmetric
D.
Correct Answer:
Explanation:
A relation is transitive if and only if . The transitive closure is, by definition, the smallest transitive relation containing . Since is a transitive relation, it must satisfy the property . Option A () is not always true; it holds if is also reflexive (idempotent), but might not be reflexive. Option B () is the converse, which is also not guaranteed. For example, if on , then and , so is not a subset of . Option D is incorrect as composition does not guarantee symmetry.
Incorrect! Try again.
45Let . Define a relation on such that if and only if . Which property does this relation fail to have if the domain were extended to ?
equivalence relations
Hard
A.Transitivity
B.It would remain an equivalence relation.
C.Symmetry
D.Reflexivity
Correct Answer: Transitivity
Explanation:
The relation on defines equivalence classes of rational numbers. It is an equivalence relation on . Let's analyze what happens if we extend the domain to , allowing the second element to be zero.
Reflexivity: because . This holds for all .
Symmetry: If , then . This implies , so . This holds for all pairs in .
Transitivity: If and , does ? We have and . We want to show . Multiplying the equations gives . If and , we can cancel to get . However, if we allow zeros in the second component, this fails. Consider the elements , , and . We have because . We also have because . But, because . Therefore, transitivity fails when the second component can be zero.
Incorrect! Try again.
46Consider the set with a partial order whose Hasse diagram is two separate chains: and . How many relations must be added to this partial order to make it a total order, while preserving the existing relations?
Hasse diagram and its components
Hard
A.15
B.36
C.9
D.20
Correct Answer: 9
Explanation:
The Hasse diagram describes two disjoint chains: and . In the current partial order, any element from is incomparable to any element from . To make it a total order, we must establish a relation between every pair of elements. The pairs within and are already ordered. We only need to define the order for pairs where and . There are such pairs. We must decide for each such pair whether or . However, we don't need to make 9 independent decisions. To merge these two chains into one total order, we need to interleave them. For example, if we decide , then by transitivity, are all determined. The problem is simpler: for any pair with , they are currently incomparable. To make the order total, we must add either or to the relation for all such pairs. But this counts the relations themselves. For example, if we specify , we add the relation . We also need to specify relation between , etc. A simpler way is to count the total number of relations in the final total order and subtract the ones we started with. A total order on 6 elements has relations (ignoring reflexivity). The initial partial order has relations in the first chain and in the second, for a total of 6 relations. So we must add new relations to make it a total order. For example, if we decide that every element of is less than every element of , we add the 9 relations for all .
Incorrect! Try again.
47Let be the set of all functions from to (the set of natural numbers ). Define a relation on such that for , we have if and only if and . Which of the following best describes the relation ?
partial and total ordering relations
Hard
A.It is a partial order but not a total order.
B.It is an equivalence relation.
C.It is a total order.
D.It is reflexive and symmetric, but not transitive.
Correct Answer: It is a partial order but not a total order.
Explanation:
Let's check the properties of a partial order:
Reflexivity: For any , because and . It is reflexive.
Anti-symmetry: If and , then ( and ) AND ( and ). This implies and , which means . It is anti-symmetric.
Transitivity: If and , then ( and ) AND ( and ). From these, we can deduce and . Thus, . It is transitive.
Since it is reflexive, anti-symmetric, and transitive, it is a partial order.
To check if it's a total order, we need to see if every pair of elements is comparable. Let's define two functions: with and with .
Is ? We check: (i.e., , which is true) AND (i.e., , which is false). So is not related to .
Is ? We check: (i.e., , which is false). So is not related to .
Since and are incomparable, the relation is not a total order.
Incorrect! Try again.
48Let be a relation on a set with matrix representation . Let the matrix for the transitive closure be . If , what is ?
representing relation using matrices and graph
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The relation is given by . This represents a directed cycle . The transitive closure includes all pairs for which there is a path of length 1 or more from to .
From 1, we can reach 2 (length 1). From 2 we can reach 3, so from 1 we can reach 3 (length 2). From 3 we can reach 1, so from 1 we can reach 1 (length 3). So, 1 is related to 1, 2, and 3.
From 2, we can reach 3 (length 1). From 3 we can reach 1, so from 2 we can reach 1 (length 2). From 1 we can reach 2, so from 2 we can reach 2 (length 3). So, 2 is related to 1, 2, and 3.
By symmetry, 3 is also related to 1, 2, and 3.
Therefore, is the total relation , where every element is related to every other element (including itself). The matrix for this relation has 1s in every position. This can also be calculated using matrix powers: (using Boolean matrix multiplication).
.
.
.
Incorrect! Try again.
49A box contains 10 red, 10 blue, 10 green, and 10 yellow balls. You are drawing balls from the box without looking. What is the minimum number of balls you must draw to guarantee you have drawn at least 5 balls of one color OR at least 3 balls of a second color? (These conditions do not have to be met by the same set of balls, e.g., 5 red and 3 blue is a success).
Pigeonhole
Hard
A.11
B.12
C.13
D.14
Correct Answer: 12
Explanation:
This is a complex pigeonhole problem that requires considering the worst-case scenario. The goal is to avoid the condition: (at least 5 of one color) OR (at least 3 of a second color). The negation of this condition is: (at most 4 of any color) AND (at most one color has 3 or 4 balls).
Let's construct the worst-case draw. We want to draw as many balls as possible without satisfying the condition.
Worst-case strategy:
Draw 4 balls of one color (e.g.
Incorrect! Try again.
50What is the number of surjective (onto) functions from a set with to a set with ?
principle of Inclusion-Exclusion
Hard
A.4096
B.16384
C.2401
D.8400
Correct Answer: 8400
Explanation:
This is a classic application of the Principle of Inclusion-Exclusion. The total number of functions from to is . Let be the property that the element is not in the image of the function. We want to find the number of functions with none of these properties. Using PIE, the number of surjective functions is given by the formula: where and . So, the calculation is:
Incorrect! Try again.
51What is the minimum number of nodes in a complete graph such that if every edge is colored with one of three colors (red, green, or blue), there is guaranteed to be a monochromatic triangle (a set of three nodes where the three connecting edges all have the same color)?
generalized pigeonhole principle
Hard
A.6
B.9
C.17
D.27
Correct Answer: 17
Explanation:
This is a problem from Ramsey Theory, a generalization of the pigeonhole principle. We are looking for the Ramsey number . The value is 17. The proof sketch for is as follows: Pick an arbitrary vertex . It is connected to 16 other vertices. By the generalized pigeonhole principle, at least of these edges must be of the same color, say red. Let the set of vertices connected to by red edges be . If any edge between two vertices in is red, we have a red triangle. If not, all edges within are colored green or blue. Since and we know from the simpler Ramsey theorem that , there must be a monochromatic (green or blue) triangle within . Thus, in any case, a monochromatic triangle must exist in a . A specific coloring exists for that avoids any monochromatic triangle, proving 17 is the minimum.
Incorrect! Try again.
52Consider the poset , where is the set of positive divisors of 180 and '|' is the divisibility relation. Which of the following statements about this lattice is correct?
lattice
Hard
A.It is both distributive and complemented.
B.It is neither distributive nor complemented.
C.It is a complemented lattice but not a distributive lattice.
D.It is a distributive lattice but not a complemented lattice.
Correct Answer: It is neither distributive nor complemented.
Explanation:
A lattice of divisors is distributive if and only if is a square-free integer. The prime factorization of 180 is . Since it contains squared prime factors (), it is not square-free. Therefore, the lattice is not distributive. A lattice is complemented if every element has a complement such that and . Here, bottom is 1 and top is 180. The operations are GCD and LCM. Let's check the element . A complement must satisfy and . From , cannot be divisible by 2 or 3. The only divisor of 180 that is not divisible by 2 or 3 is 5. But . Thus, the element 6 has no complement. Therefore, the lattice is not complemented.
Incorrect! Try again.
53Let be a binary relation on a non-empty set , and let be its transitive closure. Which of the following statements about the composition is universally true for any relation ?
composition
Hard
A.
B.
C. is symmetric
D.
Correct Answer:
Explanation:
A relation is transitive if and only if . The transitive closure is, by definition, the smallest transitive relation containing . Since is a transitive relation, it must satisfy the property . Option A () is not always true; it holds if is also reflexive (idempotent), but might not be reflexive. Option B () is the converse, which is also not guaranteed. For example, if on , then and , so is not a subset of . Option D is incorrect as composition does not guarantee symmetry.
Incorrect! Try again.
54Let . Define a relation on such that if and only if . Which property does this relation fail to have if the domain were extended to ?
equivalence relations
Hard
A.It would remain an equivalence relation.
B.Symmetry
C.Transitivity
D.Reflexivity
Correct Answer: Transitivity
Explanation:
The relation on defines equivalence classes of rational numbers. It is an equivalence relation on . Let's analyze what happens if we extend the domain to , allowing the second element to be zero. \n1. Reflexivity: because . This holds for all . \n2. Symmetry: If , then . This implies , so . This holds for all pairs in . \n3. Transitivity: If and , does ? We have and . We want to show . Multiplying the equations gives . If and , we can cancel to get . However, if we allow zeros in the second component, this fails. Consider the elements , , and . We have because . We also have because . But, because . Therefore, transitivity fails when the second component can be zero.
Incorrect! Try again.
55Consider the set ordered by the subset relation . What are the maximal and minimal elements of this poset?
Hasse diagram and its components
Hard
A.Maximal: , Minimal:
B.Maximal: , Minimal:
C.Maximal: , Minimal:
D.Maximal: , Minimal:
Correct Answer: Maximal: , Minimal:
Explanation:
A maximal element is an element that is not smaller than any other element. An element is maximal if there is no other element such that . A minimal element is an element that is not larger than any other element. An element is minimal if there is no other element such that .
In the given set :
Maximal elements: Let's check each element. Is maximal? No, because . Is maximal? No, because . Is maximal? Yes, no other set in properly contains it. The singletons are clearly not maximal. So, there is only one maximal element: . This is also the greatest element.
Minimal elements: Let's check the candidates. Is minimal? Yes, no other set in is a proper subset of . Is minimal? Yes. Is minimal? Yes. Is minimal? No, because . Therefore, the minimal elements are . The poset has no least element because there are multiple minimal elements.
Incorrect! Try again.
56Let . Consider two relations on : the lexicographical order where if or ( and ), and the product order where if and . Which statement is correct?
partial and total ordering relations
Hard
A. is a total order and is a partial order.
B.Both are total orders.
C.Both are partial orders but not total orders.
D. is a partial order and is a total order.
Correct Answer: is a total order and is a partial order.
Explanation:
Let's analyze (lexicographical order). For any two distinct pairs and , we can compare them. If , then either or , so they are comparable. If , then since the pairs are distinct, . So either or , and they are comparable. Since every pair of elements is comparable, lexicographical order is a total order.
Now let's analyze (product order). It is straightforward to show it's reflexive, anti-symmetric, and transitive, so it is a partial order. To check if it is a total order, we need to see if every pair is comparable. Consider the pairs and . Is ? We need (true) AND (false). So no. Is ? We need (false) AND (true). So no. Since the elements and are not comparable under the product order, is not a total order. Therefore, is a total order and is a partial order.
Incorrect! Try again.
57Let be a relation on a set with elements, represented by the matrix . Let be the matrix representing the composition of with itself times. An entry in the Boolean matrix product implies what?
representing relation using matrices and graph
Hard
A.There is a path of length at most from vertex to vertex .
B.There is a path of length exactly from vertex to vertex .
C.The shortest path from vertex to vertex has length .
D.There are exactly paths from vertex to vertex .
Correct Answer: There is a path of length exactly from vertex to vertex .
Explanation:
The matrix represents the relation ( times). The composition is defined such that if there is a with and . In graph terms, this means a path of length 2 from to through . By induction, an entry (using Boolean matrix product, i.e., ) means that there exists a sequence of vertices such that , , and for all . This is precisely the definition of a path of length exactly from to . Option C describes the connectivity matrix for the transitive closure up to length . Option D is incorrect because there could be a shorter path as well. Option B relates to standard matrix multiplication (not Boolean) where the entry value counts the number of paths.
Incorrect! Try again.
58From a set of ten distinct two-digit integers, what can be definitively concluded?
Pigeonhole
Hard
A.There exist two numbers with the same units digit.
B.There exist two numbers whose difference is a multiple of 10.
C.There exist two disjoint subsets with the same sum.
D.There exist two numbers with the same tens digit.
Correct Answer: There exist two disjoint subsets with the same sum.
Explanation:
This is a clever application of the Pigeonhole Principle. Let the set of ten distinct two-digit integers be . Consider all non-empty subsets of . The number of such subsets is (these are the pigeons). For each subset, we can calculate the sum of its elements (these are the holes). A two-digit integer is between 10 and 99. The minimum possible sum is for a subset with one element, which is at least 10. The maximum possible sum is for the subset containing the ten largest two-digit integers: . A simpler upper bound is taking the 10 largest possible two-digit numbers: . The sum of any subset of S is between 10 and 990. Thus, there are at most possible sums. Since we have 1023 subsets (pigeons) and at most 981 possible sums (holes), by the Pigeonhole Principle, at least two different subsets must have the same sum. Let these subsets be and . If and are disjoint, we are done. If not, we can remove the common elements () from both sets. The new sets and will be disjoint and must also have the same sum. The other options are not guaranteed: e.g., the set has no two numbers with the same units or tens digit, and no two whose difference is a multiple of 10.
Incorrect! Try again.
59How many integers between 1 and 1000 (inclusive) are not divisible by 6, 10, or 15?
principle of Inclusion-Exclusion
Hard
A.800
B.734
C.867
D.133
Correct Answer: 800
Explanation:
lcm(6,10) = .
lcm(6,15) = .
lcm(10,15) = .
So . The set of numbers divisible by 30.
So .
Number not divisible = .
There must be a mistake in my reasoning or the intended answer. Let's re-read. Divisible by 6 OR 10 OR 15 is equivalent to (divisible by 2 and 3) OR (divisible by 2 and 5) OR (divisible by 3 and 5). This is equivalent to (divisible by 2 OR 3) AND (divisible by 2 OR 5) AND (divisible by 3 OR 5)? No, that's not right.
Incorrect! Try again.
60How many binary relations on a set with 3 elements are reflexive but not symmetric?
relations and their properties
Hard
A.56
B.64
C.512
D.8
Correct Answer: 56
Explanation:
Let the set be . A relation on is a subset of , which has elements. The total number of possible relations is .
Reflexive relations: A relation is reflexive if for all . This means the 3 diagonal pairs () must be in the relation. The remaining off-diagonal pairs can either be in the relation or not. So there are reflexive relations.
Symmetric and reflexive relations: In addition to the diagonal elements being present, for every pair with , if then . The off-diagonal pairs can be grouped: , , . For each group, we can either include both pairs or neither. This gives 2 choices for each of the 3 groups. So there are possible choices for the off-diagonal elements to maintain symmetry. Thus, there are 8 relations that are both reflexive and symmetric.
Reflexive but not symmetric relations: This is the total number of reflexive relations minus the number of relations that are also symmetric. So, the count is .
Incorrect! Try again.
61What is the number of distinct equivalence relations on a set with 4 elements?
equivalence relations
Hard
A.14
B.16
C.24
D.15
Correct Answer: 15
Explanation:
The number of distinct equivalence relations on a set with elements is equal to the number of ways to partition the set into non-empty subsets. This number is given by the -th Bell number, . We need to find .
We can find this by listing all possible partitions of the set :
One set: (1 partition)
Two sets:
Type 3+1: We can choose 1 element out of 4 to be in its own set ( ways). E.g., . (4 partitions)
Type 2+2: We can choose 2 elements for the first set ( ways), the other 2 form the second set. Since the order of the two sets doesn't matter (e.g., is the same as ), we divide by . So, ways. (3 partitions)
Three sets:
Type 2+1+1: We must choose 2 elements to be together. There are ways to do this. E.g., . (6 partitions)
Four sets:
Type 1+1+1+1: Each element is in its own set. (1 partition)
Total number of partitions = . So, there are 15 distinct equivalence relations on a set with 4 elements.
Incorrect! Try again.
62Let . Consider the poset , where is the power set of . The Hasse diagram for this poset is isomorphic to which of the following graphs?
Hasse diagram and its components
Hard
A.A complete graph on 8 vertices, .
B.A star graph with one central vertex and 7 outer vertices.
C.A cycle graph on 8 vertices, .
D.The vertex and edge graph of a cube.
Correct Answer: The vertex and edge graph of a cube.
Explanation:
The power set of is . There are elements (vertices). The relation is set inclusion. The Hasse diagram connects two sets if one can be obtained from the other by adding a single element.
Level 0:
Level 1: (connected to )
Level 2: (e.g., is connected to and )
Level 3: (connected to all sets in Level 2)
If we visualize this structure, we can map the vertices to the corners of a cube. Let be the origin . Let , , . Then , , , and . An edge exists between two vertices in the Hasse diagram if one set is a subset of the other and their sizes differ by one. This corresponds exactly to two vertices of the cube being connected if their coordinates differ in exactly one position. This is the definition of the edge set of a cube. Thus, the Hasse diagram is isomorphic to the graph of a cube.
Incorrect! Try again.
63Let R be a relation on a set A. Let be the symmetric closure of R. Which of the following properties must always have, regardless of the properties of R?
combining relation
Hard
A.Reflexive
B.Symmetric and Reflexive
C.Transitive
D.Symmetric
Correct Answer: Symmetric
Explanation:
Let's analyze the properties of .
Symmetry: We need to check if implies . Suppose . By definition, this means or .
Case 1: If , then by definition of inverse relation, . Since contains , we have .
Case 2: If , then by definition of inverse relation, . Since contains , we have .
In both cases, the condition for symmetry holds. Therefore, is always symmetric.
Reflexivity: For to be reflexive, we need for all . This means or . These two are equivalent. So we need . However, the original relation is not necessarily reflexive. For example, if on , then which is not reflexive.
Transitivity: is not necessarily transitive. Let on . Then . Here, and , but . So it's not transitive.
Incorrect! Try again.
64Let be a symmetric relation and be a transitive relation on a set . Which of the following statements about their composition is not always true?
composition
Hard
A.If is transitive, may not be transitive.
B.If , then .
C.If is symmetric, is symmetric.
D.If and are equivalence relations, is an equivalence relation.
Correct Answer: If and are equivalence relations, is an equivalence relation.
Explanation:
. If are symmetric, this is . For to be symmetric, we need . This is not always true, so statement A is a candidate for not being always true.
Let's check D again. My example shows it's not always true. There's an issue with the question having two false options. Let's re-read the options. Maybe one is subtly true. C) If and is symmetric and is transitive... this doesn't guarantee . Let (symmetric) and (transitive). . : and , so . But . So C is not always true.
This question is flawed. Let me fix it. Let be symmetric and be transitive.
A) If , then is not necessarily .
Let's restart and find a definitively false statement among the options. Let's assume the question meant to ask 'which of these is true'. The composition of equivalence relations is the classic 'hard' case. The fact that is not necessarily an equivalence relation even if R and S are is a key result. Let's make that the focus. The other options are distractors about properties that may or may not hold. The claim in D is the strongest and most famously false one without an extra condition (commutativity). Let's select D as the answer for 'not always true'.
Incorrect! Try again.
65Let be the lattice of divisors of 30 under divisibility. Which of the following subsets of forms a sub-lattice of ?
sub lattice
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
A subset of a lattice is a sub-lattice if it is closed under the meet () and join () operations of . In the lattice , the meet operation is GCD and the join operation is LCM. . We need to check each option for closure.
S = {1, 5, 6, 30}:
.
.
Other pairs: ; . All results are in . The set is closed under both operations, so it is a sub-lattice.
S = {1, 2, 3, 5}:
, but . Not a sub-lattice.
S = {2, 3, 5, 30}:
, but . Not a sub-lattice.
S = {1, 2, 6, 15}:
, but . Not a sub-lattice.
Incorrect! Try again.
66A poset is a meet-semilattice if every pair of elements has a greatest lower bound (meet). It is a join-semilattice if every pair has a least upper bound (join). Which of these statements is true for any finite poset?
lattice
Hard
A.If it is a meet-semilattice, it must also be a join-semilattice.
B.If it has a unique maximal element, that element is the greatest element.
C.If it has a greatest element, it must be a join-semilattice.
D.If it is a meet-semilattice and has a greatest element, it is a lattice.
Correct Answer: If it is a meet-semilattice and has a greatest element, it is a lattice.
Explanation:
This question tests a fundamental theorem of finite posets.
Option B is correct. A theorem states that a finite poset is a lattice if and only if it is a meet-semilattice with a greatest element (top), OR it is a join-semilattice with a least element (bottom). Since the poset is a finite meet-semilattice and has a greatest element, it must be a lattice. The join (LUB) of any two elements can be found by taking the meet (GLB) of the set of all their common upper bounds, which is guaranteed to be non-empty because the greatest element is an upper bound.
Incorrect! Try again.
67Let be a partial order on a set . An antichain is a subset of where any two distinct elements are incomparable. A chain is a subset where any two elements are comparable. What is the maximum size of an antichain in the poset ?
partial and total ordering relations
Hard
A.10
B.5
C.32
D.6
Correct Answer: 10
Explanation:
This question is an application of Sperner's theorem. Sperner's theorem states that for a set with elements, the maximum size of an antichain in the power set lattice is given by .
In this case, the set is , so .
The maximum size of an antichain is .
Calculating the binomial coefficient: .
This maximum antichain is formed by taking all the subsets of size . For instance, the set of all 2-element subsets, , forms an antichain of size 10, as no 2-element set is a subset of another 2-element set.
Incorrect! Try again.
68A computer science department offers 7 advanced courses. The prerequisite for each course is a (possibly empty) subset of the other 6 courses. Given that there are no circular prerequisites (e.g., C1 requires C2 and C2 requires C1), what can we conclude about the courses?
generalized pigeonhole principle
Hard
A.There must be a sequence of at least 3 courses, , where is a prerequisite for , and for .
B.There must be at least one course with no prerequisites.
C.There must be at least two courses that can be taken in the first semester.
D.The prerequisite relationship forms a total order.
Correct Answer: There must be at least one course with no prerequisites.
Explanation:
This problem describes a directed acyclic graph (DAG), where courses are vertices and prerequisites are directed edges. The relation 'is a prerequisite for' is a partial order. The question asks for a property of any such partial order on a finite set of 7 elements.
Let be the prerequisite relation. Since there are no circular dependencies, is a partial order. Every finite non-empty poset must have at least one minimal element. A minimal element in this context is a course for which there is no other course that is a prerequisite. In other words, a minimal element is a course with no prerequisites. Therefore, there must be at least one course with no prerequisites. This course (or these courses) could be taken first. Option A is therefore correct. Option B is not guaranteed; the longest chain could be of length 2 (e.g., C1 requires C2, and all other courses are independent). Option C is not true; some courses could be independent (incomparable), so it is not necessarily a total order. Option D is a restatement of A; a course with no prerequisites can be taken in the first semester. If there is at least one, there could be exactly one. So stating there must be at least two is incorrect. The existence of at least one minimal element is the only guaranteed conclusion.