Counting and functions Flashcards

1
Q

Ordered choice with repetitions

A

n^k

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

Ordered choice without repetitions

A

n!/(n-k)!

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

Unordered choice without repetitions

A

n!/k!(n-k)!

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

Unordered choice with repetitions

A

(k+n-1) choose (n-1)

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

What does n stand for

A

Number of choices

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

What does k stand for

A

Number of spots to fill / how many we are working with

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

How to calculate n choose k

A

n! / k!(n-k)!

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

For function f(x) where A -> B. What is the domain?

A

A is the collection of possible input, its the domain of f

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

For function f(x) where A -> B. What is the codomain?

A

B is the codomain of f, its the types of outputs f will generate

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

Range

A

A set of all values that the function actually produces, in most cases in a subset of the codomain

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

We can have:

A
  • Several inputs correspond to the same output
  • There is a value in B which never be an output value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

We cannot have:

A
  • One input corresponds to two different outputs
  • There is a value in A which is not an input value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Function Composition

A

Given any two functions f ∶ B → C, g ∶ A → B, we can combine these functions via function composition: that is, we can define the function f ○ g ∶ A → C, defined by the rule f ○ g(x) = f (g(x)). We pronounce the small open circle symbol ○ as “composed with.”

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