Top Banner Ad

BCS303 — Unit 1: Set Theory& Relations

Table of Contents (38 sections)

BCS303 · Discrete Structures & Theory of Logic · Unit 1

Set Theory& Relations

Unit Scope & Exam Weightage: This unit moves from sets to relations and then to ordered structures: Introduction, Combination of sets, Relations: Definition, Operations on relations, Properties of relations, Composite Relations, Equality of relations, Recursive definition of relation, Order of relations, POSET & Lattices: Hasse Diagram, POSET, Definition & Properties of lattices – Bounded, Complemented, Distributed, and Modular and Complete lattice. The corpus records 14 PYQ clusters worth about 68 marks; lattice questions dominate (23 marks), closely followed by relation properties (16 marks).


Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)

Priority Topic (Exact Syllabus) PYQs Asked Marks Weightage Tag
1 Definition & Properties of lattices – Bounded 4 (2023-24 ×2, 2024-25, 2025-26) 7m × 3 + 2m Survival Mode
2 Properties of relations 3 (2023-24, 2024-25, 2025-26) 7m + 7m + 2m Survival Mode Proof
3 POSET & Lattices: Hasse Diagram 2 (2023-24, 2025-26) 7m × 2 Diagram
4 Combination of sets 2 (2023-24, 2024-25) 2m × 2 Core Concept
5 Composite Relations 1 (2024-25) 7m Algorithm
6 Relations: Definition 1 (2024-25) 2m Counting
7 POSET 1 (2023-24) 2m Core Concept
8 Introduction 0 direct — Predicted
9 Operations on relations 0 direct — Supporting Concept
10 Equality of relations 0 direct — Supporting Concept
11 Recursive definition of relation 0 direct — Predicted
12 Order of relations 0 direct — Supporting Concept
13 Complemented integrated in #1 / #7 — Supporting Concept
14 Distributed integrated in #1 — Supporting Concept
15 Modular and Complete lattice 0 direct — Predicted

