πŸŽ“ Computer Science & Engineering Portal

Master Engineering Disciplines with Structured Notes

Comprehensive academic lecture notes, exam-oriented unit summaries, laboratory manuals, and previous year question papers designed strictly for university students.

πŸ“‘

University Syllabi

AKTU & AICTE aligned semester guidelines.

πŸ“

Exam Question Papers

Previous 5 years solved university papers.

πŸ’‘

Lab Manuals & Viva

Practical codes with outputs & interview Qs.

Core Subjects & Units Hub

Click on any specific unit to immediately view its lecture notes below

Viewing All Lectures

Algebra of Sets

Sets under the operations of union, intersection, and complement satisfy various laws (identities) which are listed in Table 1.

Table: Law of Algebra of Sets

Idempotent Laws(a) A βˆͺ A = A(b) A ∩ A = A
Associative Laws(a) (A βˆͺ B) βˆͺ C = A βˆͺ (B βˆͺ C)(b) (A ∩ B) ∩ C = A ∩ (B ∩ C)
Commutative Laws(a) A βˆͺ B = B βˆͺ A(b) A ∩ B = B ∩ A
Distributive Laws(a) A βˆͺ (B ∩ C) = (A βˆͺ B) ∩ (A βˆͺ C)(b) A ∩ (B βˆͺ C) =(A ∩ B) βˆͺ (A ∩ C)
De Morgan's Laws(a) (A βˆͺB)c=Ac∩ Bc(b) (A ∩B)c=Acβˆͺ Bc
Identity Laws(a) A βˆͺ βˆ… = A
(b) A βˆͺ U = U
(c) A ∩ U =A
(d) A ∩ βˆ… = βˆ…
Complement Laws(a) A βˆͺ Ac= U
(b) A ∩ Ac= βˆ…
(c) Uc= βˆ…
(d) βˆ…c = U
Involution Law(a) (Ac)c = A

Table 1 shows the law of algebra of sets.

Example 1: Prove Idempotent Laws:

  1. (a) A βˆͺ A = A    

Solution:

Since, B βŠ‚ A βˆͺ B, therefore A βŠ‚ A βˆͺ A
Let   x ∈ A βˆͺ A β‡’ x ∈ A  or   x ∈ A β‡’  x ∈ A
∴ A βˆͺ A βŠ‚ A
As  A βˆͺ A βŠ‚ A and  A βŠ‚ A βˆͺ A β‡’ A =A βˆͺ A. Hence Proved.

  1. (b) A βˆ© A = A  

Solution:

Since, A ∩ B βŠ‚ B, therefore A ∩ A βŠ‚ A
Let x ∈ A β‡’ x ∈ A  and x ∈ A  
β‡’ x ∈ A ∩ A         ∴ A βŠ‚ A ∩ A
As A ∩ A βŠ‚ A and A βŠ‚ A ∩ A β‡’ A = A ∩ A. Hence Proved.

Example 2: Prove Associative Laws:

  1. (a) (A βˆͺ B) βˆͺ C = A βˆͺ (B βˆͺ C)  

Solution:

Let some x ∈ (A'βˆͺ B) βˆͺ C
   β‡’  (x ∈ A   or   x ∈ B)    or   x ∈ C
   β‡’   x ∈ A   or   x ∈ B     or  x ∈ C
  β‡’    x ∈ A   or   (x ∈ B    or  x ∈ C)
  β‡’   x ∈ A   or   x ∈ B βˆͺ C 
  β‡’   x ∈ A βˆͺ (B βˆͺ C).
Similarly, if some   x ∈ A βˆͺ (B βˆͺ C), then  x ∈ (A βˆͺ B) βˆͺ C.
Thus, any 	         x ∈ A βˆͺ (B βˆͺ C) ⇔  x ∈ (A βˆͺ B) βˆͺ C. Hence Proved.

  1. (b) (A βˆ© B) βˆ© C = A βˆ© (B βˆ© C)  

Solution:

Let some x ∈ A ∩ (B ∩ C) β‡’   x ∈ A and x ∈ B ∩ C 
   β‡’   x ∈ A  and (x ∈ B and x ∈ C)  β‡’   x ∈ A  and x ∈ B and x ∈ C
  β‡’   (x ∈ A  and x ∈ B) and x ∈ C)  β‡’   x ∈ A ∩ B and x ∈ C
  β‡’   x ∈ (A ∩ B) ∩ C.
