Docsity

Introduction to Set Theory: Definitions, Operations, and Applications, Summaries of Computer science

Toggle sidebar
bg1
1.1
Set
An unordered collection of well-defined distinct objects is known as a set. The word well-defined
refers to a specific property which makes it easy to identify whether the given object belongs to the
set
or
not.
The
word
‘distinct’
means
that
the
objects
of
a
set
must
be
all
different.
Example:
1.
The collection of children in class VII whose weight exceeds 35 kg represents a set.
2.
The collection of all the intelligent children in class VII does not represent a set because the
word intelligent is vague. What may appear intelligent to one person may not appear the
same to another person.
Elements of Set:
The different objects that form a set are called the elements of a set. The elements of the set are written
in any order and are not repeated. Elements are denoted by small letters.
Notation of a Set:
A set is usuall y den oted by capital letters and elements are denoted by smal l lett ers
If x is an element of set A, then we say x ϵ A.
[x belongs to A]
If x is not an element of set A, then we say x ∉ A. [x does not belong to A]
Example
The collection of vowels in the English alphabet.
Solution:
Let us denote the set by V, then the elements of the set are:
a, e, i, o, u or we can say, V = {a, e, i, o, u} .
We say a ∈ V, e ∈ V, i ∈ V, o ∈ V, and u ∈ V.
1.2
How to state that whether the objects form a set or not?
A collection of lovely flowers’ is not a set, because the objects (flowers) to be included are not well-
defined.
Reason: The word “lovely” is a relative term. What may appear lovely to one person may not be so
to the other person.
A collection of “Yellow flowers” is a set, because every yellow flower will be included in this set i.e., the
objects of the set are well-defined.
A group of “Young singers” is not a set, as the range of the ages of yo ung singers is not given and so
it can’t be decided which singer is to be considered young i.e., the objects are not well-defined.
A group of “Players with ages between 18 years and 25 years” is a set, because the range of ages of
the player is given and so it can easily be decided which player is to be included and which is to be
excluded. Hence, the objects are well-defi ned.
Unit 1: Sets Functions and Relations
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32

Partial preview of the text

Download Introduction to Set Theory: Definitions, Operations, and Applications and more Summaries Computer science in PDF only on Docsity!

1.1 Set

An unordered collection of well-defined distinct objects is known as a set. The word well-defined refers to a specific property which makes it easy to identify whether the given object belongs to the set or not. The word ‘distinct’ means that the objects of a set must be all different.

Example:

  1. The collection of children in class VII whose weight exceeds 35 kg represents a set.
  2. The collection of all the intelligent children in class VII does not represent a set because the word intelligent is vague. What may appear intelligent to one person may not appear the same to another person.

Elements of Set:

The different objects that form a set are called the elements of a set. The elements of the set are written in any order and are not repeated. Elements are denoted by small letters.

Notation of a Set:

A set is usually denoted by capital letters and elements are denoted by small letters

If x is an element of set A, then we say x ϵ A. [x belongs to A]

If x is not an element of set A, then we say x ∉ A. [x does not belong to A]

Example

The collection of vowels in the English alphabet.

Solution:

Let us denote the set by V, then the elements of the set are:

a, e, i, o, u or we can say, V = {a, e, i, o, u}.

We say a ∈ V, e ∈ V, i ∈ V, o ∈ V, and u ∈ V.

1.2 How to state that whether the objects form a set or not?

A collection of lovely flowers’ is not a set, because the objects (flowers) to be included are not well- defined.

Reason: The word “lovely” is a relative term. What may appear lovely to one person may not be so

to the other person.

A collection of “Yellow flowers” is a set, because every yellow flower will be included in this set i.e., the objects of the set are well-defined.

A group of “Young singers” is not a set, as the range of the ages of young singers is not given and so it can’t be decided which singer is to be considered young i.e., the objects are not well-defined.

A group of “Players with ages between 18 years and 25 years” is a set, because the range of ages of the player is given and so it can easily be decided which player is to be included and which is to be excluded. Hence, the objects are well-defined.

Unit 1: Sets Functions and Relations

Notes

Now we will learn to state which of the following collections are set.

State, give a reason, whether the following objects form a set or not:

(i) All problems of this book, which are difficult to solve. (ii) All problems of this book, which are difficult to solve for Aaron. (iii) All the objects are heavier than 28 kg.

Solution:

(i) The given objects do not form a set.

Reason: Some problems may be difficult for one person but may not be difficult for some

other persons, that is, the given objects are not well-defined. Hence, they do not form a set. (ii) The given objects form a set.

