Elect1 (Midterm)
Elect1 (Midterm)
3) Let 𝑋, 𝑌 and 𝑍 be subsets of 𝑈. Construct a Venn diagram described by the following conditions: (2 points each)
3.1) Sets 𝑋 and 𝑌 are disjoint. Set 𝑍 is a proper subset of 𝑌. There are elements in 𝑈 that do not belong either to
𝑋, 𝑌 or 𝑍.
𝑈
𝑌
𝑋
𝑍
3.2) Set 𝑍 is a proper subset of 𝑋. Sets 𝑋 and 𝑌 have elements in common but they are not a subset of one
another. Sets 𝑌 and 𝑍 have elements in common but they are not a subset of one another. Finally, there are
elements in 𝑈 that do not belong either to 𝑋, 𝑌 or 𝑍.
𝑈
𝑋
𝑍 𝑌
4) Check the three (3) properties satisfying the following Venn diagrams for sets A, B, and C. Each item will have 3
answers. (3 points each)
4.1) 4.3)
4.2)
5) Using the laws of Boolean algebra, determine whether or not the following statements are true. Justify your
answer. (4 points each)
5.1) (𝐴 − 𝐵) ∪ (𝐴 − 𝐶) = 𝐴 − (𝐵 − 𝐶)
(1) (𝐴 − 𝐵) ∪ (𝐴 − 𝐶) Given
(2) (𝐴 ∩ 𝐵′ ) ∪ (𝐴 ∩ 𝐶 ′ ) 1, Difference
(3) 𝐴 ∩ (𝐵′ ∪ 𝐶 ′ ) 2, Distributive
(4) 𝐴 ∩ (𝐵 ∩ 𝐶)′ 3, De Morgan’s law
(5) 𝐴 − (𝐵 ∩ 𝐶) 4, Difference
(6) 𝐴 − (𝐵 − 𝐶 ′ ) 5, Difference
Another solution:
(1) 𝐴 − (𝐵 − 𝐶) Given
(2) 𝐴 ∩ (𝐵 ∩ 𝐶 ′ )′ 1, Difference
(3) 𝐴 ∩ (𝐵′ ∪ 𝐶) 2, De Morgan’s law; Double Complement
(4) (𝐴 ∩ 𝐵′ ) ∪ (𝐴 ∩ 𝐶) 3, Distributive
(5) (𝐴 − 𝐵) ∪ (𝐴 − 𝐶 ′ ) 4, Difference
5.2) (𝐶 − 𝐴) − (𝐵 − 𝐴) = 𝐶 − (𝐴 ∪ 𝐵)
(1) (𝐶 − 𝐴) − (𝐵 − 𝐴) Given
(2) (𝐶 ∩ 𝐴′) ∩ (𝐵 ∩ 𝐴′ )′ 1, Difference
(3) (𝐶 ∩ 𝐴′) ∩ (𝐵′ ∪ 𝐴) 2, De Morgan’s law, Double Complement
Another solution:
(1) 𝐶 − (𝐴 ∪ 𝐵) Given
(2) 𝐶 ∩ (𝐴 ∪ 𝐵)′ 1, Difference
(3) 𝐶 ∩ (𝐴′ ∩ 𝐵′ ) 2, De Morgan’s law
5.3) 𝐴 ∩ (𝐵 − 𝐶) = (𝐴 ∩ 𝐵) − 𝐶
(1) 𝐴 ∩ (𝐵 − 𝐶) Given
(2) 𝐴 ∩ (𝐵 ∩ 𝐶 ′ ) 1, Difference
(3) (𝐴 ∩ 𝐵) ∩ 𝐶′ 2, Associative
(4) (𝐴 ∩ 𝐵) − 𝐶 3, Difference
Another Solution:
(1) (𝐴 ∩ 𝐵) − 𝐶 Given
(2) (𝐴 ∩ 𝐵) ∩ 𝐶′ 1, Difference
(3) 𝐴 ∩ (𝐵 ∩ 𝐶 ′ ) 2, Associative
(4) 𝐴 ∩ (𝐵 − 𝐶) 3, Difference
5.4) 𝐴 − (𝐴′ − 𝐵) = 𝐴 ∩ (𝐴 ∪ 𝐵)
Another solution:
(1) 𝐴 ∩ (𝐴 ∪ 𝐵) Given
(2) 𝐴 − (𝐴 ∪ 𝐵)′ 1, Difference
(3) 𝐴 − (𝐴′ ∩ 𝐵′ ) 2, De Morgan’s law
(4) 𝐴 − (𝐴′ − 𝐵) 3, Difference