Similarly, if some   x ∈ A ∩ (B ∩ C), then x ∈ (A ∩ B) ∩ C
Thus, any 	         x ∈ (A ∩ B) ∩ C  ⇔  x ∈ A ∩ (B ∩ C). Hence Proved.

Example3: Prove Commutative Laws

  1. (a)  A βˆͺ B = B βˆͺ A  

Solution:

To Prove 
      A βˆͺ B = B βˆͺ A
      A βˆͺ B = {x: x ∈ A or x ∈ B}
            = {x: x ∈ B or x ∈ A}   (∡ Order is not preserved in case of sets)
      A βˆͺ B = B βˆͺ A. Hence Proved.

  1. (b) A βˆ© B = B βˆ© A   

Solution:

To Prove 
      A ∩ B = B ∩ A
      A ∩ B = {x: x ∈ A and x ∈ B}
            = {x: x ∈ B and x ∈ A}   (∡ Order is not preserved in case of sets)
      A ∩ B = B ∩ A. Hence Proved.

Example 4: Prove Distributive Laws

  1. (a) A βˆͺ (B βˆ© C) = (A βˆͺ B) βˆ© (A βˆͺ C)  

Solution:

To Prove 
	     Let x ∈ A βˆͺ (B ∩ C)  β‡’ x ∈ A or  x ∈ B ∩ C 
      β‡’   (x ∈ A  or x ∈ A) or (x ∈ B and   x ∈ C)
      β‡’   (x ∈ A  or x ∈ B) and (x ∈ A  or x ∈ C)
      β‡’   x ∈ A βˆͺ B and   x ∈ A βˆͺ C
      β‡’   x ∈ (A βˆͺ B) ∩ (A βˆͺ C)
	  
Therefore, A βˆͺ (B ∩ C) βŠ‚ (A βˆͺ B) ∩ (A βˆͺ C)............(i)
Again, Let y ∈ (A βˆͺ B)  ∩ (A βˆͺ C) β‡’   y ∈ A βˆͺ B and y ∈ A βˆͺ C
      β‡’   (y ∈ A or y ∈ B) and (y ∈ A or y ∈ C)
      β‡’   (y ∈ A and y ∈ A) or (y ∈ B and y ∈ C)
      β‡’   y ∈ A    or    y ∈ B ∩ C
      β‡’   y ∈ A  βˆͺ (B ∩ C)
Therefore, (A βˆͺ B) ∩ (A βˆͺ C) βŠ‚ A βˆͺ (B ∩ C)............(ii)

Combining (i) and (ii), we get A βˆͺ (B ∩ C) = (A βˆͺ B) ∩ (A βˆͺ C). Hence Proved

  1. (b) A βˆ© (B βˆͺ C) = (A βˆ© B) βˆͺ (A βˆ© C)  

Solution:

To Prove 
      Let x ∈ A ∩ (B βˆͺ C)   β‡’   x ∈ A and x ∈ B βˆͺ C
	β‡’  (x ∈ A and x ∈ A) and (x ∈ B  or x ∈ C)
         β‡’  (x ∈ A and x ∈ B) or  (x ∈ A and x ∈ C)
         β‡’   x ∈ A ∩ B or  x ∈ A ∩ C
         β‡’   x ∈ (A ∩ B) βˆͺ (A βˆͺ C)
		 
Therefore, A ∩ (B βˆͺ C) βŠ‚ (A ∩ B) βˆͺ (A βˆͺ C)............ (i)
Again, Let  y ∈ (A ∩ B) βˆͺ (A βˆͺ C) β‡’ y ∈ A ∩ B or y ∈ A ∩ C
	  β‡’  (y ∈ A and y ∈ B) or (y ∈ A and y ∈ C)
	  β‡’  (y ∈ A or y ∈ A) and (y ∈ B or y ∈ C)
	  β‡’ y ∈ A and  y ∈ B βˆͺ C
           β‡’ y ∈ A ∩ (B βˆͺ C)
