Set Theory and Relations: Key Concepts for Discrete Mathematics

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

39 Terms

1
New cards

Sets

set is a collection of unique or distinct elements

ex :

A = { 1,2,3,5}

not ex:

B= {1,2,2,3} ; however, it is a BAG

2
New cards

Partition

a partition on a set A is a collection of A whose union is A

<p>a partition on a set A is a collection of A whose union is A</p>
3
New cards

Partition example

knowt flashcard image
4
New cards

Powerset

the set of all subsets of a set

<p>the set of all subsets of a set</p>
5
New cards

what does ∅ represent

The empty set, a set with no elements

6
New cards

What does ⊆ mean

Subset of." A⊆B means every element of A is in B.

7
New cards

What does ∈ mean in set theory

"Element of." 3 ∈ {1,2,3}

8
New cards

If A={1,2}, what is P(A) <= powerset of A

P(A)={∅,{1},{2},{1,2}}

9
New cards

What is the Cartesian Product of two sets?

set of all possible ordered pairs of A and B

an ordered pair is (x,y)

if x∈A and y∈B

AxB= {x: x= (a,b) | a∈A, b∈B,

null if A is null and/or B is null}

10
New cards

If A={1,2,3,4,5,6} what is |P(A)| =?

cardinality 2^6 = 64

11
New cards

An ordered n-tuple is

sequence of n elements written in a specific order inside parentheses:

(a_1, a_2, a_3,a_n)

The order matters.

Repetition of elements is allowed.

(a1,a2,…,an)≠(b1,b2,…,b) unless each a_n =a_n

12
New cards

Given A={1,2,3} B={4,5}

what is AXB

BXA

A×B={(1,4),(1,5),(2,4),(2,5),(3,4),(3,5)}

B×A={(4,1),(4,2),(4,3),(5,1),(5,2),(5,3)}

AxB/= BxA

order of element matters

13
New cards

if |A| =4 and |B| =2 and |C|=2

how many elements are in

|A| x |B| x |C| ?

16 elements

14
New cards

a={1,2}

b={3,4}

c={5}

axbxc?

a×b×c={(1,3,5),(1,4,5),(2,3,5),(2,4,5)}

4 elements

15
New cards

unary relation

A unary relation relates elements of A to itself and is a subset R1⊆A×A

16
New cards

How is a unary relation usually described?

By a predicate that defines the relation (e.g., <, ≤, =, >, ≥, "older than," "bigger than," etc.).

17
New cards

What is a binary relation?

A binary relation R relates elements of set A to elements of set B and is a subset R⊆A×B

18
New cards

How can a relation R be written

a set of ordered pairs

ex:

If A={1,2} and B={3,4}, then a relation R could be

R={(1,3),(2,4)}

19
New cards

domain of R

dom R={x∣x∈A and (x,y)∈R for some y∈B}

20
New cards

How are relations used in defining a hierarchy of system requirements?

Relations are used to trace requirements to functions (binary relations) of systems, subsystems, components, etc. Examples include "decompose of" and "incorporate."

21
New cards

What is the range of a relation R?

ran R={y∣y∈B and (x,y)∈R for some x∈A}

22
New cards

Let R be a relation from A to B, where

A={1,3,5,7}, B={1,3,5}

and R is defined as "x < y"

R={(1,3),(1,5),(3,5)}

cartesian product :

A×B={(1,1),(1,3),(1,5),(3,1),(3,3),(3,5),(5,1),(5,3),(5,5),(7,1),(7,3),(7,5)} ; but R only has valid pairs where the first element is less than the second

23
New cards

How is the dynamic behavior of systems modeled

function

24
New cards

What is the relationship progression between sets, relations, and functions?

Sets → Relations → Functions.

25
New cards

Define a function f:A→B

A function maps every element of A(domain) to one and only one element of B(range).

26
New cards

If (a,b)∈f(a,b)

what does that mean?

b is the image of element a under f.

27
New cards

Can a function map elements of A onto itself?

Yes, a function can map A→A

28
New cards

A function f from A to B is a relation such that... (list conditions).

1) dom f=A

- f is defined for every element of A, a∈A

- For each a∈A, there exists some b∈B such that (a,b)∈f

2) If (a,b)∈f and (a,c)∈f then b=c

- This means f is single values

<p>1) dom f=A</p><p>- f is defined for every element of A, a∈A</p><p>- For each a∈A, there exists some b∈B such that (a,b)∈f</p><p>2) If (a,b)∈f and (a,c)∈f then b=c</p><p>- This means f is single values</p>
29
New cards

What is the difference between a single-valued function and a non-single-valued relation?

- Single-valued: each a in the domain maps to exactly one b in the range.

- Not single-valued: an a in the domain maps to more than one b

30
New cards

What is the notation for the set of functions from A to B?

F(A,B)

31
New cards

What is the definition of F(A,B)

The set of all functions |F⊆A×B

<p>The set of all functions |F⊆A×B</p>
32
New cards

What is the single-valuedness condition for functions?

If (a,b)∈f(a,b) and (a,d)∈f(a,d) , then b=d

33
New cards

When is a function injective (one-to-one)?

If (a,b)∈f(a,b) and (c,b)∈f(c,b) ⇒ a=c

34
New cards

When is a function surjective (onto)?

If range(f) = B; i.e., for every b∈B there exists a∈Aa such that f(a)=b

35
New cards

When is a function bijective?

If it is both injective and surjective

36
New cards

What makes a function bijective?

The inverse f^{-1}exists, is single-valued, and maps every element of B to some element of A.

37
New cards

What is the definition of function composition?

If f∈𝓕(A,B) and g∈𝓕(B,C), then f ∘ g is defined as f∘g={(a,c):a∈A,c∈C,b∈B⇒(a,b)∈f,(b,c)∈g}

38
New cards

What does function composition mean in words?

Applying one function after another (first g, then f).

39
New cards

Let A={1,2,3},B={11,12,13},C={21,22,23}

f={(1,11),(2,12),(3,13)},

g={(11,21),(12,22),(13,23)}

what is f∘g and is the composition of functions still a function

f∘g={(1,21),(2,22),(3,23)}

yes