121 Week 2 - Relations Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Relation

A

How elements from different (or sometimes the same) set relate to one another.
Each relation R is essentially a collection of pairs (a, b) with a specific rule or condition that dictates which pairs are included in R.

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

Binary relation

A

A relation specifically between 2 different sets.

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

n-ary relations

A

A relation between n amount of different sets where n is a specified number.

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

Ordered pair

A

A pair of objects that has a specific order. It is denoted by <a,b>

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

Ordered n-tuples

A

A set of n amount of objects that has a specific order where n is a specified number. Denoted by <x1,x2, …, xn>.
It has n objects from n sets in the n-tuple.

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

How can relations be represented?

A

Tables and Diagraphs (directed graphs)

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

Union of relations

A

Denoted R1 ∪ R2
Selects all ordered pairs that are in either R1, R2 or in both R1 and R2

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

Intersect of relations

A

Denoted R1 ∩ R2
Selects all ordered pairs that are only in both R1 and R2

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

Difference of relations

A

Denoted R1 - R2
Selects all ordered pairs that are in only R1

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

Product of relations

A

Denoted R1 x R2
Selects all possible combinations of tuples from 2 relations

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

Sub-relations

A

A relation where every ordered tuple in the new relation is also in another relation.
R1 is a sub-relation of R2 if every ordered tuple in R1 is also in R2.

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

Empty relation

A

A relation that has no elements.
Denoted by ∅

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

Symmetry

A

For every <a,b> in a relation, there must also a <b,a>

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

Transitivity

A

For any <a,b> and <b,c> in a relation, there must also be a <a,c>

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

Reflexivity

A

For any element a in a set, there must be an <a,a> in the relation

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

Irreflexivity

A

For any element a in a set, there must not be an <a,a> in the relation

17
Q

Equivalence

A

A relation is equivalent if it is symmetric, transitive and reflexive