Discrete 3 Flashcards

1
Q

Suppose that a procedure can be broken down into a sequence of two tasks
(task 1 followed by task 2). If there are n1 ways to do the first task and n2 ways to do the second
task following the first task

A

then there are n1·n2 ways to do the procedure.

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

Suppose that there are n1 ways to do task 1 and n2 ways to do task 2. If
there is no overlap between the two tasks,

A

then there are n1 + n2 ways to do task 1 or task 2.

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

Suppose that there are n1 ways to do task 1, n2 ways to

do task 2, and k ways to do both.

A

Then there are n1 + n2 – k ways to do task 1 or task 2.

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

To find the smallest N such that in k boxes there are t guarunteed

A

N = k (t −1) + 1.

cieling (n/k) = t

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

binomial theorem

A

sumk=0ton (n/k)x^ky^(n-k)

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

order matters and repeats allowed

A

n^r

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

order matters and repeats not allowed

A

p(n,r) = n!/(n-r)!

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

order does not matter and repeats allowed

A

n-1 bars and r stars

C(n-1+r,r)

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

order doesn’t matter and repeats are not allowed

A

c(n,r) n!/((n-r)!r!)

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

To solve a recurrence relation of the form 𝑎𝑛 = 𝑐𝑎𝑛−1

A

𝑎𝑛 = 𝛼(𝑟1)^𝑛

𝑛 ≥ 0. with initial conditions and r = c

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

To solve a recurrence relation of the form 𝑎𝑛 = 𝑐1𝑎𝑛−1 + 𝑐2𝑎𝑛−2

A

𝑟^2 − 𝑐1𝑟 − 𝑐2 = 0
find r1 and r2.

if r1 != r2
then 𝑎𝑛 = 𝛼(𝑟1)^𝑛 + 𝛽(𝑟2)^𝑛
, 𝑛 ≥ 0

else if r1=r2
𝑎𝑛 = 𝛼(𝑟1)^𝑛 + 𝛽N(𝑟1)^𝑛
, 𝑛 ≥ 0

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