2-Hour Last-Night Survival Checklist:

  1. Lattices (#1): A lattice is a poset where every pair has a join (LUB) and a meet (GLB). For (Dn,/)(D_n,/): join = lcm, meet = gcd. For (D42,/)(D_{42},/) every pair's lcm/gcd stays in D42D_{42}, so it is a lattice.
  2. Relation properties (#2): reflexive = diagonal 1s; symmetric = matrix equals its transpose; transitive = R∘R⊆RR\circ R\subseteq R. The "same number of 0s" relation is an equivalence relation, not a partial order (antisymmetry fails: 01 and 10).
  3. Inverse equivalence proof: for R−1R^{-1} write three labelled lines — reflexive from (a,a)∈R(a,a)\in R, symmetric using RR's symmetry, transitive using (c,b),(b,a)∈R⇒(c,a)∈R(c,b),(b,a)\in R\Rightarrow(c,a)\in R and then inverting.
  4. Hasse diagrams (#3): vertices are elements; draw an edge only when yy covers xx; omit reflexive loops and transitive edges. For P({a,b,c})P(\{a,b,c\}) use levels 1–3–3–1.
  5. Warshall (#5): for R={(1,2),(2,3),(3,1)}R=\{(1,2),(2,3),(3,1)\} iterate k=1,2,3k=1,2,3 using Wij←Wij∨(Wik∧Wkj)W_{ij}\leftarrow W_{ij}\vee(W_{ik}\wedge W_{kj}); the final matrix is all 1s, so the closure is A×AA\times A.

1. Introduction and Combination of Sets

Set: an unordered collection of distinct objects, called elements. A set is written with braces, e.g. A={2,3,5,7}A=\{2,3,5,7\}, and x∈Ax\in A means "xx is an element of AA".

1.1 Set Operations

Operation Notation Meaning
Union A∪BA\cup B elements in AA or BB
Intersection A∩BA\cap B elements in AA and BB
Difference A−BA-B elements in AA but not BB
Complement A′A' elements of the universal set not in AA
Power set P(A)P(A) set of all subsets of AA
Cartesian product A×BA\times B all ordered pairs (a,b)(a,b), a∈A,b∈Ba\in A,b\in B
∣P(A)∣=2∣A∣,∣A×B∣=∣A∣ ∣B∣|P(A)|=2^{|A|}, \qquad |A\times B|=|A|\,|B|

If AA has nn elements, each element is either chosen or not chosen for a subset, hence 2n2^n subsets.

Examiner Tip: In a 2-mark set question, first list both sets explicitly, then write the union/intersection as a brace list. For a power set, use the 2n2^n count as a self-check — forgetting one subset is the common error.

After-Topic PYQ (2024-25 Sec A Q1a — 2 Marks): 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.

After-Topic PYQ (2023-24 Sec A Q1b — 2 Marks): Express power set of each of these sets. 1) {∅,{∅}}\{\emptyset,\{\emptyset\}\} 2) {a,{a}}\{a,\{a\}\}


2. Relations: Definition and Operations

Binary relation (2 Marks): a subset R⊆A×BR\subseteq A\times B. If (a,b)∈R(a,b)\in R we write aRbaRb. When R⊆A×AR\subseteq A\times A we say RR is a relation on AA.

2.1 Counting and Order of a Relation

number of relations from A to B=2∣A∣∣B∣\text{number of relations from } A \text{ to } B = 2^{|A||B|}

A×BA\times B contains ∣A∣∣B∣|A||B| ordered pairs; each pair is independently included or excluded from RR.

For ∣A∣=3,∣B∣=2|A|=3,|B|=2, there are 3×2=63\times2=6 pairs and 26=642^6=\mathbf{64} possible relations. The "order" of a finite relation on AA is ∣A∣|A| (its Boolean matrix is ∣A∣×∣A∣|A|\times|A|); for A×BA\times B the matrix is ∣A∣×∣B∣|A|\times|B|.

2.2 Operations on Relations

Since a relation is a set of ordered pairs, all set operations apply: R∪SR\cup S, R∩SR\cap S, R−SR-S, R′R'. Two further operations are specific to relations:

Operation Definition Matrix view
Inverse R−1={(b,a):(a,b)∈R}R^{-1}=\{(b,a):(a,b)\in R\} transpose of the Boolean matrix
Composition R∘S={(a,c):∃b, (a,b)∈R,(b,c)∈S}R\circ S=\{(a,c):\exists b,\ (a,b)\in R,(b,c)\in S\} Boolean matrix product MR⊙MSM_R\odot M_S
Equality R=SR=S iff they contain exactly the same ordered pairs MR=MSM_R=M_S entrywise

Recursive definition of a relation: give a base set of pairs and rules that generate more pairs. Example: on integers, let RR contain (x,x+1)(x,x+1) for all xx, and if (x,y)∈R(x,y)\in R then (x,y+1)∈R(x,y+1)\in R; the recursively generated relation is <<.

Examiner Tip: For the 2-mark counting question, do not enumerate relations. Write 2∣A∣∣B∣=23⋅2=642^{|A||B|}=2^{3\cdot2}=64 and name the underlying Cartesian product — that is the full-credit derivation.

After-Topic PYQ (2024-25 Sec A Q1b — 2 Marks): 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.


3. Properties of Relations

Property tests for RR on AA:
• Reflexive: (a,a)∈R(a,a)\in R for every a∈Aa\in A (diagonal of matrix is all 1s; every digraph vertex has a loop).
• Symmetric: (a,b)∈R⇒(b,a)∈R(a,b)\in R\Rightarrow(b,a)\in R (matrix equals its transpose).
• Antisymmetric: (a,b),(b,a)∈R⇒a=b(a,b),(b,a)\in R\Rightarrow a=b (no two-way arrow between distinct vertices).
• Transitive: (a,b),(b,c)∈R⇒(a,c)∈R(a,b),(b,c)\in R\Rightarrow(a,c)\in R.

3.1 Equivalence and Partial Order

Structure Required properties
Equivalence relation reflexive + symmetric + transitive
Partial order (POSET) reflexive + antisymmetric + transitive

3.2 Worked Pattern — Inverse of an Equivalence Relation

Let RR be an equivalence relation on AA and define (a,b)∈R−1  ⟺  (b,a)∈R(a,b)\in R^{-1}\iff(b,a)\in R.

  1. Reflexive: (a,a)∈R(a,a)\in R for all aa; inverting gives (a,a)∈R−1(a,a)\in R^{-1}.
  2. Symmetric: (a,b)∈R−1⇒(b,a)∈R⇒(a,b)∈R(a,b)\in R^{-1}\Rightarrow(b,a)\in R\Rightarrow(a,b)\in R (as RR symmetric) ⇒(b,a)∈R−1\Rightarrow(b,a)\in R^{-1}.
  3. Transitive: (a,b),(b,c)∈R−1⇒(b,a),(c,b)∈R(a,b),(b,c)\in R^{-1}\Rightarrow(b,a),(c,b)\in R. Transitivity of RR gives (c,a)∈R(c,a)\in R, hence (a,c)∈R−1(a,c)\in R^{-1}. Therefore R−1R^{-1} is an equivalence relation. (Equivalently, a symmetric relation equals its inverse, and taking an inverse preserves equivalence.)

3.3 Worked Pattern — Strings With the Same Number of 0s

Define R={(a,b):a,b are binary strings and have the same number of 0’s}R=\{(a,b):a,b\text{ are binary strings and have the same number of }0\text{'s}\}.

  • Reflexive: aa has the same number of 0s as itself ✓
  • Symmetric: if a,ba,b have equal 0-counts, so do b,ab,a ✓
  • Transitive: equal counts to bb force equal counts between aa and cc ✓
  • Not antisymmetric: a=01a=01, b=10b=10 both have one 0, so (a,b),(b,a)∈R(a,b),(b,a)\in R but a≠ba\neq b. Conclusion: RR is an equivalence relation, not a partial order.

Examiner Tip: For "show whether" questions, never stop after finding three properties. Explicitly test antisymmetry with a concrete counterexample (01 and 10), then state "equivalence but not partial order".

After-Topic PYQ (2024-25, 2025-26 Sec B Q2a — 7 Marks): If RR is an equivalence relation on AA, then prove that R−1R^{-1} is also an equivalence relation on AA.

After-Topic PYQ (2023-24 Sec C Q3a — 7 Marks): 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.

After-Topic PYQ (2025-26 Sec A Q1b — 2 Marks): What is meant by a reflexive relation? State its basic property.


4. Composite Relations and Transitive Closure

Composition: R∘SR\circ S links aa to cc when some bb satisfies aRbaRb and bScbSc. The transitive closure R∗R^* is the smallest transitive relation containing RR; it repeatedly adds pairs implied by transitivity.

4.1 Warshall's Algorithm

For vertices 1,…,n1,\dots,n, start with W0=MRW_0=M_R. For k=1,…,nk=1,\dots,n:

Wk[i,j]=Wk−1[i,j]  ∨  (Wk−1[i,k]∧Wk−1[k,j])W_k[i,j] = W_{k-1}[i,j] \;\vee\; \big(W_{k-1}[i,k]\wedge W_{k-1}[k,j]\big)

After stage kk, the matrix includes all paths whose intermediate vertices lie in {1,…,k}\{1,\dots,k\}.

For R={(1,2),(2,3),(3,1)}R=\{(1,2),(2,3),(3,1)\} on A={1,2,3}A=\{1,2,3\}:

Stage Row 1 Row 2 Row 3 New information
W0W_0 0 1 0 0 0 1 1 0 0 original edges
W1W_1 (via 1) 0 1 0 0 0 1 1 1 0 3→1→23\to1\to2
W2W_2 (via 2) 0 1 1 0 0 1 1 1 1 1→2→31\to2\to3, 3→2→33\to2\to3
W3W_3 (via 3) 1 1 1 1 1 1 1 1 1 cycle makes every vertex reachable

Thus R∗=A×AR^*=A\times A — all nine ordered pairs including the reflexive ones.

Examiner Tip: Print all four matrices W0,W1,W2,W3W_0,W_1,W_2,W_3. The exam awards one mark per correctly updated stage; writing only the final matrix loses the algorithm marks.

After-Topic PYQ (2024-25 Sec C Q3a — 7 Marks): 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.


5. POSET and Hasse Diagram

POSET: a set AA with a partial order ⪯\preceq — a relation that is reflexive, antisymmetric and transitive. Hasse diagram: a drawing of a finite poset where yy is placed above xx and joined by an edge iff yy covers xx (i.e., x≺yx\prec y with no element strictly between).

5.1 Hasse Diagram Rules

  1. Write larger elements higher; omit arrows because upward direction means "greater".
  2. Omit self-loops (reflexivity) and omit edges implied by transitivity.
  3. Draw an edge only for a cover relation.
  4. If an element has a unique smallest/largest, it is the bottom/top of the diagram.

5.2 Worked — P({a,b,c}),⊆P(\{a,b,c\}),\subseteq

%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart BT
    E["∅"]
    A["{a}"]
    B["{b}"]
    C["{c}"]
    AB["{a,b}"]
    AC["{a,c}"]
    BC["{b,c}"]
    T["{a,b,c}"]
    E --> A
    E --> B
    E --> C
    A --> AB
    A --> AC
    B --> AB
    B --> BC
    C --> AC
    C --> BC
    AB --> T
    AC --> T
    BC --> T

There are 8 subsets in four levels (1, 3, 3, 1). For any two subsets X,YX,Y, their LUB is X∪YX\cup Y and their GLB is X∩YX\cap Y; both are subsets of SS, so (P(S),⊆)(P(S),\subseteq) is a lattice (indeed a bounded, complemented, distributive Boolean lattice).

5.3 GLB/LUB in D24D_{24} Under Divisibility

D24={1,2,3,4,6,8,12,24}D_{24}=\{1,2,3,4,6,8,12,24\}. For {2,3,6}\{2,3,6\}:

  • upper bounds = common multiples within D24D_{24} = {6,12,24}\{6,12,24\} → LUB =6=6 (it divides 12 and 24);
  • lower bounds = common divisors = {1}\{1\} → GLB =1=1.

Examiner Tip: In a divisibility poset DnD_n, compute LUB as lcm and GLB as gcd, then check that the result still divides nn. That one sentence converts a diagram question into a quick numerical answer.

After-Topic PYQ (2025-26 Sec C Q3b — 7 Marks): Explain the following terms: (i) POSET (ii) Hasse diagram.

After-Topic PYQ (2023-24 Sec B Q2a — 7 Marks): 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.

After-Topic PYQ (2023-24 Sec A Q1a — 2 Marks): 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},/).


6. Lattices: Definition, Boundedness and Properties

Lattice (2/7 Marks): a partially ordered set (L,⪯)(L,\preceq) in which every pair of elements a,b∈La,b\in L has a least upper bound a∨ba\vee b (join) and a greatest lower bound a∧ba\wedge b (meet).

6.1 Algebraic Properties

Property Equations
Idempotent a∨a=a,a∧a=aa\vee a=a,\quad a\wedge a=a
Commutative a∨b=b∨a,a∧b=b∧aa\vee b=b\vee a,\quad a\wedge b=b\wedge a
Associative a∨(b∨c)=(a∨b)∨ca\vee(b\vee c)=(a\vee b)\vee c, similarly for ∧\wedge
Absorption a∨(a∧b)=a,a∧(a∨b)=aa\vee(a\wedge b)=a,\quad a\wedge(a\vee b)=a
Bounded has least element 00 and greatest element 11: 0⪯a⪯10\preceq a\preceq1

Upper bound of S⊆LS\subseteq L is uu with s⪯us\preceq u for all s∈Ss\in S; lower bound is ℓ\ell with ℓ⪯s\ell\preceq s for all ss. The least of the upper bounds is the join; the greatest of the lower bounds is the meet.

6.2 Divisor Lattice D42D_{42}

D42={1,2,3,6,7,14,21,42}D_{42}=\{1,2,3,6,7,14,21,42\} under divisibility has join =lcm⁡=\operatorname{lcm} and meet =gcd⁡=\gcd. Since 42 is square-free (2⋅3⋅72\cdot3\cdot7), every lcm/gcd of two divisors is again a divisor of 42 — so (D42,/)(D_{42},/) is a lattice. Example: 6∨7=426\vee7=42, 6∧14=26\wedge14=2.

%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart BT
    ONE["1"]
    TWO["2"]
    THREE["3"]
    SEVEN["7"]
    SIX["6"]
    FOURTEEN["14"]
    TWENTYONE["21"]
    FORTYTWO["42"]
    ONE --> TWO
    ONE --> THREE
    ONE --> SEVEN
    TWO --> SIX
    THREE --> SIX
    TWO --> FOURTEEN
    SEVEN --> FOURTEEN
    THREE --> TWENTYONE
    SEVEN --> TWENTYONE
    SIX --> FORTYTWO
    FOURTEEN --> FORTYTWO
    TWENTYONE --> FORTYTWO

6.3 Isomorphism D6≅P({a,b})D_6 \cong P(\{a,b\})

D6={1,2,3,6}D_6=\{1,2,3,6\} with meet =gcd⁡=\gcd, join =lcm⁡=\operatorname{lcm}; P({a,b})={∅,{a},{b},{a,b}}P(\{a,b\})=\{\emptyset,\{a\},\{b\},\{a,b\}\} with meet =∩=\cap, join =∪=\cup. The bijection 1↦∅1\mapsto\emptyset, 2↦{a}2\mapsto\{a\}, 3↦{b}3\mapsto\{b\}, 6↦{a,b}6\mapsto\{a,b\} preserves meet and join (e.g., gcd⁡(2,3)=1↔{a}∩{b}=∅\gcd(2,3)=1\leftrightarrow\{a\}\cap\{b\}=\emptyset; lcm⁡(2,3)=6↔{a}∪{b}={a,b}\operatorname{lcm}(2,3)=6\leftrightarrow\{a\}\cup\{b\}=\{a,b\}). Hence the two lattices are isomorphic.

Examiner Tip: To "justify a lattice", write three things: the definition, the formula for join/meet in that poset, and proof that join/meet stay in the set. To prove isomorphism, give the explicit element mapping and verify one meet and one join.

After-Topic PYQ (2025-26 Sec C Q3a — 7 Marks): Define lattice and the properties of lattice.

After-Topic PYQ (2024-25 Sec C Q3b — 7 Marks): 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.

After-Topic PYQ (2023-24 Sec C Q3b — 7 Marks): Show that (D42,/)(D_{42},/) is a lattice. Compare the distributive and complemented lattice with examples.

After-Topic PYQ (2025-26 Sec A Q1a — 2 Marks): Define a lattice and state the meaning of upper bound and lower bound in a lattice.


7. Complemented, Distributed, Modular and Complete Lattices

Complement: in a bounded lattice, bb is a complement of aa if a∧b=0a\wedge b=0 and a∨b=1a\vee b=1. A lattice is complemented if every element has at least one complement.

7.1 Comparison Table

Type Defining condition Example Non-example
Distributive a∨(b∧c)=(a∨b)∧(a∨c)a\vee(b\wedge c)=(a\vee b)\wedge(a\vee c) P(S)P(S), D42D_{42} (square-free) M3M_3 diamond, N5N_5 pentagon
Complemented every aa has bb with meet 00, join 11 P(S)P(S): complement S−AS-A; D42D_{42}: complement 42/d42/d chain 0<a<b<10<a<b<1 with no complements
Modular a⪯c⇒a∨(b∧c)=(a∨b)∧ca\preceq c\Rightarrow a\vee(b\wedge c)=(a\vee b)\wedge c every distributive lattice; subspace lattice N5N_5 pentagon
Complete every subset has a join and meet any finite lattice; P(S)P(S) infinite open-interval posets

For D42D_{42}, the complement of 6 is 7 because gcd⁡(6,7)=1\gcd(6,7)=1 and lcm⁡(6,7)=42\operatorname{lcm}(6,7)=42. Since D42≅P({2,3,7})D_{42}\cong P(\{2,3,7\}) it is distributive and complemented — a Boolean lattice. Note: distributive ⇒ modular, but not conversely; every finite lattice is complete.

Examiner Tip: The "compare distributive and complemented" answer needs one defining equation each, one example each, and the sentence "D42 is both because it is the Boolean lattice of the three prime factors 2, 3 and 7".


Solved Exam-Ready Questions

Solved Q1 (2024-25, 2025-26 Sec B Q2a — 7 Marks | Survival Mode)

Q: If RR is an equivalence relation on AA, then prove that R−1R^{-1} is also an equivalence relation on AA.

Solution:

  1. Definition of inverse: (a,b)∈R−1  ⟺  (b,a)∈R(a,b)\in R^{-1}\iff(b,a)\in R. Since RR is an equivalence relation it is reflexive, symmetric and transitive.
  2. Reflexive: for every a∈Aa\in A, (a,a)∈R(a,a)\in R; swapping the equal entries gives (a,a)∈R−1(a,a)\in R^{-1}.
  3. Symmetric: suppose (a,b)∈R−1(a,b)\in R^{-1}; then (b,a)∈R(b,a)\in R. Since RR is symmetric, (a,b)∈R(a,b)\in R, hence (b,a)∈R−1(b,a)\in R^{-1}.
  4. Transitive: suppose (a,b),(b,c)∈R−1(a,b),(b,c)\in R^{-1}; then (b,a),(c,b)∈R(b,a),(c,b)\in R. Since RR is transitive, (c,a)∈R(c,a)\in R. Inverting gives (a,c)∈R−1(a,c)\in R^{-1}.
  5. Conclusion: R−1R^{-1} satisfies reflexive, symmetric and transitive, hence it is an equivalence relation on AA. (Indeed a symmetric relation satisfies R=R−1R=R^{-1}.)

Solved Q2 (2025-26 Sec C Q3a — 7 Marks)

Q: Define lattice and the properties of lattice.

Solution:

  1. Definition: a poset (L,⪯)(L,\preceq) is a lattice if every pair a,ba,b has a least upper bound a∨ba\vee b and greatest lower bound a∧ba\wedge b.
  2. Idempotent: a∨a=aa\vee a=a, a∧a=aa\wedge a=a.
  3. Commutative: a∨b=b∨aa\vee b=b\vee a, a∧b=b∧aa\wedge b=b\wedge a.
  4. Associative: a∨(b∨c)=(a∨b)∨ca\vee(b\vee c)=(a\vee b)\vee c, similarly for meet.
  5. Absorption: a∨(a∧b)=aa\vee(a\wedge b)=a, a∧(a∨b)=aa\wedge(a\vee b)=a.
  6. Bounded case: if LL has 00 and 11, then 0⪯a⪯10\preceq a\preceq1 for all aa; further properties are distributivity, complementation and modularity.
  7. Example: in (D42,/)(D_{42},/), ∨=lcm⁡\vee=\operatorname{lcm} and ∧=gcd⁡\wedge=\gcd, so it satisfies all the above.

Solved Q3 (2024-25 Sec C Q3b — 7 Marks)

Q: 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.

Solution:

  1. Part (i): D42={1,2,3,6,7,14,21,42}D_{42}=\{1,2,3,6,7,14,21,42\} and the operation is divisibility (written / in the question).
  2. Join and meet: for x,y∈D42x,y\in D_{42}, x∨y=lcm⁡(x,y)x\vee y=\operatorname{lcm}(x,y) and x∧y=gcd⁡(x,y)x\wedge y=\gcd(x,y).
  3. Closure: since 42=2⋅3⋅742=2\cdot3\cdot7 is square-free, the lcm and gcd of any two divisors of 42 are again divisors of 42. Hence every pair has a join and meet in D42D_{42}, so it is a lattice; e.g. 6∨7=426\vee7=42, 6∧14=26\wedge14=2.
  4. Part (ii) mapping: define ϕ:D6→P({a,b})\phi:D_6\to P(\{a,b\}) by 1↦∅1\mapsto\emptyset, 2↦{a}2\mapsto\{a\}, 3↦{b}3\mapsto\{b\}, 6↦{a,b}6\mapsto\{a,b\}.
  5. Bijection: both sets have four elements and every element of D6D_6 maps to a distinct subset.
  6. Operation preservation: ϕ(gcd⁡(2,3))=ϕ(1)=∅={a}∩{b}=ϕ(2)∩ϕ(3)\phi(\gcd(2,3))=\phi(1)=\emptyset=\{a\}\cap\{b\}=\phi(2)\cap\phi(3); ϕ(lcm⁡(2,3))=ϕ(6)={a,b}={a}∪{b}=ϕ(2)∪ϕ(3)\phi(\operatorname{lcm}(2,3))=\phi(6)=\{a,b\}=\{a\}\cup\{b\}=\phi(2)\cup\phi(3).
  7. Conclusion: ϕ\phi preserves order, meet and join, so D6≅P({a,b})D_6\cong P(\{a,b\}).

Solved Q4 (2023-24 Sec C Q3a — 7 Marks)

Q: 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.

Solution:

  1. Reflexive: any string aa has the same number of zeros as itself, so (a,a)∈R(a,a)\in R for every aa. ✓
  2. Symmetric: if aa and bb have equal zero counts, then bb and aa have equal zero counts, so (b,a)∈R(b,a)\in R. ✓
  3. Transitive: if a,ba,b have equal counts and b,cb,c have equal counts, then a,ca,c have equal counts, so (a,c)∈R(a,c)\in R. ✓
  4. Equivalence: the three properties make RR an equivalence relation; its classes group strings by their number of 0s.
  5. Antisymmetry test: take a=01a=01, b=10b=10. Each contains one zero, so (a,b)∈R(a,b)\in R and (b,a)∈R(b,a)\in R, but a≠ba\ne b.
  6. Failure: antisymmetry is required for a partial order and fails here.
  7. Conclusion: RR is reflexive, symmetric and transitive — an equivalence relation — but not a partial order.

Solved Q5 (2023-24 Sec C Q3b — 7 Marks)

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

Solution:

  1. Lattice proof: D42={1,2,3,6,7,14,21,42}D_{42}=\{1,2,3,6,7,14,21,42\}; join =lcm⁡=\operatorname{lcm}, meet =gcd⁡=\gcd, and both stay inside D42D_{42} because 42 is square-free.
  2. Distributive lattice: satisfies a∨(b∧c)=(a∨b)∧(a∨c)a\vee(b\wedge c)=(a\vee b)\wedge(a\vee c). Example: P(S)P(S) with union/intersection; D42D_{42} because it is a Boolean lattice. Non-examples: M3M_3 and N5N_5.
  3. Complemented lattice: bounded and every aa has bb with a∧b=0a\wedge b=0, a∨b=1a\vee b=1. Example: in P(S)P(S), S−AS-A complements AA; in D42D_{42}, 42/d42/d complements dd (e.g., 7 complements 6).
  4. Comparison: distributivity is an equation on meet/join; complementation is an existence condition on a bounded lattice. They are independent in general (M3M_3 is complemented but not distributive).
  5. Modular note: distributive ⇒ modular; N5N_5 fails modularity.
  6. Complete note: any finite lattice, including D42D_{42}, is complete because every subset has a join and meet.
  7. Conclusion: D42D_{42} is a finite distributive, complemented (hence Boolean and modular) lattice.

Solved Q6 (2025-26 Sec A Q1a — 2 Marks)

Q: Define a lattice and state the meaning of upper bound and lower bound in a lattice.

Solution: A lattice is a poset in which every pair a,ba,b has a least upper bound (join a∨ba\vee b) and a greatest lower bound (meet a∧ba\wedge b). An upper bound of SS is uu with s⪯us\preceq u for all s∈Ss\in S; a lower bound is ℓ\ell with ℓ⪯s\ell\preceq s for all s∈Ss\in S. The least upper bound and greatest lower bound are the join and meet respectively.


Solved Q7 (2025-26 Sec A Q1b — 2 Marks)

Q: What is meant by a reflexive relation? State its basic property.

Solution: A relation RR on AA is reflexive when (a,a)∈R(a,a)\in R for every a∈Aa\in A. Its basic property is that every element is related to itself: the Boolean matrix has all diagonal entries equal to 1 and every vertex of the digraph carries a loop.


Solved Q8 (2025-26 Sec C Q3b — 7 Marks)

Q: Explain the following terms: (i) POSET (ii) Hasse diagram.

Solution:

  1. POSET: a partially ordered set (A,⪯)(A,\preceq) where ⪯\preceq is reflexive (a⪯aa\preceq a), antisymmetric (a⪯ba\preceq b and b⪯a⇒a=bb\preceq a\Rightarrow a=b) and transitive (a⪯b⪯c⇒a⪯ca\preceq b\preceq c\Rightarrow a\preceq c). Example: (D24,/)(D_{24},/).
  2. Not every pair comparable: in D24D_{24}, 2 and 3 are incomparable, hence the order is "partial", not total.
  3. Hasse diagram: representation of a finite poset by placing greater elements above smaller ones and drawing an edge only for a cover relation.
  4. Cover: yy covers xx when x≺yx\prec y and no zz satisfies x≺z≺yx\prec z\prec y.
  5. Omitted information: reflexive loops and transitive edges are omitted; their presence is implied by the diagram.
  6. Reading the diagram: if a path climbs from xx to yy, then x⪯yx\preceq y.
  7. Example: the four-level diagram of P({a,b,c})P(\{a,b,c\}) in Section 5.2 shows ∅\emptyset at the bottom and {a,b,c}\{a,b,c\} at the top.

Solved Q9 (2023-24 Sec B Q2a — 7 Marks)

Q: 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.

Solution:

  1. Elements: P(S)P(S) has 23=82^3=8 elements: ∅\emptyset; {a},{b},{c}\{a\},\{b\},\{c\}; {a,b},{a,c},{b,c}\{a,b\},\{a,c\},\{b,c\}; {a,b,c}\{a,b,c\}.
  2. Levels: bottom ∅\emptyset; first level the three singletons; second level the three 2-element subsets; top SS.
  3. Covers: ∅\emptyset is covered by each singleton; each singleton is covered by the two pairs containing it; each pair is covered by SS.
  4. Diagram: the flowchart in Section 5.2 draws exactly these 12 cover edges with no redundant transitive edges.
  5. Join: for X,Y∈P(S)X,Y\in P(S), X∨Y=X∪Y∈P(S)X\vee Y=X\cup Y\in P(S).
  6. Meet: X∧Y=X∩Y∈P(S)X\wedge Y=X\cap Y\in P(S).
  7. Conclusion: every pair has a join and meet inside P(S)P(S), so (P(S),⊆)(P(S),\subseteq) is a lattice — specifically a bounded, complemented and distributive Boolean lattice.

Solved Q10 (2024-25 Sec A Q1a — 2 Marks)

Q: 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.

Solution: A={2,3,5,7,11,13,17,19}A=\{2,3,5,7,11,13,17,19\} and B={1,3,5,7,9,11,13,15,17,19}B=\{1,3,5,7,9,11,13,15,17,19\}. Hence A∪B={1,2,3,5,7,9,11,13,15,17,19}A\cup B=\{1,2,3,5,7,9,11,13,15,17,19\} and A∩B={3,5,7,11,13,17,19}A\cap B=\{3,5,7,11,13,17,19\}. The prime 2 is absent from the intersection because it is even.


Solved Q11 (2023-24 Sec A Q1b — 2 Marks)

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

Solution:

  1. For X={∅,{∅}}X=\{\emptyset,\{\emptyset\}\} (two elements), P(X)={∅, {∅}, {{∅}}, {∅,{∅}}}P(X)=\big\{\emptyset,\ \{\emptyset\},\ \{\{\emptyset\}\},\ \{\emptyset,\{\emptyset\}\}\big\} — four subsets as 22=42^2=4.
  2. For Y={a,{a}}Y=\{a,\{a\}\} (also two elements, since a≠{a}a\ne\{a\}), P(Y)={∅, {a}, {{a}}, {a,{a}}}P(Y)=\big\{\emptyset,\ \{a\},\ \{\{a\}\},\ \{a,\{a\}\}\big\}.

Solved Q12 (2024-25 Sec C Q3a — 7 Marks | Algorithm)

Q: 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:

  1. Initial matrix: W0=[010001100]W_0=\begin{bmatrix}0&1&0\\0&0&1\\1&0&0\end{bmatrix} from the three given pairs.
  2. Rule: Wk[i,j]=Wk−1[i,j]∨(Wk−1[i,k]∧Wk−1[k,j])W_k[i,j]=W_{k-1}[i,j]\vee\big(W_{k-1}[i,k]\wedge W_{k-1}[k,j]\big).
  3. Via vertex 1 (k=1k=1): only row 3 has a 1 in column 1, so row 3 OR row 1 → W1=[010001110]W_1=\begin{bmatrix}0&1&0\\0&0&1\\1&1&0\end{bmatrix}.
  4. Via vertex 2 (k=2k=2): rows 1 and 3 have 1 in column 2; OR row 2 into them → W2=[011001111]W_2=\begin{bmatrix}0&1&1\\0&0&1\\1&1&1\end{bmatrix}.
  5. Via vertex 3 (k=3k=3): every row now has a 1 in column 3; OR row 3 into all rows → W3=[111111111]W_3=\begin{bmatrix}1&1&1\\1&1&1\\1&1&1\end{bmatrix}.
  6. Interpretation: every ordered pair of AA is reachable; the cycle 1→2→3→11\to2\to3\to1 makes the relation strongly connected, and reflexivity is added by the closure.
  7. Conclusion: 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)\}.