Reason: It can easily be found that which are difficult to solve for Aaron and which are not

difficult to solve for him. Hence, the objects form a set. (iii) The given objects form a set.

Reason: Every object can be compared, in weight, with 28 kg. Then it is very easy to select

objects which are heavier than 28 kg i.e., the objects are well-defined. Hence, the objects form a set.

The members (objects) of each of the following collections form a set:

(i) Students in a classroom

(ii) Books in your school-bag

(iii) Counting numbers between 5 to 15

(iv) Students of your class, which are taller than you and so on.

1.3 What are the elements of a set or members of a set?

The objects used to form a set are called its element or its members.

Generally, the elements of a set are written inside a pair of curly braces and are represented by commas. The name of the set is always written in capital letters.

Example

(i) A = {v, w, x, y, z}

Here ‘A’ is the name of the set whose elements (members) are v, w, x, y, z.

If a set A = {3, 6, 9, 10, 13, 18}. State whether the following statements are ‘true’ or ‘false’:

i) 7 ∈ A ii) 12 ∉ A iii) 13 ∈ A iv) 9, 10 ∈ A v) 10, 13, 14 ∈ A

Solution:

(i) 7 ∈ A. False, since element 7 does not belongs to the given set A. (ii) 12 ∉ A. True, since element 12 does not belongs to the given set A. (iii) 13 ∈ A. True, since element 13 belongs to the given set A. (iv) 9, 10 ∈ A. True, since the elements 9 and 10 both belong to the given set A. (v) 10, 13, 14 ∈ A. False, since element 14 does not belong to the given set A.

N = {1, 2, 3,…}, the set of natural numbers W = {0, 1, 2, 3,…}, the set of whole numbers Z = {…,−2,−1, 0, 1, 2,…}, the set of all integers Z+^ = {1, 2, 3,…}, the set of all positive integers Q = {p∕q ∣ p ∈ Z, q ∈ Z, and q ≠ 0}, the set of all rational numbers R, the set of all real numbers R+, the set of all positive real numbers C, the set of all complex numbers.

Unit 01: Set

Notes

(iii) The set of all odd numbers less than 9. Therefore, X = {1, 3, 5, 7} → Roster Form (iv) The set of all-natural number which divide 12. Therefore, Y = {1, 2, 3, 4, 6, 12} → Roster Form (v) The set of all letters in the word MATHEMATICS. Therefore, Z = {M, A, T, H, E, I, C, S} → Roster Form (vi) W is the set of the last four months of the year. Therefore, W = {September, October, November, December} → Roster Form

The order in which elements are listed is immaterial but elements must not be repeated.

Set builder form/Rule form:

In this, a rule, or the formula, or the statement is written within the pair of brackets so that the set is well defined. In the set builder form, all the elements of the set must possess a single property to become a member of that set.

In this form of representation of a set, the element of the set is described by using a symbol ‘x’ or any other variable followed by a colon The symbol ‘:‘ or ‘|‘ is used to denote such that and then we write the property possessed by the elements of the set and enclose the whole description in braces. In this, the colon stands for ‘such that’ and braces stand for ‘set of all.

Example:

(i) Let P is a set of counting numbers greater than 12;

The set P in set-builder form is written as :

P = {x: x is a counting number and greater than 12}

or

P = {x | x is a counting number and greater than 12}

This will be read as, 'P is the set of elements x such that x is a counting number and is greater than 12'.

The symbol ':' or '|' placed between 2 x's stands for such that.

(ii) Let A denote the set of even numbers between 6 and 14. It can be written in the set-builder form as;

A = {x|x is an even number, 6 < x < 14} or A = {x: x ∈ P, 6 < x < 14 and P is an even number}

(iii) If X = {4, 5, 6, 7}. This is expressed in roster form.

Let us express in set builder form. X = {x: x is a natural number and 3 < x < 8}

(iv) The set A of all odd natural numbers can be written as

A = {x: x is a natural number and x = 2n + 1 for n ∈ W}

Express the set of integers lying between -2 and 3. using the three methods of representation of a set:

Description/Statement form : a set of integers lying between -2 and 3.

Tabulation/Roster form: X ={-1, 0, 1, 2}

Discrete Structures

Rule/Set builder form: X = {x : x ∈ I, -2 < x < 3}.

or X = { x : x is a set of integers lying between -2 and 3}.

1.6 Types of sets:

The different types of sets are explained below with examples.

Empty Set or Null Set:

A set that does not contain any element is called an empty set, or the null set, or the void set and it is denoted by ∅ and is read as phi. In roster form, ∅ is denoted by {}. An empty set is a finite set, since the number of elements in an empty set is finite, i.e., 0.

