CS330: Sets by Stephen Marz

Basic

Introduction
Symbols
Functions

Union
Intersection
Negation
Subscription

Advanced

Multi-Sets

Set Theory Functions: UNION

So how do we add two sets together?

Adding two sets together is called uniting them together and is represented by the 'U' union operator.

For example: Let S = {b,c,d} and J = {a}, what is S U J?

S UNION J = {a,b,c,d}
S union J

What if they contain comment symbols?
For example: S = {b,c,d} and J = {b,c,e}.
Each symbol is only counted once, so S U J = {b,c,d,e}.