CM1020-Topic 01 - Sets-Week 1&2 - Webinar
CM1020-Topic 01 - Sets-Week 1&2 - Webinar
2 ∈𝐴 A
7 ∈ 𝐴
𝐴 ⊆ 𝐵 ⇔ 𝑖𝑓 𝑥 ∈ 𝐴 𝑡ℎ𝑒𝑛 𝑥 ∈ 𝐵
• Listing method that consists of listing all the elements of the set between the
curly brackets{ , }.
Example: All multiples of five between 1 and 21 using the listing method:
{5,10,15,20}
• Set Builder method that consists of describing common features of the set’s
elements.
Example: All multiples of five between 1 and 21 using the Builder method:
{ 5𝑘: 𝑘 ∈ ℤ 𝑎𝑛𝑑 1 ≤ 𝑘 ≤ 4 }
The Powerset of a set: Given a set S, the powerset of S, 𝒫(𝑆), is the set containing all
the subsets of S.
example:
𝒫(∅) = { ∅}
𝒫C𝒫(∅)D = {∅, {∅}}
A membership table shows all the combinations of sets an element can belong to.
Sets operations:
Set difference 𝑨 − 𝑩:
The difference of two given sets A and B is a set that contains all elements in A that are
not element of B.
𝐴 − 𝐵 = {𝑥 | 𝑥 ∈ 𝐴 𝒂𝒏𝒅 𝑥 ∉ 𝐵 }
Membership table
A B A − B
0 0 0
0 1 0
1 0 1
1 1 0
“1” is the Boolean value True, “0” is the Boolean value False
Symmetric difference 𝑨 ⊕ 𝑩:
The difference of two given sets A and B is a set that contains all elements in A or B but
not in both.
𝐴 ⊕ 𝐵 = {𝑥 | 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵 𝑩𝑼𝑻 𝑥 ∉ 𝐴 ∩ 𝐵 }
Membership table
A B A ⊕B
0 0 0
0 1 1
1 0 1
1 1 0
“1” is the Boolean value True, “0” is the Boolean value False
CM1020 - Topic 1 : Sets – Week 2- Summary Notes
" =𝑼−𝑨
𝑨
De Morgan’s law
𝑨𝟏 ∩ 𝑨𝟐 ∩ … ∩ 𝑨𝒏 = ∅
𝑨𝟏 ∪ 𝑨𝟐 ∪ … ∪ 𝑨𝒏 = 𝑨
Exercise 2 pp76
Exercise 4 pp76
Solution:
So, in this exercise, a = 1 , b = -5 , and c = 6 hence b2- 4ac= 25 – 24 = 1 which is strictly positive.
* ± √+
Hence, the solutions are : !
. In other words, using the set notation, the solutions are
{ 3, 2}.
Exercise 6 pp76
Exercise 14 pp76
Mark as true or false:
Solution:
False : b is an element of set {a,b,c} not a subset and therefore, we should write 𝑏 𝜖 {𝑎, 𝑏, 𝑐}
Exercise 16 pp76
Mark as true or false:
Solution:
False: the set {0} is not empty. It has the element 0.
Exercise 18 pp76
Solution:
False. the set of the empty element {∅} is not 0.
Exercise 20 pp76
Solution:
True . the empty set is a subset of any set. Remember ∅ = { }
Exercise 22 pp76
Solution:
True.
{ 𝑥 |𝑥 ≠ 𝑥} = { } = ∅
Exercise 24 pp76
Solution:
True. {x} is an element of {{x}, y}
Exercise 26 pp76
Solution:
True. Any set is a subset of itself.
Exercise 30 pp76
The power set of 𝜙 = { } is 𝑃(∅) = {∅}
Exercise 32 pp76
The power set of {a, b, c} is :
𝑃({𝑎, 𝑏, 𝑐}) = {∅, {𝑎}, {𝑏}, {𝑐 }, {𝑎, 𝑏}, {𝑎, 𝑐}, {𝑏, 𝑐 }, {𝑎, 𝑏, 𝑐 })
Exercise 42 pp76 :
L is a language over the set Σ = { 𝑎, 𝑏}
Find five words in this language such as :
𝐿 = { 𝑥 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 Σ 𝑠𝑢𝑐ℎ 𝑎𝑠 𝑥 𝑐𝑜𝑛𝑡𝑎𝑖𝑛𝑠 𝑒𝑥𝑎𝑐𝑡𝑙𝑦 𝑜𝑛𝑒 𝑏}
Solution:
L = {b, ab, aab, aba, baa}
Exercise 44 pp76
L is a language over the set Σ = { 𝑎, 𝑏}
Find five words in this language such as :
𝐿
= { 𝑥 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 Σ 𝑠𝑢𝑐ℎ 𝑎𝑠 𝑥 𝑐𝑜𝑛𝑡𝑎𝑖𝑛𝑠 𝑎𝑛 𝑒𝑣𝑒𝑛 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑎, 𝑠 𝑓𝑜𝑙𝑙𝑜𝑤𝑒𝑑 𝑏𝑦 𝑎𝑛 𝑜𝑑𝑑 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑏′𝑠}
Solution:
L = {aab, aabbb, aabbbbb, aaaab, aaaabbb }
Let A = { a, e, f , g, i } , B = { b, d, e, g, h } , C = { d, e, f , h, i } , and
U = { a, b, c, d, e, f, g, h, i, j, k } .
Exercise 6 pp 93
Find jjjjjjjjjjj
(𝐴 ∪ 𝐶̅ )
𝐶̅ = { a, b, c, j, k}
𝐴 ∪ 𝐶̅ = {𝑎, 𝑏, 𝑐, 𝑒, 𝑓, 𝑔, 𝑖, 𝑗, 𝑘}
jjjjjjjjjjj
(𝐴 ∪ 𝐶̅ ) = {𝑑, h}
Exercise 8 pp 93
Find 𝐴 ⊕ 𝐵
𝐴 ⊕ 𝐵 = {𝑎, 𝑓, 𝑖, 𝑏, 𝑑, ℎ}
Exercise 10 pp 93
𝐹𝑖𝑛𝑑 𝐴 − (𝐵 – 𝐶)
(𝐵 – 𝐶) = { b, g}
𝐴 − (𝐵 – 𝐶) = { 𝑎, 𝑒, 𝑓, 𝑖}
Exercise 12 pp 93
𝐹𝑖𝑛𝑑 (𝐴 ∩ 𝐵) − 𝐶
(𝐴 ∩ 𝐵) = {𝑒, 𝑔}
(𝐴 ∩ 𝐵) − 𝐶 = { 𝑔 }
Mark each as true or false, where A, B and C are arbitrary sets and the universal set.
Exercise 28 pp 93
∅ − 𝐴 = −𝐴 is false as ∅ − 𝐴 = ∅
Exercise 30 pp 93
𝐴 − 𝐴 = 0 is false as 𝐴 − 𝐴 = ∅
Exercise 32 pp 93
𝐴 − 𝐴̅ = ∅ is false as 𝐴 − 𝐴̅ = 𝐴
Exercise 58 pp 93
(𝐴 − 𝐴̅) ∪ (𝐵 − 𝐴) = C𝐴 ∩ jjjjj
(𝐴̅)D ∪ C𝐵 ∩ (𝐴̅)D = (𝐴 ∩ 𝐴) ∪ C𝐵 ∩ (𝐴̅)D
= 𝐴 ∪ C𝐵 ∩ (𝐴̅)D = (𝐴 𝑈 𝐵) ∩ C𝐴 ∪ (𝐴̅)D = (𝐴 ∪ 𝐵) ∩ 𝑈 = (𝐴 ∪ 𝐵)
Exercise 60 pp 93
(𝐴 ∪ 𝐵) ∪ jjjjjjjjjjj
(𝐴 ∩ 𝐵j ) = (𝐴 ∪ 𝐵) ∪ C 𝐴̅ ∪ 𝐵j D De Morgan’s law.
= (𝐴 ∪ 𝐵 ∪ 𝐴̅ ∪ 𝐵) Associative
= ( 𝐴 ∪ 𝐴̅ ∪ 𝐵) Commutative
= ( 𝑈 ∪ 𝐵)
= 𝑈
Done by A.Senti.