Unit 2 Sets & Functions Flashcards

(52 cards)

1
Q

What defines a valid function?

A

A valid function is a set of pairs where each input x:

  1. Appears exactly once
  2. Has exactly one output y.

Valid function example: f = {(1,a), (2,b), (3,a)}.

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

Why is function invalid?

The set: {(1,a), (1,b)}

A

The set {(1,a), (1,b)} is invalid because the input 1 has two outputs.

This fails uniqueness.

This violates the definition of a function.

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

Totality requires every input in X to have an output.

How is the set {(1,a), (3,a)} invalid?

suppose the inputs are 1,2,3

A

The set {(1,a), (3,a)} is invalid because the input 2 has no output.

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

How is a function defined mathematically?

A
  • A function f that maps elements of a set X to elements of a set Y is a subset of X×Y such that for every x∈X, there is exactly one y∈Y for which (x,y)∈f.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does f:X→Y signify?

A

It signifies that f is a function from set X to set Y.

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

What is the domain of a function?

A

The domain of a function is the set X from which inputs are taken.

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

What is the target of a function?

A

The target of a function is the set Y to which outputs are mapped.

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

What is an injective function?

A

A function f:X → Y is injective if there’s not a domain for every single y

Too little domains with an overabundant amount of outputs

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

What is a surjective function?

A

A function f:X → Y is surjective if for every y∈Y, there exists an x∈X such that f(x)=y. Too many domain is not capable of connecting to an output.

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

True or False: A function can have multiple outputs for a single input.

A

False.

A function must map each input to exactly one output.

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

How many values can 1 bit represent?

A

1 bit can represent 2 values (0 or 1).

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

Fill in the blank: Each bit can hold a value of either 0 or 1, meaning that with n bits, you can represent _______ different values.

A

2^n

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

What is a bijective function?

A

A function that is both one-to-one and onto.

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

What is a requirement for every block Ai in a universal set U?

A

Every block Ai has at least one element

This ensures that the blocks are nonempty.

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

What does it mean for blocks to be pairwise disjoint?

A

No element is in two different blocks

This prevents overlap between blocks.

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

What is the covering condition for a universal set U?

A

For every x ∈ U, there is exactly one Ai that contains x

This ensures that all elements of U are accounted for.

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

What is an equivalence relation in the context of partitioning a set?

A

A relation that groups elements into equivalence classes as blocks

This is a powerful method for constructing partitions.

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

What is a method to avoid endpoint overlap in intervals on ℝ?

A

Use half-open intervals like (-∞, a), {a}, (a, ∞)

This ensures every real number is included without overlap.

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

How can parity partition ℤ?

A

Parity (even/odd) partitions ℤ perfectly

This creates two distinct groups.

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

How are prime, composite, and 1 classified in partitioning?

A

1 is neither prime nor composite; give {1} its own block

Special attention is needed for the classification of 2.

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

What is a clean partition for ℝ?

A

(-∞, 0), {0}, (0, ∞)

This clearly separates negative, zero, and positive numbers.

22
Q

How can strings be partitioned by length?

A

{strings of length n} for n ≥ 0; include the empty string as length 0 if U includes it

This categorizes strings based on their length.

23
Q

What is a common way to partition product sets like ℝ²?

A

Quadrants plus axes: Q1, Q2, Q3, Q4, x-axis{0}, y-axis{0}, and {origin}

Each boundary must be its own block to prevent overlap.

24
Q

What is a common pitfall regarding boundary overlaps?

A

Closed/closed at the same endpoint causes intersection

This can lead to elements being counted in multiple blocks.

