Top Banner Ad
BCS303 · 2024-2522 Questions

Discrete Structures & Theory of Logic — 2024-25

Section A

2 Marks Each · 7 questions
Q1a2MUnit 1 — Combination of sets
Core Concept

Let A={x:x is a prime number less than 20}A = \{x: x \text{ is a prime number less than } 20\} and B={x:x is an odd number less than 20}B = \{x: x \text{ is an odd number less than } 20\} Compute A∪BA \cup B and A∩BA \cap B.

Prime numbers <20<20: A={2,3,5,7,11,13,17,19}A=\{2,3,5,7,11,13,17,19\}. Odd numbers <20<20: B={1,3,5,7,9,11,13,15,17,19}B=\{1,3,5,7,9,11,13,15,17,19\}. [A\cup B={1,2,3,5,7,9,11,13,15,17,19}] (all odds plus the even prime 22). [A\cap B={3,5,7,11,13,17,19}] (odd primes).

Key Points

  • Prime set AA
  • Odd set BB
  • Union A∪BA\cup B
  • Intersection A∩BA\cap B
  • Set notation
Q1b2MUnit 1 — Relations: Definition
Core Concept

Let A={1,2,3}A = \{1,2,3\} and B={a,b}B = \{a, b\} Compute the total number of possible relations from A to B.

Answer: A relation from AA to BB is any subset of the Cartesian product A×BA\times B.

  • ∣A∣=3|A|=3, ∣B∣=2|B|=2, so ∣A×B∣=3×2=6|A\times B|=3\times 2=6.
  • A×B={(1,a),(1,b),(2,a),(2,b),(3,a),(3,b)}A\times B=\{(1,a),(1,b),(2,a),(2,b),(3,a),(3,b)\}.
  • Each subset of these 6 ordered pairs is a relation.

Total number of relations =2∣A×B∣=26=64=2^{|A\times B|}=2^6=64.

Key Points

  • Relation from A to B is a subset of A×BA\times B
  • ∣A×B∣=3×2=6|A\times B|=3\times 2=6
  • Total relations =26=64=2^6=64
Q1c2MUnit 3 — Predicate Logic: First order predicate
Predicted

If P(x)P(x) represents " xx is a prime number" and Q(x)Q(x) represents " xx 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: P(x):xP(x): x is prime, Q(x):xQ(x): x is odd. "Even" means ¬Q(x)\lnot Q(x).

(a) There exists an even prime number.

∃x  (P(x)∧¬Q(x)).\exists x\;\bigl(P(x)\land \lnot Q(x)\bigr).

(b) All prime numbers greater than 2 are odd.

∀x  ((P(x)∧x>2)→Q(x)).\forall x\;\bigl((P(x)\land x>2)\rightarrow Q(x)\bigr).

These express existence with conjunction and universal property with implication.

Key Points

  • Even prime: ∃x (P(x)∧¬Q(x))\exists x\,(P(x)\land \lnot Q(x))
  • Primes > 2 are odd: ∀x ((P(x)∧x>2)→Q(x))\forall x\,((P(x)\land x>2)\rightarrow Q(x))
  • Use ∃\exists for existence, ∀\forall with implication for universal claim
Q1d2MUnit 2 — Operations on functions
Predicted

Calculate the composite mapping g∘fg \circ f if f:R→Rf: R \rightarrow R is given by f(x)=exf(x) = e^x and g:R→Rg: R \rightarrow R is given by g(x)=sin⁡xg(x) = \sin x.

A composite applies the inner function first. Here (g∘f)(x)=g(f(x))=g(ex)=sin⁡(ex)(g\circ f)(x)=g(f(x))=g(e^x)=\sin(e^x). Since exe^x 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 sin⁡\sin followed by exe^x would give a different function.

Key Points

  • Apply ff first, then gg
  • (g∘f)(x)=sin⁡(ex)(g\circ f)(x)=\sin(e^x)
Q1e2MUnit 4 — Groups
Predicted

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 a∗b=b∗aa*b=b*a for every pair aa and bb. The integers under ordinary addition form an Abelian group, while noncommutative examples are usually matrices or permutations.

Key Points

  • Group axioms plus commutativity
  • a∗b=b∗aa*b=b*a
  • Integers under addition
Q1f2MUnit 5 — Counting Techniques
Predicted

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.

  • Letter E repeats 2 times; all others appear once.
  • Number of distinct permutations of nn objects with repetitions:
n!p1!p2!⋯=8!2!.\frac{n!}{p_1!p_2!\cdots}=\frac{8!}{2!}.

Compute: 8!=403208!=40320, 2!=22!=2, so 403202=20160\frac{40320}{2}=20160.

Result: The letters of "DISCRETE" can be arranged in 20,160 distinct ways.

Key Points

  • 8 letters with E repeated twice
  • Distinct arrangements =8!2!=\frac{8!}{2!}
  • Result =20160=20160
Q1g2MUnit 5 — Representation of graphs
Core Concept

Illustrate the following graph using an adjacency matrix: A graph with vertices V={A,B,C,D}V = \{A, B, C, D\} and edges E={(A,B),(B,C),(C,D),(D,A)}E = \{(A, B), (B, C), (C, D), (D, A)\}.

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

  • Vertex order A, B, C, D
  • One for adjacent vertices
  • Symmetric with zero diagonal

Section B

7 Marks Each · 5 questions
Q2a7MUnit 1 — Properties of relations
Survival ModePredictedRepeated

Examine R={(a,b)∣a≡b(modm)}R = \{(a, b) \mid a \equiv b \pmod m\} is an equivalence relation on ZZ. Also ensure that if x1≡y1x_1 \equiv y_1 and x2≡y2x_2 \equiv y_2 then (x1+x2)≡(y1+y2)(x_1 + x_2) \equiv (y_1 + y_2).

Concept / Given Data We are given a set AA and a relation R⊆A×AR\subseteq A\times A that is an equivalence relation. By definition RR is reflexive, symmetric and transitive. The inverse relation is defined as

