CS182 Purdue Foundations of Computer Science and Discrete Mathematics

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

1/276

flashcard set

Earn XP

277 Terms

1
New cards

conjunction

^; true only if both are true

2
New cards

disjunction

v; only false if both are false

3
New cards

exclusive xor

circle w/ plus; only true when signs are opposites (like t ___ f, or f ___ t)

4
New cards

conditional

p → q; only false when true implies false

5
New cards

biconditional

p ←> q; only true when the truth values are the same

6
New cards

converse

q → p

7
New cards

inverse

not p → not q

8
New cards

contrapositive

not q → not p

the _____ of a compound proposition is equivalent to the original comp. proposition

9
New cards

precedence of operators

negation, conjuction/disjunction, implicatoin/biconditional

10
New cards

tautology

a compound proposition that is always true

11
New cards

contradiction

a compound proposition that is always false

12
New cards

contingency

a compound proposition that is neither false nor true

13
New cards

De Morgans Laws - Proposition


<p></p>
14
New cards

De Morgans Law - Set theory

knowt flashcard image
15
New cards

Conditional-Disjunction Equivalence

knowt flashcard image
16
New cards

identity laws

knowt flashcard image
17
New cards

domination laws

knowt flashcard image
18
New cards

idempotent laws

knowt flashcard image
19
New cards

double negation law

knowt flashcard image
20
New cards

commutative laws

knowt flashcard image
21
New cards

associative laws

knowt flashcard image
22
New cards

distributive laws

knowt flashcard image
23
New cards

absorption laws



<p></p><p></p>
24
New cards

negation laws

knowt flashcard image
25
New cards

satisfiability

at least one truth value for the compound

26
New cards

solution for compound proposition

the assignment of truth values that makes a compound satisfiable

27
New cards

universal quantifier

V; true for every element under consideration


-heigher precedence than operators

28
New cards

extistential quantifier

there is one or more element under consideration for which the predicate is true


-heigher precedence than operators

29
New cards

counterexample

an element that proves a statement false

30
New cards

uniqueness quantifier

there exists a unique x such that P(x) is true

<p>there exists a unique x such that P(x) is true</p>
31
New cards

negating quantified expressions

knowt flashcard image
32
New cards

nested quantifiers

knowt flashcard image
33
New cards

direct proofs

a logical method used to show that a conditional p→ q is true by assuming p is true and using definitions, axioms, or established theorems to show q is true


  1. state the hypothesis (that p is true)

  2. apply definitions

  3. deduce the conclusion (use algebrea and logical steps to show q true)


34
New cards

proof by contraposition (indirect proof)

proof that uses equivalence p→q = not q → not p

use when stuck on a direct proof or if it provides an easier starting point

  1. state that you will use a proof by ________

  2. assume that the conclusion q is false, aka assume not q is true

  3. use direct proof steps, facts, and math rules to show that premise P must also be false (aka not P is true)


35
New cards

definition of even and odd integer

even: n=2k

odd: n=2k+1

36
New cards

definition of a rational number

r is rational if there exist integers p and q that r = p / q.

irrational: a real number that is not rational.

37
New cards

proof by contradiction

an indirect proof method that proves a statement is true by assuming it is false and showing that this assumption leads to a logical impossibility

  1. state that you are using a proof by ______

  2. assume the OPPOSITE of what you are meant to prove is true

  3. reason logically until you hit a contradiction

  4. conclude that your inital assumption was wrong, so the original statment is true



38
New cards

counterexample

an example for which P(x) is false.. be careful of begging the question and circular reasoning

39
New cards

existence proofs

a mathematical argument used to show that an object or value w/ a specific property exists.

constructive: find or build an example that makes the statement true

non constructive: prove an object must exist w/o showing what it is

40
New cards

cases, exhaustive

proof by ____: proving (p1 v p2 v … v pn) → q conditional can be done by proving p1, p2, … pn seperately.

____ proof: using specific cases to prove the statement holds

41
New cards

union

A U B: the set that contains the elements in the sets A or B

42
New cards

A ∩ B: intersection

the set that contains elements that are in both sets A, B


if the ________ = empty set, the sets A and B are disjoint

43
New cards

A-B

the set containing those elements that are in A but not in B

44
New cards

Ā

the set U-A, where U is the universal set

45
New cards

set identities - identity laws

knowt flashcard image
46
New cards

set identities - domination laws

knowt flashcard image
47
New cards

set identities - idempotent laws

knowt flashcard image
48
New cards

set identities - complementation law

knowt flashcard image
49
New cards

set identities - de morgans laws

knowt flashcard image
50
New cards

set identities - complement laws

knowt flashcard image
51
New cards

set identities - absorption laws

knowt flashcard image
52
New cards

set identities - commutative laws

knowt flashcard image
53
New cards

set identities - associative laws

knowt flashcard image
54
New cards

set identities - distributive laws

knowt flashcard image
55
New cards

inclusion-exclusion principle

knowt flashcard image
56
New cards

roster notation of a set

{1,2,…n}


used when there is a clear pattern

57
New cards

set builder notation

example: {x | x is a _ and x < 0}

58
New cards

set equality

A = B

if A and B have the same elements, no matter the order or the repition of elements, they are equal

59
New cards

N

all natural numbers starting at 0?

60
New cards

Z

all integers

61
New cards

