Finite Sets Flashcards

1
Q

What are relations aka, in a database?

A

Tables

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

Relations are finite sets of tuples. What are three consequences of them being finite sets?

A
  • Order Independent
  • No duplicates
  • All tuples have the same type
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define “extensionality” as it applies to sets.

A

If two sets have the same elements; they are, by definition, the same set.

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

What are the two principles of sets?

A

No duplicates - at most one instance of an element in a given set

Order Independant - order does not contribute to the identity of a set

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

How do we write “u is an element of the set v” in notation?

A

u ∈ v

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

What is the union of two sets?

A

A set of elements in A and B, i.e. every element from each set

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

What is the intersection of two sets?

A

Elements that are in both sets A and B.

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

What is the difference of two sets?

A

The elements that are in set A but not set B

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

How do you write the empty set of type T?

A

ØT

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

When is A a subset of B?

A

When all elements in A are also elements in B

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

What is separation in sets, and how do we write it?

A

A way of picking out subsets

{x ∈ *A *• *P[x] *}

That is, those elements in A that satisfy the predicate P[x].

E.g: {x ∈ A • x>3}

means the set of elements in A that are greater than 3

Very much like predicates in C#

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

What is the powerset of a set, how do we notate it, and what is it’s type?

A

Set of all subsets of a set

P(S)* *where S is a set.

The type is Set(Set(T)) where T is the type of the elements in the set being powersetted.

E.g. S = {0, 1}

P(S) = { ØN, {0}, {1}, {0, 1} }

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