Discrete math 1

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

1/85

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.

86 Terms

1
New cards

definitions take the form of

an object x is called the term being defined provided it satisfies specific conditions

2
New cards

divisible

an integer a is divisible by integer b, denoted b|a provided there exists an integer c such that a = bc

3
New cards

even

an integer a is called even provided that it is divisible by 2. this means there exists some integer k such that a = 2k. (7|21)

4
New cards

odd

an integer a is called odd provided that there exist an integer k such that a = 2k + 1

5
New cards

prime

a positive integer p is called prime provided p is greater than 1 and that the only positive divisors of p are 1 & p

6
New cards

composite

a positive integer a is called composite provided there is an integer b such that 1 < b < a

7
New cards

N

the set of natural numbers: {0,1,2,3,...}

8
New cards

Q

The set of rational number : {a / b | a, b ∈ Z & b ≠ 0}

9
New cards

Z

the set of integers : {..,-2,-1, 0, 1, 2}

10
New cards

R

real numbers

11
New cards

mathematical writing

1. use complete sentences

2. be precise

3. rewrite

4. first perso plura;

12
New cards

theorem

a declarative statement for which there is proof, it is absolute and alwaus true

13
New cards

predicate

truth values depends on the variable assignment, neither true or false (once assigned it becomes a statement)

14
New cards

proposition

a statement is either true or false

15
New cards

if-then statement

if A then B

- implication

- if A happens, B happens

16
New cards

if and only if statement

A if and only b

- biconditional statement

- denotes equivalence

17
New cards

converse statements

written by exchanging the hypothesis and conclusion (if A then B -> If B, then A)

18
New cards

contrapositive statements

If not B then not A

- exchanges the hypothesis and conclusion and negates both parts

19
New cards

Vacous Truths

If A then B, when A is impossible

20
New cards

truth tables

- 2^n columns; n = number of propositions/variables

- used to evaluate truth values of compound statements

21
New cards

tautology

always trues

22
New cards

contradiction

always false

23
New cards

AND

- both are true

- multiplication

24
New cards

OR

- one is true

- addition

25
New cards

NOT

- neither is true

26
New cards

counterexample

case where a general statement is false. It disproves a claim by showing an instance where the hypothesis holds, but the conclusion does not

27
New cards

order of operation

parenthese, NOT, AND, OR

28
New cards

logical equivalence

A ≡ B if A ↔ B; meaning they have the same truth value for all possible values of their variables

- prove by properties and truth tables

29
New cards

identity laws

p ∧ T ≡ p

p ∨ F ≡ p

30
New cards

domination laws

p ∨ T ≡ T

p ∧ F ≡ F

31
New cards

idempotent laws

p ∨ p ≡ p

p ∧ p ≡ p

32
New cards

double negation laws

¬(¬p) ≡ p

33
New cards

absorption laws

p ∨ (p ∧ q) ≡ p

p ∧ (p ∨ q) ≡ p

34
New cards

negation laws

p ∨ ¬p ≡ T

p ∧ ¬p ≡ F

35
New cards

commutative laws (order)

p ∨ q ≡ q ∨ p

p ∧ q ≡ q ∧ p

36
New cards

associative laws (grouping)

(p ∨ q) ∨ r ≡ p ∨ (q ∨ r)

(p ∧ q) ∧ r ≡ p ∧ (q ∧ r)

37
New cards

distributive laws

p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)

p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)

- notice sign change

38
New cards

de Morgans' Laws

¬(p ∧ q) ≡ ¬p ∨ ¬q

¬(p ∨ q) ≡ ¬p ∧ ¬q

39
New cards

prop 7. 3

x → y ≡ (¬ x) ∨ y

40
New cards

contingency

not a tautology or contradiction

41
New cards

is if true, then false valid?

no, this is always a false statement (the reverse is valid, because if no valid claim is made on the hypothesis, no claim can be made about the conclusion, it can exist independently;)

42
New cards

writing mathematical proofs

Restate the problem, define terms, choose proof method (direct, contradiction, induction, contrapositive), break it down step-by-step, justify each step, and conclude by proving the statement

43
New cards

direct proofs

- starts with known facts or assumptions and logically deduces the statement you're trying to prove; used for conditional statements

If p then q

Assume p

Therefore q

44
New cards

proof by contradiction

proof by contradiction assumes that the statement you're trying to prove is false, then shows this leads to a contradiction.

45
New cards

proof by induction

46
New cards

contrapositive proof

Assume not Q, then show not P , and since

~Q -> ~P is logically equivalent to P -> Q, we have proven both.

Assume not Q

.

.

.

Thus not P

Thus not Q implies not P

Thus P implies Q

47
New cards

lists

- ordered sequence of objects

- order matters

- repetition allowed

- (1,2, 3, 3, 1)

48
New cards

sets

- unordered sequences

- no repetition

- {1, 2, 3, 4}

- cardinality or size denoted by |A|(finite if cardinality is an integer, other wise it is infinite)∈

49
New cards

multiplication rule

If one event can happen in A ways and a second event can happen in B ways, the total number of ways both events can happen is A×B

50
New cards

permutation (order matters)/falling factorial

- P(n, k)/(n)k = n!/(n-k)! if repetition forbidden (n(n-1)(n-2)..(n - k+1))

