Union & Intersection

CharliePark·2020년 9월 3일

TIL

목록 보기
22/67

Venn Diagram

use to show relationships between items

 

Set Operations (Union & Intersection)

A∪B={x ∣ x∈A or x∈B}A \cup B = \{x\ |\ x \in A\ or\ x \in B\} : Union

A∩B={x ∣ x∈A and x∈B}A \cap B = \{x\ |\ x \in A\ and\ x \in B\} : Intersection

e.g. A={1,2,3,4}, B={3,4,5,6}, then, A∪B={1,2,3,4,5,6}, A∩B={3,4}e.g.\ A = \{1, 2, 3, 4\},\ B = \{3, 4, 5, 6\},\ then,\ A \cup B = \{1, 2, 3, 4, 5, 6\},\ A \cap B = \{3, 4\}

 

 

Properties of Union and Intersection

A∪B=B∪A, A∩B=B∩AA \cup B = B \cup A,\ A \cap B = B \cap A : Commutative Law

(A∪B)∪C=A∪(B∪C), (A∩B)∩C=A∩(B∩C)(A \cup B) \cup C = A \cup (B \cup C),\ (A \cap B) \cap C = A \cap (B \cap C) : Associative Law

A∪(B∩C)=(A∪B)∩(A∪C), A∩(B∪C)=(A∩B)∪(A∩C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C),\ A \cap (B \cup C) = (A \cap B) \cup (A \cap C) : Distributive Law

A∪{}=A, A∩{}={}A \cup \{ \} = A,\ A \cap \{ \} = \{ \}

A∪U=UA \cup U = U

A∪A=A,A∩A=AA \cup A = A, A \cap A = A : Idempotent Law

0개의 댓글