R−1={(b,a)∣(a,b)∈R}.R^{-1}=\{(b,a)\mid (a,b)\in R\}.

Our task is to prove that R−1R^{-1} also satisfies the three defining properties.

Key Formula / Principle: (R−1)−1=R(R^{-1})^{-1}=R

Step‑by‑Step Proof

  1. Reflexivity – For every a∈Aa\in A, reflexivity of RR gives (a,a)∈R(a,a)\in R. By the definition of inverse, (a,a)∈R−1(a,a)\in R^{-1} as well. Hence R−1R^{-1} is reflexive.
  2. Symmetry – Take any (x,y)∈R−1(x,y)\in R^{-1}. By definition, (y,x)∈R(y,x)\in R. Since RR is symmetric, (x,y)∈R(x,y)\in R. Applying the inverse definition again, (y,x)∈R−1(y,x)\in R^{-1}. Thus whenever (x,y)∈R−1(x,y)\in R^{-1}, the reverse pair (y,x)(y,x) also belongs to R−1R^{-1}, proving symmetry.
  3. Transitivity – Assume (x,y)∈R−1(x,y)\in R^{-1} and (y,z)∈R−1(y,z)\in R^{-1}. Then (y,x)∈R(y,x)\in R and (z,y)∈R(z,y)\in R. Because RR is transitive, (z,x)∈R(z,x)\in R. Taking inverses yields (x,z)∈R−1(x,z)\in R^{-1}. Therefore R−1R^{-1} is transitive.

Since R−1R^{-1} satisfies reflexivity, symmetry and transitivity, it is an equivalence relation on AA.

Result: If R is an equivalence relation on A, then R−1 is also an equivalence relation on A.\boxed{\text{If }R\text{ is an equivalence relation on }A,\text{ then }R^{-1}\text{ is also an equivalence relation on }A.}

Tip from Examiner: Remember to start each property with the definition of $R^{-1}$; many lose marks by assuming symmetry without explicitly invoking the original relation’s symmetry.

Key Points

  • Reflexive: (a,a)∈R⇒(a,a)∈R−1(a,a)\in R\Rightarrow (a,a)\in R^{-1}
  • Symmetric: (x,y)∈R−1⇒(y,x)∈R⇒(x,y)∈R(x,y)\in R^{-1}\Rightarrow (y,x)\in R\Rightarrow (x,y)\in R
  • Transitive: (x,y),(y,z)∈R−1⇒(z,x)∈R⇒(x,z)∈R−1(x,y),(y,z)\in R^{-1}\Rightarrow (z,x)\in R\Rightarrow (x,z)\in R^{-1}
Q2b7MUnit 2 — Karnaugh maps
Survival ModePredictedRepeated

Solve the following Boolean function using K-map: F(A,B,C)=∑(1,2,5,7)F(A, B, C) = \sum(1, 2, 5, 7) and D(0,4,6)D(0, 4, 6) 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.

Key Formula / Principle: FSOP=⋁i⋀jlijF_{\text{SOP}} = \bigvee_{i}\bigwedge_{j} l_{ij}

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

  1. Construct the 3‑variable K‑map (variables (A) and (B) on rows, (C) on columns) and place 1’s for the minterms and X for don't‑cares:
    • (m_1 (001)) → 1
    • (m_2 (010)) → 1
    • (m_5 (101)) → 1
    • (m_7 (111)) → 1
    • (d_0 (000)), (d_4 (100)), (d_6 (110)) → X
  2. Identify the largest possible groups (powers of two) that may include don't‑cares to enlarge the groups:
    • Group G₁: the four cells forming a rectangle covering (m_1, m_5, d_0, d_4). This group spans rows where (B=0) and columns where (C=1). The resulting product term is (\overline{B}C).
    • Group G₂: the four cells covering (m_2, m_7, d_6, d_0). Here (A=0) and (C=1) are constant, giving the term (\overline{A}C).
    • Group G₃ (optional): the pair (m_5, m_7) can be grouped vertically, yielding (BC). However, this term is already covered by (\overline{B}C) and (\overline{A}C), so it is redundant and omitted for minimality.
  3. Write the minimal SOP expression by OR‑ing the product terms from the essential groups:
F(A,B,C)=B‾C  +  A‾CF(A,B,C) = \overline{B}C \;+\; \overline{A}C

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)

Tip from Examiner: Always include don\'t‑care cells when they help to form a larger power‑of‑two group. Missing a don\'t‑care can lead to extra literals and loss of marks. Verify that every 1 is covered by at least one essential group.

Key Points

  • K‑map grouping with don't‑cares","Minimal SOP via largest power‑of‑two groups","Essential product terms (\overline{B}C) and (\overline{A}C)"]
  • needsDiagramAsset
  • :false
Q2c7MUnit 3 — Theory of Inference
Predicted

Analyse the argument's validity: Premises: If a person is happy, they smile. John is smiling. Conclusion: John is happy.

Symbolisation Let pp mean John is happy and let qq mean John smiles. The premises are p→qp\to q and qq; the claimed conclusion is pp.

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 pp false and qq true. Under this assignment the conditional p→qp\to q is true, because a conditional with a false antecedent is true, and the second premise qq is also true. Yet the conclusion pp is false. A single such assignment is enough to show invalidity.

Naming the fallacy The argument has the form p→qp\to q, qq, therefore pp, 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 p→qp\to q and qq is impossible; the valid related forms are modus ponens from p→qp\to q and pp to qq, and modus tollens from p→qp\to q and ¬q\neg q to ¬p\neg p.

pp qq p→qp\to q premise qq conclusion pp
false true true true false

Result: The argument is invalid. The premises can both be true while John is not happy.

Tip from Examiner: Never use modus ponens on the consequent. Given $p\to q$ and $q$, the inference to $p$ is affirming the consequent; give a counterexample truth assignment to prove invalidity.
Key Formula: Result\text{Result}

Key Points

  • Modus Ponens
  • Conditional reasoning
  • Validity of argument