R

the set of all real numbers

62
New cards

Q

the set of rational numbers

63
New cards

C

the set of complex numbers

64
New cards

{∅}

has ONE element


is a SINGLETON set (a set of one element)

65
New cards

venn diagram of a set

knowt flashcard image
66
New cards

subset

a set within/equal to another set
every nonempty set S is gauranteed to have at least two ____, the emoty set and S

<p>a set within/equal to another set<br>every nonempty set S is gauranteed to have at least two ____, the emoty set and S</p>
67
New cards

proper subset

a subset of a set that is not equal to the original set

<p>a subset of a set that is not equal to the original set</p>
68
New cards

cardinality

|S| : the amount of elements in a finite set

if a set has n elements, then the cardinatlity of its power set is P(A) = 2^n

69
New cards

power set

P(S) is the set of all subsets of set S
if a set has n elements, then the cardinatlity of its power set is P(A) = 2^n

70
New cards

cartesian products

A x B

the set of all ordered pairs (a,b) where a belongs to set A, b belongs to set B

71
New cards

function

f: A→B is an assigment of each element of A to exactly one element of B


f(a) = b if b is the unique output b assigned to a


A is the domain of f

B is the codomain of f


if f(a) = b:

b is called the image of a under f (the output)

a is called the preimage of b (the input)


range: the subset of the codomain B that contains only the actual outputs produced by the function

72
New cards

function equality

two ____ are identical/equal iff they share the same domain, codomain, and the exact same mapping rule for every element

73
New cards

injection

one-to-one or _____

iff f(a) = f(b) implies that a=b


every input maps to a distinct output

74
New cards

surjective

onto

iff for every element b belongs to set B, there is an element a belongs to set A with f(a) = b

every output is caused by an input

75
New cards

bijective

if a function is injective and surjective, then it is ______

76
New cards

floor and ceiling functions

round up/down to the nearest integer

77
New cards

inverse functions

an ____ only exists if f is a bijection

f-1(y) = x if f(x)=y

78
New cards

countable sets

finite set, countably infinite set

79
New cards

uncountable set

always infinite


ex: R, the interval (0,1) proved by Cantor’s Diagonalization Argument, irrational numbers

80
New cards

Enumeration

creating a complete, ordered list of everey single element inside a set

81
New cards

cantors diagonalization argument

proof by contradiction that the set of all real numbers between 0 and 1 is countable by diagonally constructing a new number that is guaranteed to be missing


0.13579…

0.25680…

etc

82
New cards

binary relation from A to B

a subset of A x B, aka a collection of ordered pairs where the first element comes from A and the second comes from B


a function is just a ____ w/ the rule that every a must have exactly one b


set operations can be used on _____

83
New cards

reflexive relation

iff (a,a) belongs to R for every element of a belong to A


every element must have its doppleganger

84
New cards

symmetric relation

iff (b,a) belongs to R when (a,b) belongs to R


every element must be mirrored

85
New cards

antisymmetric

iff for every a,b belonging to A, if (a,b) belongs to R and (b,a) belongs to R, then a=b



86
New cards

transitive

if (a,b) and (b,c), then (a,c)

87
New cards

equivalence relations

a relation is an _ if it is reflexive, symmetric, and transitive


two elements related by an _ are equivalent

88
New cards

composition of relations

to find the _____ of relations, look for a matching linking element from set B


ex: R1 = {(1,x), (2,y)}

R2 = {(x, gold), (y, silver)}


R2 o R1 = {(1, gold), (2, silver)}

89
New cards

equivalence classes

a subset of elements from a larger set that are all considered “equivalent” to each other under a specific equivalence relation



____ are either complete identical or completely DISJOINT

<p>a subset of elements from a larger set that are all considered “equivalent” to each other under a specific equivalence relation</p><p></p><p></p><p>____ are either complete identical or completely DISJOINT</p>
90
New cards

partition of a set

a collection of disjoint non-empty subsets of S that have S as their union


basically just divvying it up

91
New cards

N-ary relation

a mathematical relationship defined among N sets


ex: binary, ternary, quaternary

92
New cards

sequence

a function from a subset of the integers

finite: 1, 2, 3

infite: 1, 3, 9, .., 3^n


an denotes the image (output) of an integer n. it is a term of the ______

{an } represents the entire _____

93
New cards

geometric progression

a sequence of the form a, ar, ar2, arn

<p>a sequence of the form a, ar, ar<sup>2</sup>, ar<sup>n</sup></p>
94
New cards

arithmetic progression

a sequence of the form a, a+d, a+2d, …, a+nd, ..

95
New cards

recurrence relations

an equation that defines each term of a sequence using one or more preceding terms

96
New cards

closed form of a recurrence relation

expresses the nth term directly in terms of n and initial conditions


can be found by:

iteration until a pattern appears

telescoping

97
New cards

solution sequence

a specific sequence whose terms satisfy a recurrence relation for every valid index n

98
New cards

forward substitution

start at an initial condition and generate consecutive terms upward until a pattern appears for a clsoed formula

99
New cards

backward substitution

expands an down to a base case / until a pattern appears


repeatedly replaces terms with their definitions until a pattern apepars

100
New cards

summations

adds a sequence of numbers over a specified range of index values



<p>adds a sequence of numbers over a specified range of index values</p><p></p><p></p>