Math Fundamentals18 sections · 814 units
Open in Course

Vocabulary - Intersection

Common elements only

The intersection of sets AA and BB is the set of elements that belong to both AA and BB. You write A∩BA \cap B.

For example, if A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}, then A∩B={2,3}A \cap B = \{2, 3\}. Only 22 and 33 appear in both.

If two sets share no elements, their intersection is ∅\emptyset. In code, intersection finds common items between two collections.