Functions Flashcards

1
Q

What is a function?

A

A function is something that takes in an input and returns an output.

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

What is another name for an input?

A

Domain

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

What is another name for an output?

A

Co-domain

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

What is a pair?

A

A pair is the domain and co-domain given a function. Denoted (a,b)

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

What is a total function?

A

An assignment of exactly one element of set A to set B given a function

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

What is a partial function?

A

An assignment of at most one element of set A to set B given a function

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

What is the co-domain compared to the range?

A

The co-domain is the set of all possible values which can come out as a result but the range is the set of values that actually come out.

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

What is the image?

A

The image of a function is the set of values produced from the subset of a domain.

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

What is the pre-image?

A

The pre-image of a function is the set of arguments that produce a given subset.

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

What is true for the inverse of a total function?

A

f-1(B) = A, this does not hold for a partial function.

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

What does arity mean?

A

The number of arguments taken by a function

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

What is an injection function?

A

An injection function produces different outputs when given different inputs and produce the same output providing you use the same input.

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

What is a surjective function?

A

A function is surjective if all of the elements of the co-domain can be produced. Therefore the co-domain and range are equal.

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

What is a bijective function?

A

A function is bijective if it is both an injection and a surjection.

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

If f: A -> B and g: B -> C what does g . f give?

A

g . f: A -> C

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