Top Banner Ad
BCS303 · 2023-2422 Questions

Discrete Structures & Theory of Logic — 2023-24

Section A

2 Marks Each · 7 questions
Q1a2MUnit 1 — POSET
Core Concept

Determine the greatest lower bound and least upper bound of the set {2,3,6}\{2,3,6\}, if they exist, in the Poset (D24,/)(D_{24},/).

In the divisor poset (D24,/)(D_{24},/), D24={1,2,3,4,6,8,12,24}D_{24}=\{1,2,3,4,6,8,12,24\}. For S={2,3,6}S=\{2,3,6\}, the common divisors are {1}\{1\}, so the greatest lower bound (meet) is 1\mathbf{1}. The least common multiple of 2,3,62,3,6 is 66, which belongs to D24D_{24}; thus the least upper bound (join) is 6\mathbf{6}.

Key Points

  • Divisor poset D24D_{24}
  • Greatest lower bound = 1
  • Least upper bound = 6
  • Meet and join
  • LCM in poset
Q1b2MUnit 1 — Combination of sets
Core Concept

Express power set of each of these sets. 1) {∅,{∅}}\{\emptyset,\{\emptyset\}\} 2) {a,{a}}\{a,\{a\}\}

Answer: The power set P(S)P(S) is the set of all subsets of SS. If ∣S∣=n|S|=n, then ∣P(S)∣=2n|P(S)|=2^n.

1) S1={∅,{∅}}S_1=\{\emptyset,\{\emptyset\}\}, ∣S1∣=2|S_1|=2, so 22=42^2=4 subsets:

P(S1)={∅,  {∅},  {{∅}},  {∅,{∅}}}.P(S_1)=\left\{\emptyset,\;\{\emptyset\},\;\{\{\emptyset\}\},\;\{\emptyset,\{\emptyset\}\}\right\}.

2) S2={a,{a}}S_2=\{a,\{a\}\}, ∣S2∣=2|S_2|=2, so 22=42^2=4 subsets:

P(S2)={∅,  {a},  {{a}},  {a,{a}}}.P(S_2)=\left\{\emptyset,\;\{a\},\;\{\{a\}\},\;\{a,\{a\}\}\right\}.

Key Points

  • Power set contains all subsets; size 2n2^n
  • P({∅,{∅}})P(\{\emptyset,\{\emptyset\}\}) has 4 elements
  • P({a,{a}})P(\{a,\{a\}\}) has 4 elements
Q1c2MUnit 2 — Classification of functions
Survival Mode

Investigate whether the function f(x)=x2−1f(x)=x^{2}-1 is injective or not for f:R→Rf:\mathbb{R}\rightarrow\mathbb{R}.

A function is injective when distinct inputs always give distinct outputs. For f(x)=x2−1f(x)=x^2-1 on the real numbers, observe that f(1)=0f(1)=0 and f(−1)=0f(-1)=0. Two different inputs produce the same output, so the function is not injective on the full real line. It would become injective if the domain were restricted to nonnegative numbers.

Key Points

  • f(1)=f(−1)=0f(1)=f(-1)=0
  • Not injective on real numbers
Q1d2MUnit 2 — Algebraic manipulation of Boolean expressions
Core Concept

Express E(x,y,z)=xy+y′zE(x,y,z)=xy+y'z into its complete sum‑of‑products form.

A complete sum of products must include every variable in each term. Expand xyxy as xy(z+z′)xy(z+z') to get xyz+xyz′xyz+xyz', and expand y′zy'z as (x+x′)y′z(x+x')y'z to get xy′z+x′y′zxy'z+x'y'z. Hence E=xyz+xyz′+xy′z+x′y′zE=xyz+xyz'+xy'z+x'y'z, which in minterm notation is the sum of minterms one, five, six and seven.

Key Points

  • Expand with z+z′z+z' and x+x′x+x'
  • Minterms one, five, six, seven
Q1e2MUnit 3 — Proposition
Survival Mode

Construct inverse of the following statement "If I wake up early in the morning, then I will be healthy."

Write pp for waking up early and qq for being healthy. The given statement is p→qp\to q. Its inverse negates both parts without exchanging them, giving ¬p→¬q\neg p\to\neg q, which reads: if I do not wake up early in the morning, then I will not be healthy. The inverse is not equivalent to the original; the contrapositive would be.

Key Points

  • Negate both parts
  • Inverse is ¬p→¬q\neg p\to\neg q
Q1f2MUnit 4 — Groups
Survival Mode

Show that identity element is unique in a group.

Suppose a group has two identity elements ee and e′e'. Because ee is an identity, e∗e′=e′e*e'=e'. Because e′e' is an identity, e∗e′=ee*e'=e. The same product therefore equals both elements, so e=e′e=e'. Hence a group cannot have two different identity elements; the identity is unique.

Key Points

  • Use ee on e′e'
  • Use e′e' on ee
  • Same product forces equality
Q1g2MUnit 5 — Euler and Hamiltonian paths
Survival Mode

Compare Euler circuit and Hamiltonian circuit.

An Euler circuit traverses every edge of a graph exactly once and returns to the start; it exists iff the graph is connected and every vertex has even degree (Handshaking theorem). A Hamiltonian circuit visits each vertex exactly once and returns to the start; its existence requires no simple degree condition, only that the graph be Hamiltonian (e.g., Dirac’s theorem).

Key Points

  • Euler circuit – all edges once
  • Even degree condition
  • Hamiltonian circuit – all vertices once
  • No universal degree test
  • Connectivity required

Section B