Example:

(i) The set of whole numbers less than 0. Clearly, there is no whole number less than

  1. Therefore, it is an empty set. (ii) N = {x : x ∈ N, 3 < x < 4} (iii) A = {x : 2 < x < 3, x is a natural number} Here A is an empty set because there is no natural number between 2 and 3. (iv) B = {x : x is a composite number less than 4}. Here B is an empty set because there is no composite number less than 4.

Notes

(i) ∅ ≠ {0} ∴ has no element. (ii) {0} is a set that has one element 0. (iii) The cardinal number of an empty set, i.e., n(∅) = 0

Singleton Set:

A set that contains only one element is called a singleton set.

Example:

(i) A = {x : x is neither prime nor composite} It is a singleton set containing one element, i.e., 1. (ii) B = {x : x is a whole number, x < 1}. This set contains only one element 0 and is a singleton set. (iii) Let A = {x: x ∈ N and x² = 4} Here A is a singleton set because there is only one element 2 whose square is 4. (iv) Let B = {x : x is a even prime number}. Here B is a singleton set because there is only one prime number which is even, i.e., 2.

Finite Set:

A set that contains a definite number of elements is called a finite set. An empty set is also called a finite set.

Example:

(i) The set of all colors in the rainbow. (ii) N = {x : x ∈ N, x < 7} (iii) P = {2, 3, 5, 7, 11, 13, 17,.......... 97}

Discrete Structures

Notes

  • A ⊆ B means A is a subset of B or A is contained in B.
  • B ⊆ A means B contains A.

Example:

Let A = {2, 4, 6} , B = {6, 4, 8, 2}

Here A is a subset of B. Since, all the elements of set A are contained in set B.

But B is not the subset of A. Since, all the elements of set B are not contained in set A.

Notes (i) If set A is a subset of set B and B is a subset of A, then A = B, i.e., they are equal sets.

(ii) Every set is a subset of itself.

(iii) Null set or ∅ is a subset of every set.

(iv) The set N of natural numbers is a subset of the set Z of integers and we write N ⊆ Z.

Example:

Let A = {2, 4, 6}

B = {x : x is an even natural number less than 8}

Here A ⊆ B and B ⊆ A.

Hence, we can say A = B

Super Set:

Whenever a set A is a subset of set B, we say the B is a superset of A and we write, B ⊇ A.

The symbol ⊇ is used to denote ‘is a superset of’

Example:

A = {a, e, i, o, u}

B = {a, b, c, ................. , z}

Here A ⊆ B i.e., A is a subset of B but B ⊇ A i.e., B is a superset of A

(So, A ⊆ B and B ⊇ A are equivalent statements.)

Proper Subset:

If A and B are two sets, then A is called the proper subset of B if A ⊆ B but B ⊇ A i.e., A ≠ B. The symbol ‘⊂’ is used to denote proper subset. Symbolically, we write A ⊂ B. Or if set B contains at least one element that is not present in set A.

Example:

A = {1, 2, 3, 4}. Here n(A) = 4

B = {1, 2, 3, 4, 5}. Here n(B) = 5

Unit 01: Set

Notes

We observe that all the elements of A are present in B but the element ‘5’ of B is not present in A. So, we say that A is a proper subset of B. Symbolically, we write it as A ⊂ B.

Notes

(i) No set is a proper subset of itself.

(ii) Null set or ∅ is a proper subset of every set.

Example:

A = {p, q, r}

B = {p, q, r, s, t}

Here A is a proper subset of B as all the elements of set A are in set B and also A ≠ B.

Power Set:

The collection of all subsets of set A is called the power set of A. It is denoted by P(A). In P(A), every element is a set.

Example:

If A = {p, q} then all the subsets of A will be

P(A) = {∅, {p}, {q}, {p, q}}

Number of elements of P(A) = n[P(A)] = 4 = 2^2

What is the power set of the empty set? What is the power set of the set {∅}? Solution: The empty set has exactly one subset, namely, itself. Consequently, P(∅) = {∅}.

The set {∅} has exactly two subsets, namely, ∅ and the set {∅} itself. Therefore, P({∅}) = {∅, {∅}}.

In general, n[P(A)] =2m^ where m is the number of elements in set A.

Universal Set:

A set that contains all the elements of other given sets is called a universal set. The symbol for denoting a universal set is ∪.

Example:

(i) If A = {1, 2, 3}

B = {2, 3, 4}

C = {3, 5, 7}

then U = {1, 2, 3, 4, 5, 7}

