Discrete Test 3

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

21 Terms

1
New cards

Stars and Bars

(n+k-1 choose k-1)

n = objects

k = types

*think: choosing boundaries, so k-1

2
New cards

Binomial Theorem


<p></p>
3
New cards

Bayes Theorem

OG Formula, use if P(B) given

<p>OG Formula, use if P(B) given</p>
4
New cards

Expanded Bayes Theorem

If P(B) not given, then use this one

<p>If P(B) not given, then use this one</p>
5
New cards

Total Probability

P(A) = P(A|B)P(B) + P(A|B^c)P(B^c)

6
New cards

Monty Hall Table

Your Choice, Winning Choice, Host Opened, Stick, Switch

1, 1, 2 or 3, win, loose

…

7
New cards

Tip for Injective/Surjective Questions

Injective: Assume f(x)=f(y) and deduce x=y. Factor, simplify, or use properties of the function.

Surjective: Start with an arbitrary y, solve f(x)=y for x, and verify x is in the domain.

Ex: start with x³ = y → x = cbrt(y) the f(x) = (cbrt(y))³ = y

Inverse: Solve y=f(x) for x in terms of y, then swap variables.

Ex: y = x³ → x = cbrt(y) → A-1 = cbrt(x)

8
New cards

[25] \ T

all elements of [25] that aren’t in T

Important Property:
** [n]∖([n]∖T)=T

9
New cards

Ways of Ordering

n!

10
New cards

Automorphism

Just a relabeling of vertices (can’t change edges).

Or a REORDERING if you will, so for a complete graph you permute n! ways.

11
New cards

Set sizes (S and T)

Injective: |S| <= |T|

Surjective: |S| >= |T|

Bijective: |S| = |T|

12
New cards

Permutation Formula

ordered selections of n distinct items from k
P(n,k) = n! / (n-k)!

13
New cards

Combination Formula

(n choose k) = n! / k!(n-k)!

14
New cards

Counting functions formula

|A| = n, |B| = m

so mn ways

15
New cards

Counting Injective Functions

|A| = n, |B| = m

m * (m-1) * (m-2) * … * (m - n + 1) = n! / (m-n)!

or # of permutations (in other words)

!! Make sure |A| < |B| first

16
New cards

Counting Bijection Functions

|A| = |B| = n, so n = m

n! (m - n)! => n!

17
New cards

Counting Surjective Functions

  1. Start with all functions.

  2. Subtract those that miss some particular element.

  3. But functions missing two elements got subtracted twice, so add those back.

  4. Then you've over-corrected for functions missing three, so subtract again...

Inclusion-Exclusion

18
New cards

Formal Definition of Injective

f is injective for all a1, a2 in A if f(a1) = f(a2) then a1 = a2

NOT: f is not injective if there exists an a1, a2 in A such that f(a1) = f(a2) and a1 NOT = a2

19
New cards

Formal Function of Surjective

f is surjective if for all b in B there exists an a in A such that f(a) = b

NOT: if there exists a b in B such that for all a in A, f(a) NOT = b

20
New cards

E[X] = E[x1 + x2 + .. + xn]

= E[x1] + E[x2] + … + E[xn] Fr

21
New cards

Formal Definition of Automorphism

A bijective function such that for all uv, in V(G) {u,v} in E(G) iff {f(u), f(v) in E(G)