7 Marks Each · 5 questions
Q2a7MUnit 1 — POSET & Lattices: Hasse Diagram
Core Concept

Construct the Hasse Diagram for (P(S),⊆)(P(S),\subseteq) where P(S)P(S) is a power set defined on set S={a,b,c}S=\{a,b,c\}. Determine whether it is a Lattice or not.

Concept / Given Data We are to draw the Hasse diagram of the power set P(S)P(S) of S={a,b,c}S=\{a,b,c\} ordered by set inclusion ⊆\subseteq. P(S)P(S) contains 23=82^3=8 subsets:

∅,{a},{b},{c},{a,b},{a,c},{b,c},{a,b,c}.\emptyset,\{a\},\{b\},\{c\},\{a,b\},\{a,c\},\{b,c\},\{a,b,c\}.

The partial order is defined by X⊆YX\subseteq Y.

Key Formula / Principle: In a Hasse diagram, an edge $X\rightarrow Y$ exists iff $X\subset Y$ and there is no $Z$ such that $X\subset Z\subset Y$ (i.e., $Y$ *covers* $X$).

Step‑by‑Step Construction

  1. Level 0 (bottom) – Place the minimal element ∅\emptyset.
  2. Level 1 – Place all singletons that cover ∅\emptyset: {a},{b},{c}\{a\},\{b\},\{c\}. Draw edges from ∅\emptyset to each singleton.
  3. Level 2 – Place all 2‑element subsets that cover the appropriate singletons: {a,b}\{a,b\} covers {a}\{a\} and {b}\{b\}; {a,c}\{a,c\} covers {a}\{a\} and {c}\{c\}; {b,c}\{b,c\} covers {b}\{b\} and {c}\{c\}. Connect each with straight lines to its two lower neighbours.
  4. Level 3 (top) – Place the maximal element {a,b,c}\{a,b,c\} which covers all three 2‑element subsets. Connect edges from each of {a,b},{a,c},{b,c}\{a,b\},\{a,c\},\{b,c\} to {a,b,c}\{a,b,c\}.
  5. Omit transitive edges – Do not draw edges that can be reached via a longer path (e.g., ∅→{a,b}\emptyset\rightarrow\{a,b\} is omitted because ∅→{a}→{a,b}\emptyset\rightarrow\{a\}\rightarrow\{a,b\} already exists).

Result: The Hasse diagram is a three‑level diamond shape (often called the Boolean lattice B3B_3).

Lattice Verification A poset (P(S),⊆)(P(S),\subseteq) is a lattice iff every pair of elements has a join (least upper bound) and a meet (greatest lower bound). In set inclusion, the join of XX and YY is X∪YX\cup Y, and the meet is X∩YX\cap Y. Both X∪YX\cup Y and X∩YX\cap Y are always subsets of SS, hence belong to P(S)P(S). Therefore every pair has both a join and a meet, so (P(S),⊆)(P(S),\subseteq) is a lattice (indeed a Boolean lattice).

∅ {a} {b} {c} {a,b} {a,c} {b,c} {a,b,c}

Result: The Hasse diagram of (P(S),⊆)(P(S),\subseteq) is the Boolean lattice B3B_3, and the structure satisfies the lattice property (join = union, meet = intersection).

Tip from Examiner: Allocate marks: list all 8 subsets (2), draw diagram correctly (3‑4), explain join/meet reasoning (1), and state final lattice verdict (1). Missing any subset or an extra transitive edge loses marks.

Key Points

  • Power set P(S)P(S)
  • Inclusion order
  • Join = union, Meet = intersection
  • Boolean lattice B3B_3
  • Hasse diagram levels
Q2b7MUnit 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).

Given: Two 4‑variable Boolean functions.

(i) F1(A,B,C,D)=∑(m0,m1,m2,m4,m5,m6,m8,m9,m12,m13,m14)F_1(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) F2(A,B,C,D)=∑(0,2,5,7,8,10,13,15)F_2(A,B,C,D)=\sum(0,2,5,7,8,10,13,15).

Key Formula / Principle: FSOP=⋁i  ⋀j  literalijF_{SOP}=\bigvee_{i}\;\bigwedge_{j}\;\text{literal}_{ij}

where each product term corresponds to a grouped block of 1’s in the K‑map.

Solution for (i)

  1. Construct 4‑variable K‑map (rows ABAB, columns CDCD in Gray order).
  2. Place 1’s at the listed minterms; the only 0‑cells are m3,m7,m10,m11,m15m_{3},m_{7},m_{10},m_{11},m_{15}.
  3. Form groups (largest possible powers of two):
    • Group A: eight‑cell block covering m0,1,2,4,5,6,8,9m_{0,1,2,4,5,6,8,9} → common literals C‾\overline{C}.
    • Group B: four‑cell block covering m12,13,14,15m_{12,13,14,15} but m15m_{15} is 0, so instead use a four‑cell block m12,13,14,10m_{12,13,14,10} where m10m_{10} is 0 – not allowed. Instead take a pair m12,13m_{12,13} → literals A B‾ DA\,\overline{B}\,D.
    • Group C: pair m14,6m_{14,6} → literals A‾ C D‾\overline{A}\,C\,\overline{D}.
  4. Write SOP:
F1=C‾+A B‾ D+A‾ C D‾F_1 = \overline{C} + A\,\overline{B}\,D + \overline{A}\,C\,\overline{D}

Solution for (ii)

  1. Place 1’s at minterms 0,2,5,7,8,10,13,150,2,5,7,8,10,13,15.
  2. Group optimally:
    • Group X: four‑corner block m0,2,8,10m_{0,2,8,10} → literals B‾ D‾\overline{B}\,\overline{D}.
    • Group Y: central 2×22\times2 block m5,7,13,15m_{5,7,13,15} → literals B DB\,D.
  3. SOP expression:
F2=B‾ D‾+B DF_2 = \overline{B}\,\overline{D} + B\,D

(This is the XNOR of BB and DD.)

Result:

  • F1F_1 minimal SOP: C‾+A B‾ D+A‾ C D‾\boxed{\overline{C} + A\,\overline{B}\,D + \overline{A}\,C\,\overline{D}}.
  • F2F_2 minimal SOP: B‾ D‾+B D\boxed{\overline{B}\,\overline{D} + B\,D}.
Tip from Examiner: Always seek the largest possible groups (8,4,2). In (i) the eight‑cell group gives a single literal term, dramatically reducing the expression.

Key Points

  • largest K‑map groups
  • pairing don't‑cares
  • minimal SOP
Q2c7MUnit 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 m 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
Q2d7MUnit 4 — Cyclic Groups
Survival ModePredicted

Let G={1,−1,i,−i}G=\{1,-1,i,-i\} with the binary operation multiplication. Determine whether GG is an Abelian group. Also, if GG is cyclic, determine its generator(s).

Answer:

The set G={1,−1,i,−i}G=\{1,-1,i,-i\} with multiplication is closed, associative (inherited from C\mathbb{C}), contains identity 11, and every element has an inverse: 1−1=11^{-1}=1, (−1)−1=−1(-1)^{-1}=-1, i−1=−ii^{-1}=-i, (−i)−1=i(-i)^{-1}=i. Moreover, for any a,b∈Ga,b\in G, ab=baab=ba because complex multiplication is commutative. Hence GG satisfies all group axioms and is Abelian.

To check cyclicity, we examine powers of each element:

Key Formula / Principle: ⟨a⟩={ak∣k∈Z}\langle a\rangle=\{a^k\mid k\in\mathbb{Z}\}
  1. ⟨1⟩={1}\langle 1\rangle=\{1\} – order 11.
  2. ⟨−1⟩={1,−1}\langle -1\rangle=\{1,-1\} – order 22.
  3. ⟨i⟩={1,i,−1,−i}=G\langle i\rangle=\{1,i,-1,-i\}=G because i1=ii^1=i, i2=−1i^2=-1, i3=−ii^3=-i, i4=1i^4=1.
  4. ⟨−i⟩\langle -i\rangle yields the same set.

Since ⟨i⟩=G\langle i\rangle=G (and likewise ⟨−i⟩=G\langle -i\rangle=G), GG is cyclic with generators ii and −i-i.

Checking the axioms carefully. Closure holds because the product of any two fourth roots of unity is again a fourth root of unity, which can be seen either from a multiplication table or by writing every element as a power of the imaginary unit. Associativity is inherited from multiplication of complex numbers, so it does not need a separate table. The identity is the real number one, and each element has an inverse inside the set: one and minus one are self inverse while the two imaginary elements are inverses of each other. Commutativity is again inherited from complex multiplication. For cyclicity, an element generates the whole group only when the list of its successive powers contains all four elements. The powers of the imaginary unit cycle through the entire set, and the powers of its negative do the same, while one and minus one generate only proper subsets.

Result: GG is an Abelian group and is cyclic; generators are ii and −i-i.

Tip from Examiner: Verify closure and inverses first; for cyclicity test each element’s order – only elements whose order equals $|G|$ are generators.

Key Points

  • Abelian group
  • Cyclic group
  • Generators ii, −i-i
Q2e7MUnit 5 — Pigeonhole Principle
Survival ModePredicted

Explain the Pigeonhole principle. Describe its generalized form. If 6 colors are to paint 37 homes, show that at least 7 of them will be of the same color.

Concept / Given Data We are asked to state the Pigeonhole Principle (PHP), its generalized form, and apply it to a colouring problem: 6 colours, 37 homes.

Key Formula / Principle: If N objects are placed into k boxes, then at least one box contains ⌈Nk⌉ objects.\text{If }N\text{ objects are placed into }k\text{ boxes, then at least one box contains }\left\lceil\frac{N}{k}\right\rceil\text{ objects.}

Step‑by‑Step Explanation

  1. Basic PHP – Assume the contrary: each of the kk boxes holds at most ⌈Nk⌉−1\left\lceil\frac{N}{k}\right\rceil-1 objects. Then the total number of objects would be ≤k(⌈Nk⌉−1)<N\le k\bigl(\left\lceil\frac{N}{k}\right\rceil-1\bigr) < N, a contradiction. Hence the statement holds.
  2. Generalized Form – For any integers N,k,m≥1N, k, m\ge1, if N>m kN > m\,k then at least one box must contain more than mm objects. Equivalently,
∃ box B: ∣B∣≥⌈Nk⌉.\exists\,\text{box }B:\ |B|\ge \left\lceil\frac{N}{k}\right\rceil.

This version is useful when we want a lower bound larger than one. 3. Application to the colour‑home problem – Here N=37N=37 homes (objects) and k=6k=6 colours (boxes). Compute the ceiling:

⌈376⌉=⌈6.166… ⌉=7.\left\lceil\frac{37}{6}\right\rceil = \left\lceil 6.166\dots \right\rceil = 7.

Therefore, by PHP, at least one colour must be assigned to seven or more homes. 4. Verification – Suppose each colour were used at most six times. The maximum number of homes that could be painted would be 6×6=366\times6=36, which is less than 37, contradicting the premise.

Result: At least one colour will be used for a minimum of 7 homes.

