Section 1.2 Sets
Subsection 1.2.1 Understanding Sets
The most basic data structure is a set. Sets are defined by what is included or what is excluded. To understand what else this implies answer the following questions.Checkpoint 1.2.1.
For each of the following determine whether order matters or not.
- Members of congress (U.S. federal)
- Finishers of the Tour de France
- Students enrolled at UAA
- People in line at a coffee kiosk
Checkpoint 1.2.2.
Given that sets indicate what is included and excluded what, if anything, is extraneous in the following sets?
- { green, gold, gold, green } (context: set of colors)
- {1,2,3,4,5,…} (context: set of integers)
- {0,1,1×1,1×0} (context: set of integers)
- students enrolled in MATH A261 (context: set of students)
Checkpoint 1.2.3.
Determine whether or not you are in the following sets.
- UAA students
- Computer Science majors
- millionaires
- musicians
Checkpoint 1.2.4.
Are all of the sets above (Checkpoint 1.2.3) well defined?
Subsection 1.2.2 Terminology
The terms collection, set, member, and element are undefined. Collection and set are synonyms. An element is an object that is included in a set. Element and member are synonyms. Because specific sets are defined by membership, sets do not have a concept of order of their elements. The following are mathematical notations for defining sets.Set | Element |
T={true,false} | true∈T |
E={n|n=2k,k∉Z} | 3∉E |
S is the set of students enrolled in MATH A261 in the fall 2019 semester |
Guido is not in S |
Definition 1.2.6. Subset.
A set A is a subset of a set B, denoted A⊂B, if and only if a∈A implies a∈B.
Subsection 1.2.3 Practice
Checkpoint 1.2.7.
Determine if the first set is a subset of the second set.
- even numbers, all integers
- vowels, letters
- colors, pastels
- chairs, people
Checkpoint 1.2.8.
Determine if the object is an element of the given set.
- apple, fruit
- spider, insects
- bird shot (shotguns), things that float
- bumble bees (living, healthy), things that can fly