25
How can one quickly prove that a set covers U?
Do a short case split that exhausts U ## Footnote Examples include classifying integers or real numbers.
26
What is a helpful visual representation for ℝ?
A number line with open/closed endpoints ## Footnote This aids in understanding intervals and boundaries.
27
28
What is the order of subsets for number types
29
Express the following sets using the roster method. Express the elements as strings, not **n**-tuples. ## Footnote [Notes 2226](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
To solve this, you need to find the elements of each set individually and then combine them using the union operation. ## Footnote [link](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
30
# What is the criteria of the set builder form? Part-C; it's asking for "*the set of all strings* of the form `0x`, where `x` is an element of set `B`." But this means what? ## Footnote Part (b) asks you to *find the elements of this set*: `B` [Notes 2226](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
Part (c) uses set-builder notation to define a new set by saying, "take the elements from a set called B, and for each element, prefix it with a '0'" ## Footnote [link](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
31
Express the following sets using the roster method. Express the elements as strings, not **n**-tuples.
To solve this, you need to find the elements of each set individually and then combine them using the union operation. ## Footnote [link](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
32
# Explain this image
33
# Explain this image How would you find the elements?
|{0,1}^2| = 2^2 = 4 | {"00","01","10","11"} ## Footnote [link](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
34
# Explain this image How would you find the elements?
|{0,1}^0| = 2^0 = { λ} | { λ} or {"_"} ## Footnote [link](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
35
# Explain this image How would you find the elements?
|{0,1}^1| = 2^1 = { "0","1"} ## Footnote [link](https://app.milanote.com/1V6e3k1p7VQc6z?p=aW19ZhLbkFS)
36
# Specify each set in roster notation Express elements of Cartesian products as strings. `A X (B∩C)`
37
# Specify each set in roster notation Express elements of Cartesian products as strings. `(C X B) ∩ (B X C)`
38
# Specify each set in roster notation Express elements of Cartesian products as strings. `P(A X B)`
39
Solve part (a) by finding the Cartesian product and expressing the elements as strings.
40
Solve part (B) by finding the Cartesian product and expressing the elements as strings.
41
# Sets & Subsets Finish describing the methods of notation.
42
# Sets & Subsets Finish describing the methods of notation.
43
# Power sets Consider the set A = {a, {b}, c}. What is the power set of A?
`{∅ , {a}, {a,{b}}, {{b}}, {c,a}, {{b},c}, {c}, {a,{b},c}}`
44
# Explain the following Why is the statement regarding set `A`, `B`, & `C` Incorrect? If A ≠ B and B ≠ C, then A ≠ C
1. This statement is false because it assumes transitive inequality. 2. For example, `A` could be` {1, 2}`, `B` could be `{2, 3}` and `C` could be `{1, 3}` where `A ≠ B` , `B ≠ C`, but `A = C`
45
# Explain the following Why is the statement regarding set `A`, `B`, & `C` Incorrect? If A ∈ B and B ⊄ C, then A ∉ C
1. `A` could still be in `C` as an element, but `B` fails to be a subset of `C`. There's no guarantee `A ∉ C`.
46
# Explain the following Why is the statement regarding set `A`, `B`, & `C` correct? If A ⊂ B and B ⊆ C, then A ⊂ C
1. This is the correct and true statement due to the transitive property of subsets. 2. If `A` is a subset of `B` and `B` is a subset of `C`, then `A` must be a subset of `C`.
47
# Explain the following Why is the statement regarding set `A`, `B`, & `C` Incorrect? If A ⊆ B and B ⊆ A, then A - B = A
This statement is false because if `A ⊆ B` and `B⊆A`, then `A = B`. Therefore, `A-B = ∅` (an empty set).
48
# Explain if the response is true or not. Yes, `B1 U B2 U B3 = Z+`.
49
A **collection of sets** forms a partition *of a universal set* if it meets BOTH of these conditions:
1. Disjoint Condition: All the sets are "mutually disjoint," meaning *no two sets have any elements* in common (their intersection is the empty set, ∅. 2. Union Condition: The union (combination) of all the sets must equal the entire universal set.
50
# Explain if the response is true or not. No, `B1` and `B3` are not disjoint.
51
# Function composition & Application For `X = {1, 2, 3}` and `Y = {a, b, c}`, functions `f: X → Y` and `g: Y → X` are defined, respectively: what is `f(g(a))` ?
`c`
52
# Function composition & Application For `X = {1, 2, 3, 4}` and `Y = {a, b, c, d}`, functions `f: X → Y` and `g: Y → X` are defined, respectively: what is `g(f(3))` ?
`2`