[Here A ⊆ U, B ⊆ U, C ⊆ U and U ⊇ A, U ⊇ B, U ⊇ C]

Figure 3: Venn diagram for disjoint sets

Unit 01: Set

In these diagrams, the universal set is represented by a rectangular region and its subsets by circles inside the rectangle. We represented disjoint sets by disjoint circles and intersecting sets by intersecting circles.

1.9 Operations on sets:

When two or more sets combine together to form one set under the given conditions, then operations on sets are carried out.

Union of sets

Let A and B be any two sets. The union of A and B is the set that consists of all the elements of A and all the elements of B, the common elements being taken only once.

The symbol ‘∪’ is used to denote the union. Symbolically, we write A ∪ B and usually read as ‘A union B’.

Example :

(i) Let A = { 2, 4, 6, 8} and B = { 6, 8, 10, 12}. Find A ∪ B?.

Solution: A ∪ B = {2, 4, 6, 8, 10, 12} Note that the common elements 6 and 8 have been taken only once while writing A ∪ B.

(ii) Let A = { a, e, i, o, u } and B = { a, i, u }. Show that A ∪ B = A

Solution: We have, A ∪ B = { a, e, i, o, u } = A. This example illustrates that the union of sets A and its subset B is the set A itself, i.e., if B ⊂ A, then A ∪ B = A.

The union of two sets A and B is the set C which consists of all those elements which are either in A or in B (including those which are in both).

In symbols, we write. A ∪ B = { x: x ∈ A or x ∈ B } The union of two sets can be represented by a Venn diagram as shown in Figure 2. The shaded portion in Figure 2 represents A ∪ B.

The intersection of sets:

The intersection of sets A and B is the set of all elements which are common to both A and B.

The symbol ‘∩’ is used to denote the intersection. The intersection of two sets A and B is the set of all those elements which belong to both A and B.

Symbolically, we write A ∩ B = {x: x ∈ A and x ∈ B}.

Example:

(i) Let A = { 2, 4, 6, 8} and B = { 6, 8, 10, 12}. Find A ∩ B?.

Solution: We see that 6, 8 are the only elements that are common to both A and B. Hence A ∩ B = { 6, 8 }.

(ii) Let A = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and B = { 2, 3, 5, 7 }. Find A ∩ B and hence show that

A ∩ B = B.

Solution: We have A ∩ B = { 2, 3, 5, 7 } = B. We note that B ⊂ A and that A ∩ B = B. Figure 4 indicates the intersection of A and B.

Unit 01: Set

Notes

Symmetric difference:

The symmetric difference using the Venn diagram of two subsets A and B is a subset of U, denoted by A △ B, and is defined by

A △ B = (A – B) ∪ (B – A).

Let A and B are two sets. The symmetric difference of two sets A and B is the set

(A – B) ∪ (B – A) and is denoted by A △ B.

Thus, A △ B = (A – B) ∪ (B – A) = {x : x ∉ A ∩ B}

or, A △ B = {x : [x ∈ A and x ∉ B] or [x ∈ B and x ∉ A]}

Figure 6: Venn diagram for symmetric difference

The shaded part of the given Venn diagram represents A △ B.

A △ B is the set of all those elements which belong either to A or to B but not to both.

A △ B is also expressed by (A ∪ B) - (B ∩ A).

It follows that A △ ∅ = A for all subset A,

A △ A = ∅ for all subset A.

Example:

If A = {1, 2, 3, 4, 5, 6, 7, 8} and B = {1, 3, 5, 6, 7, 8, 9}.

then A – B = {2, 4}, B – A = {9} and A △ B = {2, 4, 9}.

Discrete Structures

The complement of set A

Let U be the universal set. The complement of the set A, denoted by A', is the complement of A with respect to U. Therefore, the complement of the set A is U − A.

A' = { x ∈ U ∣ x ∉ A }.

Example:

(i) Let A = { a, e, i, o, u } (where the universal set is the set of letters of the English alphabet). Then A' = {b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y, z}.

(ii) Let A be the set of positive integers greater than 10 (with universal set the set of all positive integers). Then A' = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}.

Note : The difference of A and B can be express as the intersection of A and the complement of B. That is, A − B = A ∩ B'.

1.10 Laws of set theory (Set Identities):

Let A, B, and C are three finite subsets of universal set U. Then

= (B' ∪ C') ∩ A' by the commutative law for intersections = (C' ∪ B') ∩ A' by the commutative law for unions.

Example: Use a membership table to show that A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).

Prove that: (A ∪ B)' = A' ∩ B' (By student)

CamScanner

CamScanner

CamScanner