Q2d7MUnit 4 — Cosets
Core Concept

In the group Z12Z_{12} under addition modulo 12, consider the subgroup H={0,4,8}H = \{0, 4, 8\}. Compute all the distinct Cosets of H.

Concept / Given Data We work in the additive group Z12={0,1,2,…,11}\mathbb{Z}_{12}=\{0,1,2,\dots,11\} with operation ++ modulo 1212. The subgroup provided is H={0,4,8}H=\{0,4,8\}. Since HH contains the identity 00 and is closed under addition modulo 1212 (e.g., 4+8≡0(mod12)4+8\equiv0\pmod{12}), it is indeed a subgroup of order ∣H∣=3|H|=3.

Key Formula / Principle: Left coset of H with representative a:  a+H={a+h∣h∈H}\text{Left coset of }H\text{ with representative }a:\;a+H=\{a+h\mid h\in H\}

Step‑by‑Step Solution

  1. Choose a representative not yet covered. Start with a=0a=0; the coset 0+H0+H reproduces HH itself: 0+H={0,4,8}0+H=\{0,4,8\}. This is the first distinct coset.
  2. Take the next smallest element not in HH, namely 11. Compute 1+H={1+0,  1+4,  1+8}≡{1,5,9}(mod12)1+H=\{1+0,\;1+4,\;1+8\}\equiv\{1,5,9\}\pmod{12}. This yields the second coset.
  3. Proceed to the next uncovered element, 22. The coset 2+H={2,6,10}2+H=\{2,6,10\}.
  4. Continue with 33, giving 3+H={3,7,11}3+H=\{3,7,11\}.
  5. Check remaining elements: 4,5,6,7,8,9,10,114,5,6,7,8,9,10,11 are already present in one of the four cosets obtained above, so no new coset appears.

Thus the set of distinct left (and right, because the group is abelian) cosets of HH in Z12\mathbb{Z}_{12} is:

  • {0,4,8}\{0,4,8\}
  • {1,5,9}\{1,5,9\}
  • {2,6,10}\{2,6,10\}
  • {3,7,11}\{3,7,11\}

Result: \textbf{There are exactly four distinct cosets, each containing three elements, and they partition Z12\mathbb{Z}_{12}.}

Tip from Examiner: Remember Lagrange’s theorem: $|\mathbb{Z}_{12}|=12$ must equal $[\mathbb{Z}_{12}:H]\times|H|$. Here $|H|=3$, so the index $[\mathbb{Z}_{12}:H]=4$, guaranteeing four cosets. A common mistake is to list duplicate cosets; always verify that each new representative is not already in a previously formed coset.

Key Points

  • Coset definition
  • Left coset a+Ha+H
  • Lagrange’s theorem $|G|=[G:H]|H|"
Q2e7MUnit 5 — Isomorphism and Homeomorphism of graphs
Core Concept

Examine whether the graphs K3K_3 and a graph formed by adding a single vertex in the middle of one edge of K3K_3 are homeomorphic or not.

Concept / Given Data We are given two undirected simple graphs:

  1. K3K_3, the complete graph on three vertices {v1,v2,v3}\{v_1,v_2,v_3\} with edges {v1v2,v2v3,v3v1}\{v_1v_2, v_2v_3, v_3v_1\}.
  2. G′G', obtained by inserting a new vertex xx in the middle of edge v1v2v_1v_2 of K3K_3. Thus G′G' has vertices {v1,v2,v3,x}\{v_1,v_2,v_3,x\} and edges {v1x,xv2,v2v3,v3v1}\{v_1x, xv_2, v_2v_3, v_3v_1\}. Both graphs are simple (no loops, no multiple edges). The question asks whether they are homeomorphic.
Key Definition (Homeomorphism): Two graphs $G$ and $H$ are homeomorphic if each can be obtained from a common graph $K$ by a sequence of **edge‑subdivisions** (inserting degree‑2 vertices) or the inverse operation **edge‑smoothing** (removing a degree‑2 vertex and merging its two incident edges).

Step‑by‑Step Reasoning

  1. Identify the degree‑2 vertices in each graph.
    • In K3K_3, every vertex has degree 22 (since ∣V∣=3|V|=3 and each vertex is incident with the two remaining edges). No vertex of degree 11 exists, and there is no vertex of degree >2>2 that could be smoothed.
    • In G′G', vertices v1v_1 and v2v_2 have degree 22, vertex v3v_3 also has degree 22, while the inserted vertex xx has degree 22 as well. Hence all vertices of G′G' are degree 22.
  2. Attempt to obtain a common ancestor graph KK by smoothing degree‑2 vertices.
    • Smoothing any degree‑2 vertex in K3K_3 would delete the vertex and replace its two incident edges by a single edge, reducing the vertex count to 22 and producing a single edge – not a simple graph that can later be expanded to G′G'. Therefore K3K_3 cannot be reduced further without destroying its triangle structure.
    • In G′G', if we smooth the inserted vertex xx, we replace the two edges v1xv_1x and xv2xv_2 by a single edge v1v2v_1v_2. The resulting graph is exactly K3K_3.
  3. Since G′G' can be smoothed to K3K_3, the two graphs share a common graph (namely K3K_3) from which G′G' is obtained by a single edge‑subdivision, while K3K_3 itself needs no subdivision.
  4. Therefore, by definition, K3K_3 and G′G' are homeomorphic.

