CS157a
Chris Pollett
Sep 11, 2023
The three most common operations on sets are union, intersection, and difference. For relations, we will use the following notations and definitions for their meaning:
Which of the following is true?
{('Star Wars', 1977, 124, 'sciFi', 'Fox' 12345), ('Galaxy Quest', 1999, 104, 'comedy', 'DreamWorks', 67890), ('Waynes World', 1992, 95, 'comedy', 'Paramount', 99999)}.
{('Star Wars', 1977, 124), ('Galaxy Quest', 1999, 104), ('Waynes World', 1992, 95)}.
{('sciFi'), ('comedy')}. //notice its a set, so only one copy of comedy
{('Star Wars', 1977, 124, 'sciFi', 'Fox' 12345)}.