Set Theory Flashcards

1
Q

What is a set?

A

An unordered collection of objects of same type, called elements/members of set. 2 sets are equal if they contain exactly same elements, no matter the order. Size (cardinality) of set given by card (card ({2,3,5}) = 3. If set contains multiple copies of same element, only counted once. e.g. EvensToTen = {0,2,4,6,8} A set can be empty {}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do we show that something is/isn’t an element/member of a set?

A

p ∈ EvensToTen if P = 4

p ∉ EvensToTen if P = 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are 3 standard sets?

A

Z is set of all integers, N is set of all natural nums + R is set of all real nums.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are 3 ways we can manipulate sets?

A

Intersection, union + difference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the symbol for intersection + what does it do?

A

A∩B gives elements that are in both sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the symbol for union + what does it do?

A

A∪B gives elements that are in either set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the symbol for set difference + what does it do?

A

A\B gives elements in A but not B.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do we define a more complex set?

A

Start with big, easy to define set + throw away values we don’t want. Starting set called U (universal) + give conditions for values we want to keep.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give the notation for defining more complex sets.

A

{x | x ∈ U . x condition }

e.g. x | x ∈ {1,…,10} . x mod 2 = 1} = {1,3,5,7,9}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are operators for ‘and’ and ‘or’ in more complex sets?

A
and = ^ (like intersection)
or = v (like union)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the value between { and | known as?

A

It is the typical member of the set and can be an expression rather than just a single variable. If every value from universal set is to be used, the condition can be omitted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can we use multiple variables in complex set definitions?

A

Yes. Just create an expression as normal and use a comma to separate them after the |

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do we create sets where elements are pairs of numbers?

A

like this: {[x,y]|x,y ∈ {0,…,10}.x+y=10}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How would we get a set of pairs and remove duplicates?

A

{[x,y]|x,y ∈ {0,…,10}.(x+y=10) ^ x<=y}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How would we find the number of pairs which result from a set comprehension?

A

card {[d,f]|d∈D,f∈F}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What would we use to say not to include something in a set?

A

17
Q

How to we add a constraint that needs to be calculated in either order?

A

Use abs (absolute value) e.g. abs(age(p1)-age(p2)<2

18
Q

If everything in set a is in set b, what is it called?

A

A is a subset (⊆) of B.

19
Q

What is a proper subset?

A

The sets can’t be equal. ⊂. e.g. {1,2} is subset of {1,2,3} but {1,2,3} isn’t.

20
Q

What is the value of {1,2,3,4} = {1,2,3}

A

false