Result: The graph K3K_3 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 K3K_3 by a single edge‑subdivision (or conversely, G′G' can be smoothed back to K3K_3).

Tip from Examiner: Remember that homeomorphism allows any number of degree‑2 vertices to be added or removed. A common mistake is to treat isomorphism (exact vertex‑to‑vertex mapping) as the same; here the extra vertex has degree 2, so smoothing it yields the original triangle.
K3 v1v2v3 subdivided K3 v1v2v3x

Key Points

  • Homeomorphism definition
  • Edge subdivision
  • Smoothing degree‑2 vertex

Section C

7 Marks Each · 10 questions
Q3a7MUnit 1 — Composite Relations
Core Concept

Let R={(1,2),(2,3),(3,1)}R = \{(1, 2), (2, 3), (3, 1)\} defined on A={1,2,3}A = \{1, 2, 3\}. Calculate the transitive closure of R using Warshall's algorithm.

Solution – Transitive Closure of RR using Warshall’s Algorithm

The relation RR is defined on the set A={1,2,3}A=\{1,2,3\} as

R={(1,2),  (2,3),  (3,1)}.R=\{(1,2),\;(2,3),\;(3,1)\}.


Our goal is to obtain the transitive closure R+R^{+}, i.e. the smallest transitive relation containing RR. Warshall’s algorithm works directly on the adjacency matrix of RR.

Key Formula / Principle: Wij(k)=Wij(k−1)  ∨  (Wik(k−1)∧Wkj(k−1))W^{(k)}_{ij}=W^{(k-1)}_{ij}\;\vee\;(W^{(k-1)}_{ik}\wedge W^{(k-1)}_{kj})

where kk iterates over all vertices.

Step‑by‑Step Execution

  1. Initial adjacency matrix W(0)W^{(0)} (rows and columns ordered as 1,2,31,2,3):
W(0)=(010001100).W^{(0)}=\begin{pmatrix} 0 & 1 & 0\\ 0 & 0 & 1\\ 1 & 0 & 0 \end{pmatrix}.

Here a ‘1’ indicates the ordered pair belongs to RR.

  1. Iteration k=1k=1 (using vertex 1 as intermediate): Compute Wij(1)=Wij(0)∨(Wi1(0)∧W1j(0))W^{(1)}_{ij}=W^{(0)}_{ij}\vee\bigl(W^{(0)}_{i1}\wedge W^{(0)}_{1j}\bigr). Only entries where both Wi1(0)W^{(0)}_{i1} and W1j(0)W^{(0)}_{1j} are 1 change.
    • W31(0)=1W^{(0)}_{31}=1 and W12(0)=1W^{(0)}_{12}=1 give a new path 3→1→23\rightarrow1\rightarrow2, so W32(1)=1W^{(1)}_{32}=1.
    • All other combinations remain unchanged.
W(1)=(010001110).W^{(1)}=\begin{pmatrix} 0 & 1 & 0\\ 0 & 0 & 1\\ 1 & 1 & 0 \end{pmatrix}.
  1. Iteration k=2k=2 (using vertex 2 as intermediate): Wij(2)=Wij(1)∨(Wi2(1)∧W2j(1))W^{(2)}_{ij}=W^{(1)}_{ij}\vee\bigl(W^{(1)}_{i2}\wedge W^{(1)}_{2j}\bigr).
    • W12(1)=1W^{(1)}_{12}=1 and W23(1)=1W^{(1)}_{23}=1 give 1→2→31\rightarrow2\rightarrow3, so W13(2)=1W^{(2)}_{13}=1.
    • W32(1)=1W^{(1)}_{32}=1 and W23(1)=1W^{(1)}_{23}=1 give 3→2→33\rightarrow2\rightarrow3, already 1.
    • W31(1)=1W^{(1)}_{31}=1 and W12(1)=1W^{(1)}_{12}=1 give 3→1→23\rightarrow1\rightarrow2, already present.
W(2)=(011001110).W^{(2)}=\begin{pmatrix} 0 & 1 & 1\\ 0 & 0 & 1\\ 1 & 1 & 0 \end{pmatrix}.
  1. Iteration k=3k=3 (using vertex 3 as intermediate): Wij(3)=Wij(2)∨(Wi3(2)∧W3j(2))W^{(3)}_{ij}=W^{(2)}_{ij}\vee\bigl(W^{(2)}_{i3}\wedge W^{(2)}_{3j}\bigr).
    • W13(2)=1W^{(2)}_{13}=1 and W31(2)=1W^{(2)}_{31}=1 give 1→3→11\rightarrow3\rightarrow1, so W11(3)=1W^{(3)}_{11}=1.
    • W13(2)=1W^{(2)}_{13}=1 and W32(2)=1W^{(2)}_{32}=1 give 1→3→21\rightarrow3\rightarrow2, so W12(3)=1W^{(3)}_{12}=1 (already 1).
    • W23(2)=1W^{(2)}_{23}=1 and W31(2)=1W^{(2)}_{31}=1 give 2→3→12\rightarrow3\rightarrow1, so W21(3)=1W^{(3)}_{21}=1.
    • W23(2)=1W^{(2)}_{23}=1 and W32(2)=1W^{(2)}_{32}=1 give 2→3→22\rightarrow3\rightarrow2, so W22(3)=1W^{(3)}_{22}=1.
    • W31(2)=1W^{(2)}_{31}=1 and W13(2)=1W^{(2)}_{13}=1 give 3→1→33\rightarrow1\rightarrow3, so W33(3)=1W^{(3)}_{33}=1. After filling all derived entries we obtain:
W(3)=(111111111).W^{(3)}=\begin{pmatrix} 1 & 1 & 1\\ 1 & 1 & 1\\ 1 & 1 & 1 \end{pmatrix}.
  1. Termination: After k=∣A∣=3k=|A|=3 iterations the matrix stabilises. Every entry is 1, meaning every ordered pair of AA is reachable.

Result:

R+=A×A={(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3)}R^{+}=A\times A=\{(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3)\}

Tip from Examiner: In Warshall’s algorithm, always update the matrix *in‑place* for the current $k$; forgetting to use the latest values leads to missing paths and loss of marks.

Key Points

  • Warshall algorithm
  • Adjacency matrix
  • Transitive closure
  • Iterative update rule
  • All‑pairs reachability
Q3b7MUnit 1 — Definition & Properties of lattices – Bounded
Predicted

i) Justify that (D42,∖)(D_{42}, \setminus) is lattice. ii) Let L1L_1 be the lattice defined as D6D_6 and L2L_2 be the lattice (P(S),≤)(P(S), \le), where P(S)P(S) be the power set defined on set S={a,b}S = \{a, b\}. Justify that the two lattices are isomorphic.