Solved Q13 (2024-25 Sec A Q1b — 2 Marks)

Q: 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.

Solution: ∣A×B∣=3×2=6|A\times B|=3\times2=6 ordered pairs. Each pair may be either included or excluded from a relation, so the number of relations is 26=642^6=\mathbf{64}.


Solved Q14 (2023-24 Sec A Q1a — 2 Marks)

Q: 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},/).

Solution: D24={1,2,3,4,6,8,12,24}D_{24}=\{1,2,3,4,6,8,12,24\} under divisibility. Upper bounds of {2,3,6}\{2,3,6\} are common multiples in D24D_{24}: {6,12,24}\{6,12,24\}; the least is 6, so LUB =6=6. Lower bounds are common divisors: {1}\{1\}; the greatest is 1, so GLB =1=1. Equivalently, LUB =lcm⁡(2,3,6)=6=\operatorname{lcm}(2,3,6)=6 and GLB =gcd⁡(2,3,6)=1=\gcd(2,3,6)=1.


Practice Questions (Self-Test)

  1. (2 Marks) Define a reflexive relation and give its matrix signature.
  2. (2 Marks) State the condition for a relation to be antisymmetric.
  3. (7 Marks) Prove that the inverse of a transitive relation need not be transitive unless the original is symmetric; give an example.
  4. (7 Marks) For A={1,2,3,4}A=\{1,2,3,4\}, write the Boolean matrix of R={(1,2),(2,3),(3,4)}R=\{(1,2),(2,3),(3,4)\} and find its transitive closure by Warshall's algorithm.
  5. (7 Marks) Show that (D30,/)(D_{30},/) is a lattice and find the complement of 6.
  6. (7 Marks) Draw the Hasse diagram of (D12,/)(D_{12},/) and identify join and meet of 4 and 6.
  7. (7 Marks) Explain why P(S)P(S) is distributive and complemented but the pentagon lattice is not.
  8. (7 Marks) Distinguish modular and distributive lattices with one example each.
  9. (2 Marks) How many relations are possible from a 4-element set to a 3-element set?
  10. (7 Marks) Give a recursive definition of the "ancestor of" relation and show how it generates new pairs.