Tip from Examiner: Write the ceiling expression explicitly; many lose marks by stating “at least 7” without showing $\lceil37/6\rceil$.

Key Points

  • Pigeonhole Principle
  • Ceiling function
  • Colouring application

Section C

7 Marks Each · 10 questions
Q3a7MUnit 1 — Properties of relations
Predicted

Let RR be a binary relation on the set of all strings of 0 and 1 such that R={(a,b):a and b have same number of 0’s}R=\{(a,b):a\text{ and }b\text{ have same number of }0\text{'s}\}. Show whether RR is reflexive, symmetric, transitive or a partial order relation.

Concept / Given Data Set SS = {all binary strings}. Relation RR is defined by

R={(a,b)∣a and b contain the same number of zeros}.R=\{(a,b)\mid a\text{ and }b\text{ contain the same number of zeros}\}.

We must test reflexivity, symmetry, transitivity and decide if RR is a partial order.

Key Formula / Principle: #0(a)=#0(b)  ⟺  (a,b)∈R\#_0(a)=\#_0(b)\iff (a,b)\in R

where #0(x)\#_0(x) denotes the count of symbol ‘0’ in string xx.

Step‑by‑Step Evaluation

  1. Reflexive: For any string aa, the number of zeros in aa equals itself, i.e. #0(a)=#0(a)\#_0(a)=\#_0(a). Hence (a,a)∈R(a,a)\in R for all a∈Sa\in S. Therefore RR is reflexive.
  2. Symmetric: If (a,b)∈R(a,b)\in R, then #0(a)=#0(b)\#_0(a)=\#_0(b). Equality of integers is symmetric, so #0(b)=#0(a)\#_0(b)=\#_0(a), implying (b,a)∈R(b,a)\in R. Thus RR is symmetric.
  3. Transitive: Suppose (a,b)∈R(a,b)\in R and (b,c)∈R(b,c)\in R. Then #0(a)=#0(b)\#_0(a)=\#_0(b) and #0(b)=#0(c)\#_0(b)=\#_0(c). By transitivity of equality, #0(a)=#0(c)\#_0(a)=\#_0(c), giving (a,c)∈R(a,c)\in R. Hence RR is transitive.
  4. Partial Order Test: A partial order must be reflexive, antisymmetric and transitive. While RR is reflexive and transitive, it fails antisymmetry because distinct strings can have the same zero count. Example: a="01"a=\text{"01"} and b="10"b=\text{"10"} satisfy (a,b)∈R(a,b)\in R and (b,a)∈R(b,a)\in R but aeqba eq b. ThereforeRR is not a partial order.

Result: RR is an equivalence relation (reflexive, symmetric, transitive) but not a partial order due to lack of antisymmetry.

Tip from Examiner: When checking antisymmetry, always look for two distinct elements that satisfy the relation in both directions; equal zero‑count strings provide a quick counter‑example.

Key Points

  • reflexive by equal zero count
  • symmetric by equality property
  • transitive by equality chaining
  • fails antisymmetry → not a poset
Q3b7MUnit 1 — Definition & Properties of lattices – Bounded
Predicted

Show that (D42,/)(D_{42},/) is a lattice. Compare the distributive and complemented lattice with examples.

Concept / Given Data We are given the set D42={d∣d divides 42}D_{42}=\{d\mid d\text{ divides }42\} with the binary operation "/" defined as the divisibility relation: for a,b∈D42a,b\in D_{42}, a / ba\,/\,b means aa divides bb (i.e., a∣ba\mid b). The task is to prove that (D42,/)(D_{42},/) forms a lattice and then compare distributive and complemented lattices with examples.

Key Formula / Principle: For any x,y∈D42,  join=lcm⁡(x,y),  meet=gcd⁡(x,y).\text{For any }x,y\in D_{42},\;\text{join}=\operatorname{lcm}(x,y),\;\text{meet}=\gcd(x,y).

Step‑by‑Step Solution

  1. List the elements of D42D_{42}: {1,2,3,6,7,14,21,42}\{1,2,3,6,7,14,21,42\}. All are positive divisors of 4242.
  2. Show existence of join (least upper bound). For any x,y∈D42x,y\in D_{42}, the least common multiple lcm⁡(x,y)\operatorname{lcm}(x,y) is a divisor of 4242 because lcm⁡(x,y)\operatorname{lcm}(x,y) divides 4242 (both xx and yy divide 4242). Hence lcm⁡(x,y)∈D42\operatorname{lcm}(x,y)\in D_{42} and it is the smallest element that is divisible by both xx and yy – the join.
  3. Show existence of meet (greatest lower bound). The greatest common divisor gcd⁡(x,y)\gcd(x,y) is also a divisor of 4242, therefore gcd⁡(x,y)∈D42\gcd(x,y)\in D_{42}. It is the largest element that divides both xx and yy – the meet.
  4. Verify lattice axioms: For every pair (x,y)(x,y) we have both lcm⁡(x,y)\operatorname{lcm}(x,y) and gcd⁡(x,y)\gcd(x,y) in the set, satisfying the definition of a lattice.
  5. Boundedness: The least element (bottom) is 11 (divides every element) and the greatest element (top) is 4242 (is divisible by every element). Hence the lattice is bounded.

Result: (D42,/)(D_{42},/) is a bounded lattice where join = lcm and meet = gcd.

Comparison of Distributive vs. Complemented Lattices

  • Distributive lattice: satisfies x∧(y∨z)=(x∧y)∨(x∧z)x\wedge(y\vee z)= (x\wedge y)\vee (x\wedge z) and its dual. Example: (D6,/)(D_{6},/) with elements {1,2,3,6}\{1,2,3,6\} is distributive because lcm and gcd distribute over each other.
  • Complemented lattice: every element xx has a complement yy such that x∧y=0x\wedge y=0 (bottom) and x∨y=1x\vee y=1 (top). Example: Boolean lattice (P(S),⊆)\big(P(S),\subseteq\big) for S={a,b}S=\{a,b\}; each subset has a complement (its set‑theoretic complement).
Tip from Examiner: When proving a lattice, always exhibit explicit join and meet formulas (lcm/gcd for divisibility). Forgetting to mention boundedness loses marks.

Key Points

  • Divisibility lattice
  • join = lcm, meet = gcd
  • bounded lattice
  • distributive example
  • complemented Boolean lattice
Q4a7MUnit 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)=(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
Q4b7MUnit 2 — Operations on functions
Survival Mode

If f:R→R,  g:R→R,  h:R→Rf:\mathbb{R}\rightarrow\mathbb{R},\;g:\mathbb{R}\rightarrow\mathbb{R},\;h:\mathbb{R}\rightarrow\mathbb{R} are defined by f(x)=3x2+2f(x)=3x^{2}+2, g(x)=7x−5g(x)=7x-5, h(x)=1/xh(x)=1/x, compute the composition functions: (i) (f∘g∘o h)(x)(f\circ g\circ o\,h)(x) (ii) (g∘o g)(x)(g\circ o\,g)(x) (iii) (g∘o h)(x)(g\circ o\,h)(x).

Solution:

We are given three real‑valued functions

f(x)=3x2+2,g(x)=7x−5,h(x)=1x.f(x)=3x^{2}+2,\quad g(x)=7x-5,\quad h(x)=\frac{1}{x}.

The task is to evaluate three compositions.

Key Formula / Principle: For any two functions $p$ and $q$, the composition $(p\circ q)(x)=p\bigl(q(x)\bigr)$. When more than two functions appear, the right‑most function is applied first.

1. (f∘g∘h)(x)(f\circ g\circ h)(x)

  1. Compute the innermost part h(x)=1xh(x)=\frac{1}{x}.
  2. Apply gg to the result of hh:
g(h(x))=g(1x)=7(1x)−5=7x−5.g\bigl(h(x)\bigr)=g\Bigl(\frac{1}{x}\Bigr)=7\left(\frac{1}{x}\right)-5=\frac{7}{x}-5.
  1. Finally apply ff to the outcome of step 2:
f(g(h(x)))=f(7x−5)=3(7x−5)2+2.f\Bigl(g\bigl(h(x)\bigr)\Bigr)=f\Bigl(\frac{7}{x}-5\Bigr)=3\left(\frac{7}{x}-5\right)^{2}+2.
  1. Expand the square:
(7x−5)2=49x2−70x+25.\left(\frac{7}{x}-5\right)^{2}=\frac{49}{x^{2}}-\frac{70}{x}+25.
  1. Multiply by 33 and add 22:
3(49x2−70x+25)+2=147x2−210x+75+2=147x2−210x+77.3\left(\frac{49}{x^{2}}-\frac{70}{x}+25\right)+2=\frac{147}{x^{2}}-\frac{210}{x}+75+2=\frac{147}{x^{2}}-\frac{210}{x}+77.

Result: (f∘g∘h)(x)=147x2−210x+77\displaystyle (f\circ g\circ h)(x)=\frac{147}{x^{2}}-\frac{210}{x}+77.

2. (g∘g)(x)(g\circ g)(x)

  1. Apply gg to xx: g(x)=7x−5g(x)=7x-5.
  2. Substitute this expression back into gg:
g(g(x))=7(7x−5)−5=49x−35−5=49x−40.g\bigl(g(x)\bigr)=7\bigl(7x-5\bigr)-5=49x-35-5=49x-40.

Result: (g∘g)(x)=49x−40\displaystyle (g\circ g)(x)=49x-40.

3. (g∘h)(x)(g\circ h)(x)

  1. Start with h(x)=1xh(x)=\frac{1}{x}.
  2. Feed this into gg:
g(h(x))=7(1x)−5=7x−5.g\bigl(h(x)\bigr)=7\left(\frac{1}{x}\right)-5=\frac{7}{x}-5.

Result: (g∘h)(x)=7x−5\displaystyle (g\circ h)(x)=\frac{7}{x}-5.

Tip from Examiner: Write each intermediate result on a new line; a common mistake is to forget to square the entire bracket in part (i). Also keep the domain restriction $x eq0$because$h(x)$involves$1/x$.

Key Points

    • Composition order: right‑most function first.
Q5a7MUnit 3 — Theory of Inference
Core Concept

Test the validity of the argument: "If there was a ball game, then traveling was difficult. If they arrived on time, then traveling was not difficult. They arrived on time. Therefore, there was no ball game."

Concept / Given Data:

Define atomic propositions:

  • bb: There was a ball game
  • dd: Traveling was difficult
  • aa: They arrived on time

Symbolised Hypotheses & Conclusion:

# English Symbolic Form
H1 Ball game → difficult b→db \to d
H2 Arrived on time → not difficult $a \to
eg d$
H3 They arrived on time aa
C No ball game $
eg b$
Key Principle: An argument is **valid** if, whenever all hypotheses are true, the conclusion must also be true. We prove this by deriving the conclusion using named inference rules.

Step-by-Step Derivation:

Step Statement Justification
1 b→db \to d Hypothesis H1
2 $a \to
eg d$ Hypothesis H2
3 aa Hypothesis H3
4 $
eg d$ Modus Ponens (2, 3)
5 $
eg b$ Modus Tollens (1, 4)

Verification via Truth Table (optional check):

| bb | dd | aa | b→db\to d | a→egda\to eg d|aa|egb eg b | |:---:|:---:|:---:|:---:|:---:|:---:|:---:| | T | T | T | T | F | T | F | | T | F | T | F | T | T | F | | F | T | T | T | F | T | T | | F | F | T | T | T | T | T |

The only row where all three hypotheses are simultaneously true is the last row (b=F,d=F,a=Tb=F, d=F, a=T), and there egb=T eg b = T. Hence the argument is valid.

Result: The conclusion egb eg b follows from the hypotheses in 5 steps. The argument is valid.

Tip from Examiner: This is a classic **Modus Ponens + Modus Tollens** chain. The most common error is confusing H2: "arrived on time → traveling was NOT difficult" is $a \to eg d$, not$a \to d$. If you misread the negation, the proof collapses. Always underline negations in the English text before symbolising.

Key Points

  • Modus Ponens
  • Modus Tollens
  • 5-step derivation
  • Negation in H2: a→¬da \to \neg d
  • Truth table verification
  • Valid argument
Q5b7MUnit 3 — Inference theory of predicate logic
Core Concept

Describe the existential and universal quantifiers with examples. Convert "There is someone who got an A in the course" into predicate logic. Prove the argument: All men are mortal. Socrates is a man. Therefore, Socrates is mortal.

Concept / Given Data The two fundamental quantifiers in first‑order predicate logic are the existential (∃\exists) and universal (∀\forall) quantifiers. They allow us to make statements about "some" or "all" objects in a domain of discourse.

Key Formula / Principle: ∃x P(x)means"There exists at least one x such that P(x) is true"\exists x\,P(x)\quad\text{means}\quad\text{"There exists at least one }x\text{ such that }P(x)\text{ is true"} ∀x P(x)means"For every x in the domain, P(x) is true"\forall x\,P(x)\quad\text{means}\quad\text{"For every }x\text{ in the domain, }P(x)\text{ is true"}

Step‑by‑Step Explanation

  1. Universal Quantifier (∀\forall) – asserts that a predicate holds for every element of the domain. Example:
∀x (x>0→x2>0)\forall x\,(x>0\rightarrow x^2>0)

reads “for all xx, if xx is positive then x2x^2 is positive”. 2. Existential Quantifier (∃\exists) – asserts the existence of at least one element satisfying the predicate. Example:

∃x (x2=4)\exists x\,(x^2=4)

reads “there exists an xx whose square equals 4” (true for x=2x=2 or x=−2x=-2). 3. Negation Interaction – the negation of a quantified statement flips the quantifier:

eg∀x P(x)≡∃x egP(x)eg\forall x\,P(x)\equiv \exists x\, eg P(x) eg∃x P(x)≡∀x egP(x)eg\exists x\,P(x)\equiv \forall x\, eg P(x)

Conversion of the English sentence

"There is someone who got an A in the course"

Let the domain be the set of all students. Define the predicate A(x)A(x): “student xx got an A in the course”. The translation is:

∃x A(x)\exists x\,A(x)

Proof of the Argument Premises:

  1. ∀x (Man(x)→Mortal(x))\forall x\,(\text{Man}(x)\rightarrow \text{Mortal}(x))
  2. Man(Socrates)\text{Man}(\text{Socrates}) Conclusion: Mortal(Socrates)\text{Mortal}(\text{Socrates})

Derivation

  1. ∀x (Man(x)→Mortal(x))\forall x\,(\text{Man}(x)\rightarrow \text{Mortal}(x))                      (Premise)
  2. Man(Socrates)\text{Man}(\text{Socrates})                                              (Premise)
  3. Man(Socrates)→Mortal(Socrates)\text{Man}(\text{Socrates})\rightarrow \text{Mortal}(\text{Socrates})   (Universal Instantiation on 1)
  4. Mortal(Socrates)\text{Mortal}(\text{Socrates})                                          (Modus Ponens on 2,3)

Thus the argument is valid; the conclusion follows logically from the premises.

Result: The existential quantifier expresses “some”, the universal quantifier expresses “all”; the sentence translates to ∃x A(x)\exists x\,A(x) and the syllogism ∀x(Man(x)→Mortal(x)),  Man(Socrates)⊢Mortal(Socrates)\forall x(Man(x)\to Mortal(x)),\;Man(Socrates)\vdash Mortal(Socrates) is proved by Universal Instantiation and Modus Ponens.

Tip from Examiner: When converting English, first identify the domain and a clear predicate; avoid adding extra quantifiers. In proofs, always write the rule used (UI, MP, etc.) beside each line to earn split‑marks.

Key Points

  • Existential ∃\exists
  • Universal ∀\forall
  • Quantifier translation
  • Universal Instantiation
  • Modus Ponens
Q6a7MUnit 4 — Definition
Survival Mode

Describe algebraic structure, semigroup, monoid and group. Also explain the relationship among them.

Concept / Given Data An algebraic structure is a non‑empty set SS together with one or more binary operations ∗:S×S→S*:S\times S\to S. By imposing successive axioms on the operation we obtain familiar structures:

  1. Semigroup – ⟨S,∗⟩\langle S, *\rangle is a semigroup if it satisfies closure (a∗b∈Sa*b\in S) and associativity (a∗(b∗c)=(a∗b)∗ca*(b*c)=(a*b)*c) for all a,b,c∈Sa,b,c\in S.
  2. Monoid – a semigroup that also possesses an identity element e∈Se\in S such that e∗a=a∗e=ae*a=a*e=a for every a∈Sa\in S.
  3. Group – a monoid in which every element has an inverse; i.e., for each a∈Sa\in S there exists a−1∈Sa^{-1}\in S with a∗a−1=a−1∗a=ea*a^{-1}=a^{-1}*a=e.
Key Formula / Principle: Group=Monoid+Inverse        Monoid=Semigroup+Identity\text{Group}=\text{Monoid}+\text{Inverse}\;\;\;\;\text{Monoid}=\text{Semigroup}+\text{Identity}

Step‑by‑Step Relationship

  1. Start with a set SS and a binary operation ∗*.
  2. Impose closure and associativity → obtain a semigroup.
  3. Add an identity element ee → the semigroup becomes a monoid.
  4. Require that each a∈Sa\in S has an inverse a−1a^{-1} → the monoid upgrades to a group.
  5. If the operation also satisfies commutativity (a∗b=b∗aa*b=b*a), the group is called Abelian.

Result: A group is the most restrictive structure; every group is a monoid, every monoid is a semigroup, and every semigroup is an algebraic structure, but the converse need not hold.

Tip from Examiner: In marks‑split, allocate 1 mark for definition of each structure, 2 marks for the hierarchy diagram, and 2 marks for a concrete example (e.g., $(\mathbb{Z},+)$). Common mistake: forgetting to mention associativity for semigroups.

Key Points

  • Algebraic structure definition
  • Semigroup: closure & associativity
  • Monoid adds identity
  • Group adds inverses
Q6b7MUnit 4 — Cyclic Groups
Core Concept

Consider group G={1,2,3,4,5,6}G=\{1,2,3,4,5,6\} under multiplication modulo 7. (a) Construct the multiplication table of GG. (b) Compute 2−1,3−1,6−12^{-1},3^{-1},6^{-1}. (c) Compute the orders and subgroups generated by 2 and 3. (d) Is GG cyclic?

Answer:

Let G={1,2,3,4,5,6}G=\{1,2,3,4,5,6\} under multiplication modulo 77. Since 77 is prime, Z7×\mathbb{Z}_7^{\times} is a group of order 66.

(a) Multiplication table

⋅\cdot 1 2 3 4 5 6
1 1 2 3 4 5 6
2 2 4 6 1 3 5
3 3 6 2 5 1 4
4 4 1 5 2 6 3
5 5 3 1 6 4 2
6 6 5 4 3 2 1

(b) Inverses

We need a⋅a−1≡1(mod7)a\cdot a^{-1}\equiv1\pmod7. From the table:

  • 2⋅4≡1⇒2−1=42\cdot4\equiv1\Rightarrow2^{-1}=4
  • 3⋅5≡1⇒3−1=53\cdot5\equiv1\Rightarrow3^{-1}=5
  • 6⋅6≡1⇒6−1=66\cdot6\equiv1\Rightarrow6^{-1}=6

(c) Orders and generated subgroups

Key Formula / Principle: ord⁡(a)=min⁡{k>0∣ak≡1(mod7)}\operatorname{ord}(a)=\min\{k>0\mid a^{k}\equiv1\pmod7\}
  1. Element 2: 21=22^1=2, 22=42^2=4, 23=8≡12^3=8\equiv1 ⇒ ord⁡(2)=3\operatorname{ord}(2)=3. Subgroup ⟨2⟩={1,2,4}\langle2\rangle=\{1,2,4\}.
  2. Element 3: 31=33^1=3, 32=9≡23^2=9\equiv2, 33=63^3=6, 34=18≡43^4=18\equiv4, 35=12≡53^5=12\equiv5, 36=15≡13^6=15\equiv1 ⇒ ord⁡(3)=6\operatorname{ord}(3)=6. Subgroup ⟨3⟩=G\langle3\rangle=G (all six elements).

(d) Cyclicity of GG

Since an element of order 66 exists (e.g., 33 or 55), GG is cyclic. Any generator gg satisfies gcd⁡(g,7)=1\gcd(g,7)=1 and ord⁡(g)=6\operatorname{ord}(g)=6.

Result: Table constructed; 2−1=42^{-1}=4, 3−1=53^{-1}=5, 6−1=66^{-1}=6; ord⁡(2)=3\operatorname{ord}(2)=3, ⟨2⟩={1,2,4}\langle2\rangle=\{1,2,4\}; ord⁡(3)=6\operatorname{ord}(3)=6, ⟨3⟩=G\langle3\rangle=G; therefore GG is cyclic.

Tip from Examiner: Remember $\mathbb{Z}_p^{\times}$ is always cyclic for prime $p$; check the order of a single element to decide cyclicity.

Key Points

  • Multiplication modulo 7
  • Inverse elements
  • Cyclic group Z7×\mathbb{Z}_7^{\times}
Q7a7MUnit 5 — Planar graphs
Core Concept

Compare bipartite and complete graph with example. Draw K3,4K_{3,4} and K5K_{5}. Explain why these two graphs are not planar.

Concept / Given Data We are asked to compare a bipartite graph and a complete graph, illustrate K3,4K_{3,4} and K5K_{5}, and explain why neither is planar.

Key Formula / Principle: ∣E∣≤3∣V∣−6(Euler’s inequality for planar simple graphs)|E|\le 3|V|-6\quad\text{(Euler's inequality for planar simple graphs)}

1. Definition Comparison

  1. A bipartite graph G=(U∪W,E)G=(U\cup W,E) has its vertex set split into two disjoint parts UU and WW such that every edge joins a vertex in UU to one in WW. No edge connects two vertices of the same part.
  2. A complete graph KnK_n contains an edge between every pair of its nn vertices. It is not bipartite when n≥3n\ge3 because it inevitably contains odd cycles.

2. Example Graphs

  • K3,4K_{3,4}: ∣U∣=3|U|=3, ∣W∣=4|W|=4, total vertices ∣V∣=7|V|=7, edges ∣E∣=3×4=12|E|=3\times4=12.
  • K5K_{5}: ∣V∣=5|V|=5, edges ∣E∣=(52)=10|E|=\binom{5}{2}=10.

3. Planarity Test Using Euler’s Inequality

  1. For K3,4K_{3,4}: ∣V∣=7|V|=7, ∣E∣=12|E|=12. Compute 3∣V∣−6=3×7−6=153|V|-6 = 3\times7-6 = 15. Since ∣E∣=12≤15|E|=12 \le 15, the inequality does not rule out planarity. However K3,4K_{3,4} contains a subdivision of K3,3K_{3,3} (remove one vertex from the larger part), and K3,3K_{3,3} is non‑planar, so K3,4K_{3,4} is also non‑planar.
  2. For K5K_{5}: ∣V∣=5|V|=5, ∣E∣=10|E|=10. Euler’s bound gives 3∣V∣−6=93|V|-6 = 9. Here ∣E∣=10>9|E|=10 > 9, violating the inequality, therefore K5K_{5} cannot be drawn without edge crossings.

Result: Both K3,4K_{3,4} and K5K_{5} are non‑planar; K5K_{5} fails Euler’s inequality directly, while K3,4K_{3,4} inherits non‑planarity from a K3,3K_{3,3} subdivision.

Tip from Examiner: For planarity, first apply Euler’s bound. If it passes, look for a $K_{3,3}$ or $K_{5}$ subdivision – these are the forbidden minors for simple planar graphs.

Key Points

  • Bipartite vs complete definition
  • Euler inequality ∣E∣≤3∣V∣−6|E|\le3|V|-6
  • Forbidden minors K5K_{5}, K3,3K_{3,3}
Q7b7MUnit 5 — Planar graphs
Core Concept

Show that K3,3K_{3,3} satisfies the inequality ∣E∣≤3∣V∣−6|E|\le 3|V|-6, but it is non‑planar. (VV = number of vertices, EE = number of edges, RR = number of regions)

Concept / Given Data We must verify that the complete bipartite graph K3,3K_{3,3} satisfies Euler’s inequality ∣E∣≤3∣V∣−6|E|\le 3|V|-6 and then prove its non‑planarity.

Key Formula / Principle: ∣E∣≤3∣V∣−6(Euler’s inequality for simple planar graphs)|E|\le 3|V|-6\quad\text{(Euler’s inequality for simple planar graphs)}

1. Compute ∣V∣|V| and ∣E∣|E| for K3,3K_{3,3}

  1. K3,3K_{3,3} has two partite sets of sizes 33 and 33, so ∣V∣=3+3=6|V|=3+3=6.
  2. Every vertex in the first set connects to all three vertices in the second set, giving 3×3=93\times3=9 edges. Hence ∣E∣=9|E|=9.

2. Check Euler’s inequality

3∣V∣−6=3×6−6=12.3|V|-6 = 3\times6-6 = 12.

Since ∣E∣=9≤12|E|=9 \le 12, the inequality is satisfied; the test alone does not disprove planarity.

3. Non‑planarity Proof via Kuratowski’s Theorem Kuratowski’s theorem states that a graph is non‑planar iff it contains a subdivision of K5K_{5} or K3,3K_{3,3}. Here the graph is K3,3K_{3,3}, so it trivially contains the forbidden minor.

Step‑by‑step reasoning

  1. Assume K3,3K_{3,3} is planar. By Euler’s formula for planar connected graphs, ∣V∣−∣E∣+R=2|V|-|E|+R=2, where RR is the number of regions.
  2. Substituting ∣V∣=6|V|=6, ∣E∣=9|E|=9 gives 6−9+R=2⇒R=56-9+R=2 \Rightarrow R=5.
  3. In a planar embedding each region is bounded by at least four edges because K3,3K_{3,3} is bipartite (no odd cycles). Summing the boundary lengths over all regions counts each edge twice, so 4R≤2∣E∣4R \le 2|E|.
  4. Plugging R=5R=5 and ∣E∣=9|E|=9: 4×5=20≤2×9=184\times5 =20 \le 2\times9 =18, which is false. Hence the assumption of planarity leads to a contradiction.

Why the simple bound is not enough. The inequality is only a necessary condition for planarity, so passing it proves nothing by itself. The stronger test uses the fact that a bipartite drawing has no triangular face, because a triangle would be an odd cycle. Euler's formula fixes the number of faces, and counting edge appearances around faces then gives a contradiction. The same graph is also the classic forbidden configuration in Kuratowski's theorem: any graph containing a subdivision of it is non planar. Remember that a graph may have fewer than the maximum allowed edges and still be impossible to draw without crossings.

Result: K3,3K_{3,3} satisfies the numerical inequality but is non‑planar because it violates the region‑boundary condition derived from bipartiteness, confirming Kuratowski’s forbidden‑minor criterion.

Tip from Examiner: When Euler’s bound passes, test the *face‑edge* relation $\sum\text{face lengths}=2|E|$; bipartite graphs force a minimum face length of 4, often exposing non‑planarity.
part Apart B nine crossing edges

Key Points

  • K3,3K_{3,3} vertices and edges
  • Euler inequality check
  • Kuratowski forbidden minor proof