Let and Compute and .
Prime numbers : . Odd numbers : . [A\cup B={1,2,3,5,7,9,11,13,15,17,19}] (all odds plus the even prime ). [A\cap B={3,5,7,11,13,17,19}] (odd primes).
Key Points
- Prime set
- Odd set
- Union
- Intersection
- Set notation
Let and Compute and .
Prime numbers : . Odd numbers : . [A\cup B={1,2,3,5,7,9,11,13,15,17,19}] (all odds plus the even prime ). [A\cap B={3,5,7,11,13,17,19}] (odd primes).
Key Points
Let and Compute the total number of possible relations from A to B.
Answer: A relation from to is any subset of the Cartesian product .
Total number of relations .
Key Points
If represents " is a prime number" and represents " is odd," write the following statements in predicate logic: (a) "There exists an even prime number." (b) "All prime numbers greater than 2 are odd."
Answer: Given predicates: is prime, is odd. "Even" means .
(a) There exists an even prime number.
(b) All prime numbers greater than 2 are odd.
These express existence with conjunction and universal property with implication.
Key Points
Calculate the composite mapping if is given by and is given by .
A composite applies the inner function first. Here . Since is positive and sine always lies between minus one and one, the composite maps real numbers into the interval from minus one to one. The order matters because followed by would give a different function.
Key Points
Define Abelian group.
An Abelian group is a group in which the binary operation is commutative. In addition to closure, associativity, an identity element and an inverse for every element, it satisfies for every pair and . The integers under ordinary addition form an Abelian group, while noncommutative examples are usually matrices or permutations.
Key Points
Solve in how many ways can you arrange the letters in the word "DISCRETE"?
Answer: The word DISCRETE has 8 letters total: D, I, S, C, R, E, T, E.
Compute: , , so .
Result: The letters of "DISCRETE" can be arranged in 20,160 distinct ways.
Key Points
Illustrate the following graph using an adjacency matrix: A graph with vertices and edges .
Using the vertex order A, B, C, D, place one where an edge joins two vertices and zero otherwise. Edges AB, BC, CD and DA give the matrix with first row zero, one, zero, one and second row one, zero, one, zero; the remaining rows repeat this pattern symmetrically. The diagonal is zero because the graph has no loops and the matrix is symmetric because it is undirected.
Key Points
Examine is an equivalence relation on . Also ensure that if and then .
Concept / Given Data We are given a set and a relation that is an equivalence relation. By definition is reflexive, symmetric and transitive. The inverse relation is defined as
Our task is to prove that also satisfies the three defining properties.
Step‑by‑Step Proof
Since satisfies reflexivity, symmetry and transitivity, it is an equivalence relation on .
Result:
Key Points
Solve the following Boolean function using K-map: and using SOP.
Given: Boolean function (F(A,B,C)) with minterms (\Sigma(1,2,5,7)) and don't‑care terms (D(0,4,6)). We are asked to obtain the minimal Sum‑of‑Products (SOP) using a Karnaugh map.
where each (l_{ij}) is a literal (variable or its complement) forming a product term covering a group of 1’s (or 1’s + don't‑cares) in the K‑map.
Step‑by‑Step Solution
Both terms share the literal (C); factoring gives (F = C(\overline{A}+\overline{B})), but the SOP form required is the sum of the two products.
Result:
(\displaystyle F = \overline{B}C + \overline{A}C)
Key Points
Analyse the argument's validity: Premises: If a person is happy, they smile. John is smiling. Conclusion: John is happy.
Symbolisation Let mean John is happy and let mean John smiles. The premises are and ; the claimed conclusion is .
Testing validity An argument is valid exactly when every truth assignment that makes all premises true also makes the conclusion true. Construct the key assignment false and true. Under this assignment the conditional is true, because a conditional with a false antecedent is true, and the second premise is also true. Yet the conclusion is false. A single such assignment is enough to show invalidity.
Naming the fallacy The argument has the form , , therefore , which is the fallacy of affirming the consequent. It mistakes a necessary condition for a sufficient one. Smiling is necessary for happiness under the first premise, but it is not sufficient, because a person might smile for other reasons. Valid inference from and is impossible; the valid related forms are modus ponens from and to , and modus tollens from and to .
| premise | conclusion | |||
|---|---|---|---|---|
| false | true | true | true | false |
Result: The argument is invalid. The premises can both be true while John is not happy.
Key Points
In the group under addition modulo 12, consider the subgroup . Compute all the distinct Cosets of H.
Concept / Given Data We work in the additive group with operation modulo . The subgroup provided is . Since contains the identity and is closed under addition modulo (e.g., ), it is indeed a subgroup of order .
Step‑by‑Step Solution
Thus the set of distinct left (and right, because the group is abelian) cosets of in is:
Result: \textbf{There are exactly four distinct cosets, each containing three elements, and they partition .}
Key Points
Examine whether the graphs and a graph formed by adding a single vertex in the middle of one edge of are homeomorphic or not.
Concept / Given Data We are given two undirected simple graphs:
Step‑by‑Step Reasoning
Result: The graph and the graph formed by inserting a vertex in the middle of one of its edges are homeomorphic because the latter can be obtained from by a single edge‑subdivision (or conversely, can be smoothed back to ).
Key Points
Let defined on . Calculate the transitive closure of R using Warshall's algorithm.
Solution – Transitive Closure of using Warshall’s Algorithm
The relation is defined on the set as
Our goal is to obtain the transitive closure , i.e. the smallest transitive relation containing . Warshall’s algorithm works directly on the adjacency matrix of .
where iterates over all vertices.
Here a ‘1’ indicates the ordered pair belongs to .
Result:
Key Points
i) Justify that is lattice. ii) Let be the lattice defined as and be the lattice , where be the power set defined on set . Justify that the two lattices are isomorphic.
Concept / Given Data We consider the divisor set with the binary operation set‑difference . Part (i) asks to prove is a lattice. Part (ii) requires showing an isomorphism between the lattice (divisibility on 's sub‑divisors limited to ) and where and the order is inclusion.
for set‑based lattices; for divisibility lattices,
Step‑by‑Step Solution – Part (i)
Step‑by‑Step Solution – Part (ii)
Result: (i) forms a bounded lattice with meet = gcd and join = lcm. (ii) and are isomorphic via the mapping that pairs prime factors with singleton subsets.
Key Points
Solve the following Boolean functions using K-map: (i) (ii)
Concept / Given Data We are asked to minimise two four‑variable Boolean functions using a 4‑variable Karnaugh map (variables ). The minterm lists are:
where each minterm corresponds to a binary combination of . Karnaugh maps group adjacent 1’s in powers of two (1,2,4,8) to obtain prime implicants and the minimal SOP.
Step‑by‑Step Solution for
Simplify using Boolean algebra: , thus
Hence the minimal expression is .
Step‑by‑Step Solution for
Recognise this as the XNOR of and : .
Result
Key Points
Let and . Evaluate and Classify and as one-to-one, onto, or neither.
Given Functions
Step‑by‑Step Evaluation and Classification
Result:
Key Points
Justify that the following premises are inconsistent. (i) If Alex misses many classes through illness then he fails high school. (ii) If Alex fails high school, then he is uneducated. (iii) If Alex reads a lot of books then he is not uneducated. (iv) Alex misses many classes through illness and reads a lot of books.
Concept / Given Data We are given four premises about Alex:
Step‑by‑Step Derivation
Since a contradiction () has been derived, the original set of premises cannot all be true; they are inconsistent.
Why the contradiction is unavoidable. The fourth premise is a conjunction, so simplification allows us to use each of its two parts independently. The first part, illness, drives the chain of conditionals forward through failure to being uneducated. The second part, heavy reading, drives the remaining conditional in the opposite direction and gives not uneducated. These two results cannot both hold for Alex at the same time because a statement and its negation are mutually exclusive. Notice that no additional fact about Alex is needed; the contradiction comes entirely from the four given premises. In a formal proof one normally list the symbolisation first, then derive both members of the contradictory pair, and finally name the contradiction. That structure earns the logical steps marks even if the English wording is brief.
Result: The four premises are inconsistent because they logically lead to .
Key Points
Show the validity of the following argument: Hypotheses: "It is not sunny this afternoon and it is colder than yesterday. We will go swimming only if it is sunny. If we do not go swimming, then we will take a canoe trip. If we take a canoe trip, then we will be home by sunset." Conclusion: "We will be home by sunset."
Concept / Given Data We are given four premises about weather, swimming, canoeing and reaching home. Symbolise each statement using propositional variables:
Step‑by‑Step Derivation
Why each inference is legitimate. The phrase we will go swimming only if it is sunny states a necessary condition, not a sufficient one. It translates to the implication that swimming implies sunshine, whose contrapositive says that no sunshine implies no swimming. The first premise supplies the absence of sunshine, so the contrapositive and modus ponens together give no swimming. Once that fact is available, the third premise gives the canoe trip, and the fourth premise gives arrival home by sunset. Each step uses one premise and one previously proved statement, so the chain is sound. A common error is to read only if backwards and infer swimming from sunshine; that would be affirming the consequent and would break the argument. The validity here does not depend on the weather actually being sunny, only on the truth of the stated premises.
Result: is logically entailed; the argument is valid.
Key Points
Calculate the number of generators of the cyclic group of order 8.
Concept / Given Data We are asked for the number of generators of a cyclic group of order . A cyclic group of order is denoted where is a generator and .
where is Euler’s totient function, counting integers with and .
Step‑by‑Step Solution
Result: The cyclic group of order has generators, namely and .
Key Points
Determine whether the set is a subgroup of under addition modulo 6.
Concept / Given Data We are given the set and the group where denotes addition modulo . To decide if is a subgroup we must verify the subgroup criteria for a finite group under addition.
Step‑by‑Step Solution
Result: \textbf{The set is not a subgroup of under addition modulo } because it is not closed under the group operation.
Key Points
Express the following (i) Euler graph and Hamiltonian graph (ii) Chromatic number of a graph (iii) Walk and path (iv) Bipartite graph
Concept / Given Data We are asked to give concise definitions for four graph‑theoretic notions that frequently appear in 7‑mark questions. Each definition must include the essential condition and, where appropriate, a symbolic representation.\
Step‑by‑Step Definitions
Distinguishing the ideas. An Eulerian circuit is concerned with edges and requires every vertex to have even degree, while a Hamiltonian cycle is concerned with vertices and places no such degree restriction. A walk may repeat both vertices and edges, whereas a path forbids repeated vertices and is therefore the stricter notion. Bipartite graphs contain no odd cycle, which gives a quick visual test: if a triangle appears, the graph cannot be bipartite. The chromatic number is the least number of colours needed so that adjacent vertices differ; a bipartite graph with at least one edge has chromatic number two.
Result: The four definitions above capture the essential properties required for Eulerian, Hamiltonian, coloring, walk/path, and bipartite graphs.\
Key Points
Prove that in any group of 13 people, at least two must have their birthdays in the same month.
Concept / Given Data We have a set of people. Each person’s birthday falls in one of the months of a year. We must show that at least two people share the same month.
Step‑by‑Step Proof
birthdays. 4. Therefore, there exists a month such that at least two people have their birthdays in . 5. This conclusion holds irrespective of how the birthdays are distributed; the only requirement is the count of people exceeds the count of months.
Understanding the counting. The pigeonhole principle is an existence argument rather than a construction: it tells us that some month must be shared but does not identify which month. The objects are the people and the boxes are the twelve calendar months, so there are more objects than boxes. If every month contained at most one birthday, the total number of people would be at most twelve, contradicting the given count of thirteen. This contradiction form of the argument is often clearer than quoting the ceiling formula. Leap years do not change the count because the twenty ninth of February still belongs to February, so the number of possible boxes remains twelve. The result is sharp: with twelve people it is possible for all birth months to be different, so the strict excess of one person is essential.
Result: In any group of people, at least two share the same birth month.
Key Points