Concept / Given Data We consider the divisor set D42={d∣d divides 42}D_{42}=\{d\mid d\text{ divides }42\} with the binary operation set‑difference ∖\setminus. Part (i) asks to prove (D42,∖)(D_{42},\setminus) is a lattice. Part (ii) requires showing an isomorphism between the lattice L1=D6L_{1}=D_{6} (divisibility on 4242's sub‑divisors limited to 66) and L2=(P(S),≤)L_{2}=\big(P(S),\le\big) where S={a,b}S=\{a,b\} and the order is inclusion.

Key Formula / Principle: x∧y=x∩y,x∨y=x∪yx\wedge y = x\cap y,\qquad x\vee y = x\cup y

for set‑based lattices; for divisibility lattices,

x∧y=gcd⁡(x,y),  x∨y=lcm⁡(x,y).x\wedge y = \gcd(x,y),\; x\vee y = \operatorname{lcm}(x,y).

Step‑by‑Step Solution – Part (i)

  1. Elements of D42D_{42}: {1,2,3,6,7,14,21,42}\{1,2,3,6,7,14,21,42\}. Treat each element as a singleton set {d}\{d\} when applying ∖\setminus.
  2. Define join and meet under ∖\setminus. For any x,y∈D42x,y\in D_{42}, the meet is x∩yx\cap y (common divisors) which equals gcd⁡(x,y)\gcd(x,y). The join is x∪yx\cup y, which corresponds to lcm⁡(x,y)\operatorname{lcm}(x,y). Both results are still divisors of 4242, hence belong to D42D_{42}.
  3. Check lattice properties: For every pair (x,y)(x,y) we have a well‑defined meet and join inside the set, satisfying the lattice definition.
  4. Boundedness: Bottom element ∅\emptyset (interpreted as 11) and top element {42}\{42\} (interpreted as 4242). Thus (D42,∖)(D_{42},\setminus) is a bounded lattice.

Step‑by‑Step Solution – Part (ii)

  1. List L1=D6L_{1}=D_{6}: {1,2,3,6}\{1,2,3,6\} with order a≤ba\le b iff a∣ba\mid b.
  2. List L2=P(S)L_{2}=P(S): {∅,{a},{b},{a,b}}\{\emptyset,\{a\},\{b\},\{a,b\}\} ordered by inclusion.
  3. Construct bijection ϕ:D6→P(S)\phi:D_{6}\rightarrow P(S):
    • ϕ(1)=∅\phi(1)=\emptyset
    • ϕ(2)={a}\phi(2)=\{a\}
    • ϕ(3)={b}\phi(3)=\{b\}
    • ϕ(6)={a,b}\phi(6)=\{a,b\}
  4. Verify order‑preserving: If x∣yx\mid y then ϕ(x)⊆ϕ(y)\phi(x)\subseteq\phi(y). Example: 2∣62\mid6 and {a}⊆{a,b}\{a\}\subseteq\{a,b\}. Conversely, inclusion implies divisibility because the mapping respects prime‑factor structure (2 ↔ aa, 3 ↔ bb).
  5. Check meet and join preservation: ϕ(gcd⁡(x,y))=ϕ(x)∩ϕ(y)\phi(\gcd(x,y))=\phi(x)\cap\phi(y) and ϕ(lcm⁡(x,y))=ϕ(x)∪ϕ(y)\phi(\operatorname{lcm}(x,y))=\phi(x)\cup\phi(y). Hence ϕ\phi is a lattice isomorphism.

Result: (i) (D42,∖)(D_{42},\setminus) forms a bounded lattice with meet = gcd and join = lcm. (ii) L1L_{1} and L2L_{2} are isomorphic via the mapping that pairs prime factors with singleton subsets.

Tip from Examiner: For isomorphism, explicitly write the bijection and prove both order‑preservation and meet/join preservation; a common mistake is to check only one direction.

Key Points

  • Set‑difference lattice
  • meet = gcd, join = lcm
  • bounded lattice
  • lattice isomorphism
  • bijection via prime factors
Q4a7MUnit 2 — Karnaugh maps
Predicted

Solve the following Boolean functions using K-map: (i) F(A,B,C,D)=∑(m0,m1,m2,m4,m5,m6,m8,m9,m12,m13,m14)F(A, B, C, D) = \sum(m_0, m_1, m_2, m_4, m_5, m_6, m_8, m_9, m_{12}, m_{13}, m_{14}) (ii) F(A,B,C,D)=∑(0,2,5,7,8,10,13,15)F(A, B, C, D) = \sum(0, 2, 5, 7, 8, 10, 13, 15)

Concept / Given Data We are asked to minimise two four‑variable Boolean functions using a 4‑variable Karnaugh map (variables A,B,C,DA,B,C,D). The minterm lists are:

  • F1=∑(m0,m1,m2,m4,m5,m6,m8,m9,m12,m13,m14)F_1 = \sum(m_0,m_1,m_2,m_4,m_5,m_6,m_8,m_9,m_{12},m_{13},m_{14})
  • F2=∑(0,2,5,7,8,10,13,15)F_2 = \sum(0,2,5,7,8,10,13,15). Both functions are expressed in canonical sum‑of‑products (SOP) form.
Key Formula / Principle: F=⋁i  ⋀j  xj(i)F = \bigvee_{i}\;\bigwedge_{j}\;x_j^{(i)}

where each minterm mim_i corresponds to a binary combination of (A,B,C,D)(A,B,C,D). 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 F1F_1

  1. Populate the 4‑variable K‑map (AB as rows, CD as columns, Gray code order 00,01,11,10). Mark 1 for each listed minterm.
  2. Identify groups:
    • Group G1: Four‑cell block covering m0,m1,m2,m3m_0,m_1,m_2,m_3 (but m3m_3 is 0, so we take a 2‑cell block m0,m1m_0,m_1) → term A‾ B‾ C‾\overline{A}\,\overline{B}\,\overline{C}.
    • Group G2: Four‑cell block m4,m5,m6,m7m_4,m_5,m_6,m_7 (only m4,m5,m6m_4,m_5,m_6 are 1, so a 2‑cell block m4,m5m_4,m_5) → term A‾ B C‾\overline{A}\,B\,\overline{C}.
    • Group G3: Four‑cell vertical block m8,m9,m12,m13m_8,m_9,m_{12},m_{13} → term A C‾A\,\overline{C}.
    • Group G4: Two‑cell block m14,m15m_{14},m_{15} (but m15=0m_{15}=0) gives A B D‾A\,B\,\overline{D}.
    • Group G5: Single isolated m14m_{14} can be covered by A B C‾ D‾A\,B\,\overline{C}\,\overline{D}, but it is already covered by G3G3 and G4G4, so no extra term.
  3. Combine prime implicants: The essential prime implicants are A‾ B‾ C‾\overline{A}\,\overline{B}\,\overline{C}, A‾ B C‾\overline{A}\,B\,\overline{C}, and A C‾A\,\overline{C}. The term A B D‾A\,B\,\overline{D} is redundant because A C‾A\,\overline{C} already covers those cells.
  4. Write minimal SOP:
F1=C‾(A‾ B‾+A‾ B+A)F_1 = \overline{C}(\overline{A}\,\overline{B}+\overline{A}\,B + A)

Simplify using Boolean algebra: A‾ B‾+A‾ B=A‾(B‾+B)=A‾\overline{A}\,\overline{B}+\overline{A}\,B = \overline{A}(\overline{B}+B)=\overline{A}, thus

F1=C‾(A‾+A)=C‾.F_1 = \overline{C}(\overline{A}+A)=\overline{C}.

Hence the minimal expression is F1=C‾F_1 = \overline{C}.

Step‑by‑Step Solution for F2F_2

  1. Populate the same K‑map with 1’s at minterms 0,2,5,7,8,10,13,150,2,5,7,8,10,13,15.
  2. Form groups:
    • Group H1: Four‑cell corner block m0,m2,m8,m10m_0,m_2,m_8,m_{10} (wrap‑around) → term B‾ D‾\overline{B}\,\overline{D}.
    • Group H2: Four‑cell block m5,m7,m13,m15m_5,m_7,m_{13},m_{15} (right‑most columns) → term B DB\,D.
    • Group H3: Two‑cell block m2,m10m_2,m_{10} already covered, no new term.
    • Group H4: Two‑cell block m7,m15m_7,m_{15} already covered.
  3. The two prime implicants B‾ D‾\overline{B}\,\overline{D} and B DB\,D together cover all 1’s.
  4. Minimal SOP:
F2=B‾ D‾+B DF_2 = \overline{B}\,\overline{D} + B\,D

Recognise this as the XNOR of BB and DD: F2=B⊕D‾F_2 = \overline{B\oplus D}.

Result

  • F1F_1 minimal form: C‾\boxed{\overline{C}}
  • F2F_2 minimal form: B‾ D‾+B D\boxed{\overline{B}\,\overline{D}+B\,D} (or B⊕D‾\overline{B\oplus D}).
Tip from Examiner: Always look for the largest possible groups (8‑cell, then 4‑cell). When a term appears in more than one group, keep the one that yields the fewest literals. Watch out for wrap‑around groups – they often give the crucial $\overline{B}\,\overline{D}$ term in $F_2$.

Key Points

  • K‑map grouping
  • Essential prime implicants
  • XOR/XNOR simplification
Q4b7MUnit 2 — Classification of functions
Core Concept

Let f(x)=3x+5f(x) = 3x + 5 and g(x)=x2−2x+1g(x) = x^2 - 2x + 1. Evaluate f(3)f(3) and Classify f(x)f(x) and g(x)g(x) as one-to-one, onto, or neither.

Given Functions

  • f(x)=3x+5f(x)=3x+5
  • g(x)=x2−2x+1=(x−1)2g(x)=x^{2}-2x+1=(x-1)^{2}
Key Formula / Principle: f(a)=3a+5f(a)=3a+5 g(a)=(a−1)2g(a)=(a-1)^{2}

Step‑by‑Step Evaluation and Classification

  1. Evaluate f(3)f(3)
f(3)=3×3+5=9+5=14f(3)=3\times 3+5=9+5=14
  1. Test injectivity (one‑to‑one)
    • For ff: assume f(x1)=f(x2)f(x_{1})=f(x_{2}) => 3x1+5=3x2+53x_{1}+5=3x_{2}+5 => 3x1=3x23x_{1}=3x_{2} => x1=x2x_{1}=x_{2}. Hence ff is injective.
    • For gg: g(x)=(x−1)2g(x)=(x-1)^{2} is a parabola symmetric about x=1x=1. Choose x1=0x_{1}=0 and x2=2x_{2}=2, then g(0)=g(2)=1g(0)=g(2)=1 while 0eq20 eq2. Hencegg is not injective.
  2. Test surjectivity (onto) onto R\mathbb{R}
    • ff is linear with non‑zero slope; for any y∈Ry\in\mathbb{R}, solve y=3x+5y=3x+5 => x=y−53∈Rx=\frac{y-5}{3}\in\mathbb{R}. Thus ff is surjective onto R\mathbb{R}.
    • g(x)=(x−1)2≥0g(x)=(x-1)^{2}\ge 0 for all real xx. Negative real numbers have no pre‑image, so gg is not surjective onto R\mathbb{R}.
  3. Combine the properties
    • ff is both injective and surjective → bijective on R\mathbb{R}.
    • gg fails both tests → neither one‑to‑one nor onto on R\mathbb{R}.

Result:

  • f(3)=14f(3)=\mathbf{14}
  • f(x)f(x) is bijective (one‑to‑one and onto).
  • g(x)g(x) is neither injective nor surjective on R\mathbb{R}.
Tip from Examiner: For linear functions $ax+b$, check injectivity by confirming $a eq0$and surjectivity by solving$y=ax+b$for$x$. For quadratic forms$ (x-h)^{2}+k$, remember the range is$[k,\infty)$, which instantly shows non-surjectivity on$\mathbb{R}$ and symmetry gives non‑injectivity.

Key Points

  • Linear function bijection test"
  • Quadratic non‑injective symmetry
  • Surjectivity via solving for xx
Q5a7MUnit 3 — Theory of Inference
Core Concept

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:

  1. p:  p:\; "Alex misses many classes through illness".
  2. q:  q:\; "Alex fails high school".
  3. r:  r:\; "Alex is uneducated".
  4. s:  s:\; "Alex reads a lot of books". The premises are: [\begin{aligned} (1)&; p\to q \ (2)&; q\to r \ (3)&; s\to eg r \ (4)&; p\land s \end{aligned}] Our task is to show that these premises cannot all be true simultaneously – i.e., they are inconsistent.
Key Formula / Principle: Modus Ponens (MP):   p→q,  p⊢q\text{Modus Ponens (MP): }\; p\to q,\; p \vdash q

Step‑by‑Step Derivation

  1. From premise (4) we have pp and ss by simplification.
  2. Using MP on (1) with pp gives qq.
  3. Using MP on (2) with qq gives rr.
  4. Using MP on (3) with ss gives egr eg r.
  5. Steps 3 and 4 yield both rr and egr eg r, a direct contradiction.

Since a contradiction (r∧egrr\land eg r) 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 r∧egrr\land eg r.

Tip from Examiner: In inconsistency proofs, isolate atomic statements, apply Modus Ponens repeatedly, and look for a pair $\phi$ and $ eg\phi$. Forgetting to split a conjunction (premise 4) is a common mistake.

Key Points

  • Modus Ponens
  • Simplification
  • Contradiction r∧¬rr\land \neg r
Q5b7MUnit 3 — Theory of Inference
Survival ModePredictedRepeated

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:

  • SS: It is sunny this afternoon.
  • CC: It is colder than yesterday.
  • WW: We will go swimming.
  • KK: We will take a canoe trip.
  • HH: We will be home by sunset. The hypotheses become:
  1. egS∧C eg S \land C
  2. W→SW \to S  (we swim only if it is sunny)
  3. egW→K eg W \to K  (if we do not swim, we canoe)
  4. K→HK \to H  (if we canoe, we are home by sunset) The required conclusion is HH.
Key Formula / Principle: Modus Ponens (MP): p,  p→q  ⊢  q\text{Modus Ponens (MP): } p,\;p\to q\;\vdash\;q

Step‑by‑Step Derivation

  1. From premise 2, W→SW \to S.
  2. Apply Contrapositive to (2): egS→egW eg S \to eg W.
  3. Premise 1 gives egS eg S; together with (2-contrapositive) inferegW eg W by MP.
  4. Premise 3 is egW→K eg W \to K; withegW eg Wfrom step 3, inferKK (MP).
  5. Premise 4 is K→HK \to H; with KK from step 4, infer HH (MP).

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: HH is logically entailed; the argument is valid.

Tip from Examiner: In "only if" statements, remember to convert $W$ only if $S$ into $W\to S$, then use its contrapositive $ eg S\to eg W$to link the given$ eg S$ to the conclusion. Missing this step is a common mistake.

Key Points

  • Contrapositive of only‑if"
  • Modus Ponens chain
  • Valid inference
Q6a7MUnit 4 — Cyclic Groups
Predicted

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 GG of order 88. A cyclic group of order nn is denoted Cn=⟨g⟩C_n=\langle g\rangle where gg is a generator and ∣G∣=n|G|=n.

Key Formula / Principle: Number of generators of Cn=φ(n)\text{Number of generators of }C_n = \varphi(n)

where φ\varphi is Euler’s totient function, counting integers kk with 1≤k≤n1\le k\le n and gcd⁡(k,n)=1\gcd(k,n)=1.

Step‑by‑Step Solution

  1. Identify n=8n=8 for the given group.
  2. Compute φ(8)\varphi(8). Since 8=238=2^3, the totient formula φ(pm)=pm−pm−1\varphi(p^m)=p^m-p^{m-1} gives
φ(8)=8−4=4.\varphi(8)=8-4=4.
  1. List the integers kk in {1,2,…,8}\{1,2,\dots,8\} that are coprime to 88: k=1,3,5,7k=1,3,5,7. Each gkg^k with such kk is a generator because gcd⁡(k,8)=1\gcd(k,8)=1 ensures the smallest positive exponent returning the identity is 88.
  2. Verify by checking orders: for k=3k=3, (g3)8=g24=g8⋅3=e(g^3)^8=g^{24}=g^{8\cdot3}=e, and no smaller positive exponent yields ee; similarly for k=5k=5 and k=7k=7.

Result: The cyclic group of order 88 has φ(8)=4\boxed{\varphi(8)=4} generators, namely g,  g3,  g5,g,\;g^3,\;g^5, and g7g^7.

Tip from Examiner: Remember the totient rule $\varphi(n)$; a common mistake is to count all elements except the identity. Only those $k$ with $\gcd(k,n)=1$ generate the whole group. Also, verify by checking the order of $g^k$ to avoid overlooking non‑generators like $g^2$ (order $4$).

Key Points

  • Euler totient (\varphi)
  • Coprime condition gcd⁡(k,n)=1\gcd(k,n)=1
  • Generators gkg^k with kk coprime to nn
Q6b7MUnit 4 — Subgroups and order
Core Concept

Determine whether the set H={0,1,5}H = \{0, 1, 5\} is a subgroup of Z6Z_6 under addition modulo 6.

Concept / Given Data We are given the set H={0,1,5}H=\{0,1,5\} and the group (Z6,+6)(\mathbb{Z}_6,+_6) where +6+_6 denotes addition modulo 66. To decide if HH is a subgroup we must verify the subgroup criteria for a finite group under addition.

Key Formula / Principle: $H\le G\iff\begin{cases}\text{(i) }0\in H,\\text{(ii) \;closed under }+_6,\\text{(iii) \;closed under inverses.}\end{cases}$

Step‑by‑Step Solution

  1. Identity check: 0∈H0\in H by definition, so the identity element of Z6\mathbb{Z}_6 is present.
  2. Closure under addition: Compute all possible sums modulo 66.
    • 0+60=00+_60=0, 0+61=10+_61=1, 0+65=50+_65=5 (all in HH).
    • 1+61=2≡2(mod6)1+_61=2\equiv2\pmod6 → 2otinH2 otin H.
    • 1+65=6≡0(mod6)1+_65=6\equiv0\pmod6 → 0∈H0\in H.
    • 5+65=10≡4(mod6)5+_65=10\equiv4\pmod6 → 4otinH4 otin H. Since 1+61=21+_61=2 and 5+65=45+_65=4 are not elements of HH, the set fails closure.
  3. Closure under inverses (optional after failure of closure): The additive inverse of 11 in Z6\mathbb{Z}_6 is 55 (because 1+65=01+_65=0) – both are in HH. The inverse of 55 is 11, also in HH. However, because closure already fails, HH cannot be a subgroup.

Result: \textbf{The set H={0,1,5}H=\{0,1,5\} is not a subgroup of Z6\mathbb{Z}_6 under addition modulo 66} because it is not closed under the group operation.

Tip from Examiner: In subgroup tests for finite groups, a single counter‑example to closure (or to the inverse property) is enough to lose marks. Remember to list *all* pairwise sums when checking closure; missing $1+1$ or $5+5$ is a common mistake.

Key Points

  • Identity element 00 must belong to subgroup
  • Check closure for every pair of elements
  • Additive inverse of each element must lie in set
Q7a7MUnit 5 — Definition and terminology
Survival Mode

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.\

Key Formula / Principle: For a graph $G=(V,E)$, a **Eulerian** circuit exists iff $G$ is connected and $\deg(v)$ is even for every $v\in V$; a **Hamiltonian** cycle visits each vertex exactly once.\

Step‑by‑Step Definitions

  1. Euler graph (Eulerian graph): A connected graph GG in which every vertex has even degree. Consequently GG possesses a closed trail that uses every edge exactly once. Symbolically, ∀v∈V:deg⁡(v)≡0(mod2)\forall v\in V:\deg(v)\equiv0\pmod{2}.\
  2. Hamiltonian graph: A graph GG that contains a cycle CC passing through every vertex of GG exactly once. No edge‑repetition is required, only vertex‑uniqueness.\
  3. Chromatic number χ(G)\chi(G): The smallest positive integer kk for which there exists a vertex‑coloring c:V→{1,2,…,k}c:V\rightarrow\{1,2,\dots ,k\} such that c(u)eqc(v)c(u) eq c(v)whenever{u,v}∈E\{u,v\}\in E. Formally,χ(G)=min⁡{k∣∃ c proper with k colors}\chi(G)=\min\{k\mid \exists\,c\text{ proper with }k\text{ colors}\}.\
  4. Walk and Path:
    • Walk: A finite alternating sequence v0,e1,v1,e2,…,em,vmv_0,e_1,v_1,e_2,\dots ,e_m,v_m where each ei={vi−1,vi}∈Ee_i=\{v_{i-1},v_i\}\in E. Vertices and edges may repeat.
    • Path: A walk with all vertices distinct (hence also all edges distinct).\
  5. Bipartite graph: A graph G=(V,E)G=(V,E) whose vertex set can be partitioned into two disjoint subsets V1V_1 and V2V_2 such that every edge joins a vertex of V1V_1 to a vertex of V2V_2. Equivalently, GG contains no odd‑length cycles. Symbolically, V=V1∪V2V=V_1\cup V_2, V1∩V2=∅V_1\cap V_2=\emptyset, and ∀{u,v}∈E: (u∈V1∧v∈V2)∨(u∈V2∧v∈V1)\forall\{u,v\}\in E:\ (u\in V_1\land v\in V_2)\lor(u\in V_2\land v\in V_1).\

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.\

Tip from Examiner: For 7‑mark proofs, state the condition (e.g., even degree) first, then mention the immediate consequence (existence of Euler circuit). Avoid extra examples unless asked.
Eulerian cycle (all degrees even) abcd Bipartite graph with no odd cycle u1u2v1v2

Key Points

  • Eulerian ⇔ all degrees even","Hamiltonian ⇔ cycle through all vertices","Chromatic number χ(G)\chi(G) minimal colors"]
  • needsDiagramAsset
  • :false
Q7b7MUnit 5 — Pigeonhole Principle
Predicted

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 1313 people. Each person’s birthday falls in one of the 1212 months of a year. We must show that at least two people share the same month.

Key Principle (Pigeonhole Principle): If N objects are placed into k boxes and N>k, then at least one box contains ≥⌈N/k⌉ objects.\text{If }N\text{ objects are placed into }k\text{ boxes and }N>k,\text{ then at least one box contains }\ge\lceil N/k\rceil\text{ objects.}

Step‑by‑Step Proof

  1. Identify the "objects" as the 1313 birthdays and the "boxes" as the 1212 months.
  2. Compute the average number of birthdays per month:
Nk=1312=1.083…\frac{N}{k}=\frac{13}{12}=1.083\dots
  1. Since 13>1213>12, the pigeonhole principle guarantees that some month must contain at least
⌈13/12⌉=2\lceil13/12\rceil = 2

birthdays. 4. Therefore, there exists a month MM such that at least two people have their birthdays in MM. 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 1313 people, at least two share the same birth month.

Tip from Examiner: Remember to state the objects and boxes clearly. A common mistake is to forget that a loop (birthday on 29 Feb) still belongs to a month, so the count of boxes remains $12$.

Key Points

  • Pigeonhole Principle
  • Objects vs boxes
  • Ceiling function