Therefore, (A ∩ B) βˆͺ (A βˆͺ C) βŠ‚ A ∩ (B βˆͺ C)............ (ii)

Combining (i) and (ii), we get A ∩ (B βˆͺ C) = (A ∩ B) βˆͺ (A βˆͺ C). Hence Proved

Example 5: Prove De Morgan's Laws

(a) (A βˆͺB)c=Ac∩ Bc

Solution:

To Prove (A βˆͺB)c=Ac∩ Bc
Let x ∈ (A βˆͺB)c  β‡’  x βˆ‰  A βˆͺ B			(∡ a ∈ A ⇔ a βˆ‰ Ac)
           β‡’  x βˆ‰  A and x βˆ‰ B
           β‡’  x βˆ‰  Ac and x βˆ‰ Bc
           β‡’  x βˆ‰  Ac∩ Bc
Therefore,  (A βˆͺB)c βŠ‚ Ac∩ Bc............. (i)
Again, let x ∈ Ac∩ Bc β‡’ x ∈ Ac and x ∈ Bc
            β‡’ x βˆ‰  A and x βˆ‰ B
            β‡’  x βˆ‰  A βˆͺ B
            β‡’ x ∈ (A βˆͺB)c
Therefore, Ac∩ Bc  βŠ‚ (A βˆͺB)c............. (ii)
Combining (i) and (ii), we get Ac∩ Bc =(A βˆͺB)c. Hence Proved.

(b) (A ∩B)c = Acβˆͺ Bc

Solution:

Let x ∈ (A ∩B)c β‡’ x βˆ‰  A ∩ B    (∡ a ∈ A ⇔ a βˆ‰ Ac)
           β‡’ x βˆ‰  A or x βˆ‰ B
           β‡’ x ∈ Ac and x ∈ Bc
           β‡’ x ∈ Acβˆͺ Bc
∴ (A ∩B)cβŠ‚ (A βˆͺB)c.................. (i)
Again, Let x ∈ Acβˆͺ Bc   β‡’ x ∈ Ac or x ∈ Bc
            β‡’ x βˆ‰  A or x βˆ‰ B
            β‡’ x βˆ‰  A ∩ B
            β‡’ x ∈ (A ∩B)c
∴ Acβˆͺ BcβŠ‚ (A ∩B)c.................... (ii)
Combining (i) and (ii), we get(A ∩B)c=Acβˆͺ Bc. Hence Proved.

Example 6: Prove Identity Laws.

  1. (a) A βˆͺ βˆ… = A  

Solution:

To Prove A βˆͺ βˆ… = A
	         Let  x ∈ A βˆͺ βˆ… β‡’ x ∈ A   or  x ∈ βˆ…
              β‡’ x ∈ A        (∡x ∈ βˆ…, as βˆ… is the null set )
        Therefore, x ∈ A βˆͺ βˆ… β‡’ x ∈ A   
  Hence,     A βˆͺ βˆ… βŠ‚ A.
We know that A βŠ‚ A βˆͺ B for any set B.
 But for B = βˆ…, we have A βŠ‚ A βˆͺ βˆ… 
From above, A βŠ‚ A βˆͺ βˆ… , A βˆͺ βˆ… βŠ‚ A β‡’ A = A βˆͺ βˆ…. Hence Proved.

  1. (b) A βˆ© βˆ… = βˆ…  

Solution:

To Prove A ∩ βˆ… = βˆ…
If  x ∈ A, then x βˆ‰  βˆ…             (βˆ΅βˆ… is a null set)
Therefore, x ∈ A, x βˆ‰  βˆ… β‡’ A ∩ βˆ… = βˆ…. Hence Proved.

  1. (c) A βˆͺ U = U  

Solution:

To Prove A βˆͺ U = U
Every set is a subset of a universal set.
   ∴   A βˆͺ U βŠ† U
    Also,   U βŠ† A βˆͺ U
