discrete math

0.0(0)
studied byStudied by 2 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/71

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

72 Terms

1
New cards

proposition

a sentence that can only be true or false

2
New cards

¬p

NOT p

3
New cards

p ∧ q

p AND q

4
New cards

p ∨ q

p OR q

5
New cards

p → q

IF p THEN q

6
New cards

p q

q IF AND ONLY IF p

7
New cards

p ⊕ q

XOR (p or q but not both)

8
New cards

∀x

all x

9
New cards

∃x

at least one x

10
New cards

double negative

¬(¬p) ≡ p

11
New cards

De Morgan’s Laws

NOT acts as distributor for AND and OR

12
New cards

biconditional

p q ≡ (p → q) ∧ (q → p)

13
New cards

implication flip

p → q ≡ ¬p ∨ q
(if you drink milk, you get sick = either don’t drink milk or you get sick)

14
New cards

sufficient

condition, then q

15
New cards

necessary

q, then condition

16
New cards

converse

if q then p

17
New cards

inverse

if not p then not q

18
New cards

contrapositive

if not q then not p

19
New cards

predicate

sentence with a blank

20
New cards

modus ponens

p → q and p is True, then q is True

21
New cards

modus tollens

p → q, and q is False (¬q), then p is False (¬p)

22
New cards

hypothetical syllogism

p → q and q → r, then p → r

23
New cards

disjunction syllogism

p ∨ q and p is False (¬p), then q is True (q)

24
New cards

addition

if p is True, then p ∨ q is True

25
New cards

simplification

if p ∧ q is True, then p is True and q is True

26
New cards

conjunction

if p = T and q = T, then p∧ q is True

27
New cards

resolution

if p ∨ q and ¬p ∨ r, then q ∨ r

28
New cards

direct proof

given → follow logic → reach the conclusion

29
New cards

contrapositive proof

Prove ¬Q → ¬P instead of P → Q

30
New cards

proof by contradiction

Assume the opposite of what you want to prove → reach a contradiction

31
New cards

vacuous proof

If the premise is false, the implication is automatically true. (ex: “If I’m a potato then I’m a millionaire.”)

32
New cards

trivial proof

If the conclusion is always true, the implication is automatically true. (ex: “If I have five heads, then 1 = 1.”)

33
New cards

Universal Instantiation

Take a general truth and apply it to all.

34
New cards

Universal Generalization

All proofs of something True creates a generalization.

35
New cards

Existential Instantiation

If at least one of something exists, confirm its existence by naming it uniquely.

36
New cards

Existential Generalization

If there’s at least one example of something existing, then one or some exist.

37
New cards

x ∈ A

x is an element of A

38
New cards

x ∉ A

x is not in A

39
New cards

union

A ∪ B (OR)

40
New cards

difference

A − B (elements in A but not B)

41
New cards

intersection

A ∩ B (AND)

42
New cards

complement

A̅ (everything in not A)

43
New cards

cartesian

A × B (pairs of elements)

44
New cards

cardinality

the number of elements in a set (|A|)

45
New cards

bitstring

a string of 1’s and 0’s that are used to represent T and F in a set if numbers (1=T and 0=F)

46
New cards

injective / one-to-one

every input has a different output, no two inputs share the same out put (ex: f(x) = x2 doesn’t work because f(-2)=f(2))

47
New cards

surjective / onto

every codomain has to have an x, every f(x) has an x

48
New cards

bijective

a function that is both and injective and surjective

49
New cards

floor function ⌊x⌋

rounds down to the nearest whole number

50
New cards

ceiling function ⌈x⌉

rounds up to the nearest whole number

51
New cards

well-ordering principle

every non-empty set of positive integers has a smallest element

52
New cards

strong induction

a regular induction but for multiple values

53
New cards

mathematical induction

a method to prove a statement is true for all positive integers

54
New cards

1 root closed form

an = (C1 + C2)(rn)

55
New cards

2 roots closed form

an = C1r1n + C2r2n

56
New cards

recursion

when a value depends on previous values

57
New cards

iteration

plugging in values until you see a pattern

58
New cards

combination

<p></p>
59
New cards

permutation

knowt flashcard image
60
New cards

pigeonhole principle

[ N/k ]

61
New cards

binomial theorem

knowt flashcard image
62
New cards

generalized permutations

when you have repeating elements in a set

<p>when you have repeating elements in a set</p>
63
New cards

combinations with repetition

when choosing items with replacement and order doesn’t matter

<p>when choosing items with replacement and order doesn’t matter</p>
64
New cards

PIE

principles of inclusion and exclusion

65
New cards

PIE for 2 sets

∣A∪B∣=∣A∣+∣B∣−∣A∩B∣

66
New cards

PIE for 3 sets

∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩C∣

67
New cards

Baye’s theorem

P(A|B) = (P(B|A) * P(A)) / P(B)

68
New cards

Bernalli’s Theorem

P(k successes) = C(n, k)pk(1-p)n-k

69
New cards

independent events

P(A∩B) = P(A) * P(B)

70
New cards

P (A∪B) disjoint

P(A) + P(B)

71
New cards

P (A∪B) overlap

P(A) + P(B) - P(A∩B)

72
New cards

conditional probability

P(A∩B) / P(B)