- n^k if repetition allowed

- k ≤ n

51
New cards

binomial coefficient (order does not matter)

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

- number of ways to choose k items from a set of n distinct items

- n choose k

- repetition not allowed

52
New cards

inclusion-exclusion principle

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

- used when counting overlapping evenets

53
New cards

partitions

a way of dividing the set into non-empty subsets such that every element is in exactly one subset.

54
New cards

factorials (when n = k)

the numbers of lists of lengths where the elements are chosen from a pool of possibilities and no two elements are the same

- choosing order of all items rather than a subset

- (n)n

- 0! = 1

- n! = ∏ k = 1, n k

55
New cards

set builder notation

{dummy element ∈ set : conditions}

- {x :x ∈ X, x ≥ 0}

56
New cards

subsets

When every element of A is also an element of B; A ⊆ B

- ∅ is always a subset of any set

- number of possible subsets = 2 ^ |A|

57
New cards

# of possible subsets

2 ^ |A|

- to create a subset of a, each ai is either in the subset or not, yielding 2^n options

- equal to power ser

58
New cards

power sets

The set of all subsets of a set A, denoted P(A), is called the power set of A.

ex:

If A = {a,b} then

P(A) = {ø, {a},{b},{a,b}}

59
New cards

proof by double inclusion

1. Prove A ⊆ B. Show that every element of set A is also an element of set B.

2. Prove B⊆A. Show that every element of set B is also an element of set A.

If both inclusions are true, then A=B7

60
New cards

UNION

DENOTED BY U & = OR

- A U B is the elements in A or B or both

- no repeitiion

- A U B = { x: x ∈ A ∨ x ∈ B}

61
New cards

INTERSECTION

- DENOTED BY & = AND

- A ∩ B elements both in A & B

- A ∩ B = {x: x ∈ A ∧ x ∈ B}

62
New cards

addition principle

If two sets A and B are disjoint (no elements in common), then the number of elements in their union is:

∣A∪B∣=∣A∣+∣B∣

63
New cards

set difference

- set of all elements of A that are not in B

- {x: x ∈ A ∧ x ∉ B}

64
New cards

symmetric difference

- set of all elements in A but not in B or in B not A

- A Δ B

- {x: x ∈ A - B ∨ x ∈ B- a}

65
New cards

Cartesian Product of Sets

- denoted A x B is the set of all ordered pairs formed by taking an element from A with an element from B

- Ax B = { (a, b) : a ∈ A, b ∈ B}

- A x B ≠ B x A

66
New cards

pairwise disjoint

if every pair of distinct sets in the sequence is disjoint

67
New cards

disjoint

Mutually Exclusive

68
New cards

Existential Quantifier

∃ "there exists, for some"

- at least one, could be more

- ∃ x ∈ A, assertions about x

- negation: ¬ (∃ x ∈ A, assertions about x)

69
New cards

Universal Quantifier

∀ "for all, each, every"

- all elements verify conditions with exception

- ∀ x ∈ A, assertion about x

- negation: ¬ (∀ x ∈ A, assertion about x)

70
New cards

combinatorial proof

1. pose a counting question

2: LHS

3: RHS

4. Conclusion

71
New cards

relation

a set of ordered pairs

- R is a relation on A and B provided that R ⊆ A x B

- aRb = (a ,b) ∈ R ⊆ A x B

72
New cards

relation on between sets

- R is a relation ON A provided R ⊆ A x A

- R is a relation FROM A TO B provided R ⊆ A x B

73
New cards

inverse relation

- the inverse of r, R ^ -1,is the relation formed by reversing the order of all ordered pairs in r

- R ^ -1 = { (x, y) : (y, x) ∈ R}

74
New cards

prop 14.6

suppoe (x, y) ∈ R, then (y , x) ∈ R^ -1. thus (x ,y) ∈ (R^-1)^-1. now suppose (x, y) ∈ (R^-1)&-1 and so (x, y) ∈ R

75
New cards

reflexive

for all x ∈ A, we have x R x

- every element relates to itself

76
New cards

irreflexive

for all x ∈ A, x /R x

- no element relates to itself

77
New cards

symmetric

for all x, y ∈ A, x R y → y R x

- if x is related to y then y is related to x

78
New cards

antisymmetric

for all x, y ∈ A, ( x R y ∧ y R x) → x = y

- if x is related to y and y is related to x, then they are equal

79
New cards

transitive

for all x , y , z ∈ A ( x R y ∧ y R z) → x R z

- if x is related to y, and y is related to z, then x is related to z

80
New cards

congruence modulo n

x ≡ y (mod n ) provided n | (x -y)

- x ≡ y (mod n ) if and only if x and y differ by a multiple of n

81
New cards

15.5

the is congruent mod n relation on the set of integers

82
New cards

equivalence relations

Relations that are reflexive, symmetric, and transitive

83
New cards

equivalence classes

set of elements related under an equivalence relation

-[a] = {x ∈ a : x R a}

- non empty pairiwise disjoint

84
New cards

an partition of a set...

gives rise to an equivalence relation

85
New cards

pascal's identity

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

86
New cards

strong induction

1. Prove some base case

2. Show correctness for all input values up to some value k

3. Show correctness for an input k + 1