U9 TOPIC 2 Flashcards

1
Q

Sets - why bother?

A

Formalises the idea of grouping objects together and viewing them as a single entity,
This way a set becomes an abstraction
Laws governing sets form part of basis for Boolean algebra
Many program languages support sets as an abstract data type

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

Terminology

A

Set is a well defined collection of objects
Objects are members or elements
A set is unordered
Each member in set can only occur
once
Set is denoted by capital letter (usually)
Member is denoted by lower case letter (usually)

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

Examples of Sets

A

Set X contains even numbers between 1-99
Set C contains the colours in the rainbow
Blue is a member of C

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

Listing each member

A

A set can be defined by listing every member
The members are enclosed by {}
The members are separated by a comma
Example - {red, orange, yellow}

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

What does this common set represent?
{0, 1, 2, …}

A

N . Set of Natural numbers

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

What does this common set represent?
{1, 2, 3, …}

A

Z^+ . Set of positive integers

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

What does this common set represent
{…, -2, -1, 0, 1, 2, 3, …}

A

Z . Set of all integers

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

What does this common set represent?
{2/11 , 4/25}

A

Q . Set of rational numbers (expressed as fractions)

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

What does this common set represent?
{2.1 , 3.14, …}

A

R . Set of real numbers

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

Is a member of Z also a member of Q?

A

Yes, because the number 12 for example, can be written as 12/1

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

Describe an empty set?

A

One with no members

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

How might the empty set be represented?

A

{ } or ∅

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

How many different empty sets are there?

A

Just one

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

How could you define the set of all girls born in 2000?

A

We need a new notation for this.

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

what does expression x ∈ S mean?

A

“x is a member of the set S”

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

What does expression x ∉ S mean?

A

“X is not a member of the set S”