Therefore, A βˆͺ U = U. Hence Proved.

  1. (d) A βˆ© U = A  

Solution:

To Prove A ∩ U = A
We know   A ∩ U βŠ‚ A................. (i)
So we have to show that A βŠ‚ A ∩ U
Let  x ∈ A β‡’ x ∈ A and x ∈ U        (∡ A βŠ‚ U so x ∈ A β‡’ x ∈ U )         
   ∴     x ∈ A β‡’ x ∈ A ∩ U
   ∴     A βŠ‚ A ∩ U................. (ii)
From (i) and (ii), we get A ∩ U = A. Hence Proved.

Example7: Prove Complement Laws

(a) A βˆͺ Ac= U

Solution:

To Prove A βˆͺ Ac= U
  Every set is a subset of U
    ∴  A βˆͺ Ac βŠ‚ U.................. (i)
We have to show that U βŠ† A βˆͺ Ac
  Let x ∈ U  β‡’  x ∈ A    or    x βˆ‰  A     
      β‡’  x ∈ A    or   x ∈ Ac    β‡’ x ∈ A βˆͺ Ac
    ∴ U βŠ† A βˆͺ Ac................... (ii)
From (i) and (ii), we get A βˆͺ Ac= U. Hence Proved.

(b) A ∩ Ac=βˆ…

Solution:

As βˆ… is the subset of every set
     ∴     βˆ… βŠ† A ∩ Ac..................... (i)
We have to show that A ∩ Ac βŠ† βˆ…
Let x ∈ A ∩ Ac  β‡’ x ∈ A and x ∈  Ac       
     β‡’ x ∈ A  and x βˆ‰  A
      β‡’ x ∈ βˆ…
    ∴      A ∩ Ac βŠ‚βˆ…..................... (ii)

From (i) and (ii), we get A∩ Ac=βˆ…. Hence Proved.

(c) Uc= βˆ…

Solution:

Let x ∈ Uc   ⇔ x βˆ‰ U ⇔ x ∈ βˆ…
    ∴ Uc= βˆ…. Hence Proved.     (As U is the Universal Set).

(d) βˆ…c = U

Solution:

Let x ∈ βˆ…c ⇔ x βˆ‰ βˆ…  ⇔ x ∈ U       (As βˆ… is an empty set)
	∴ βˆ…c = U.  Hence Proved.	

Example8: Prove Involution Law

(a) (Ac )c A.

Solution:

Let x ∈ (Ac )c ⇔ x βˆ‰ Ac⇔  x ∈ a
     ∴ (Ac )c =A. Hence Proved.

Duality:

The dual Eβˆ— of E is the equation obtained by replacing every occurrence of βˆͺ, ∩, U and βˆ… in E by ∩, βˆͺ, βˆ…, and U, respectively. For example, the dual of

  1. (U βˆ© A) βˆͺ (B βˆ© A) = A is (βˆ… βˆͺ A) βˆ© (B βˆͺ A) = A  

It is noted as the principle of duality, that if any equation E is an identity, then its dual Eβˆ— is also an identity.

Principle of Extension:

According to the Principle of Extension two sets, A and B are the same if and only if they have the same members. We denote equal sets by A=B.

  1. If A= {1, 3, 5} and B= {3, 1, 5}, then A=B i.e., A and B are equal sets.  
  2. If A= {1, 4, 7} and B= {5, 4, 8}, then Aβ‰  B i.e.., A and B are unequal sets.  

Cartesian product of two sets:

The Cartesian Product of two sets P and Q in that order is the set of all ordered pairs whose first member belongs to the set P and second member belong to set Q and is denoted by P x Q, i.e.,

  1. P x Q = {(x, y): x βˆˆ P, y βˆˆ Q}.  

Example: Let P = {a, b, c} and Q = {k, l, m, n}. Determine the Cartesian product of P and Q.

Solution: The Cartesian product of P and Q is

Algebra of Sets

Labels: ,

Discussion & Queries (<$I18NNumComments$>):

<$CommentPager$>
<$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>

<$BlogCommentBody$>

<$BlogCommentDeleteIcon$>
<$CommentPager$>