Discrete Math Final Exam Review

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/115

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

116 Terms

1
New cards

Recursion

when an object's definition relies on that object

e.g. 2^n = 2x2^(n-1)

2
New cards

Induction

the proof technique used to demonstrate facts about recursive definitions

3
New cards

Set

(loosely speaking) is a collection of objects called elements

e.g. if this class is a set, you are an element

We write x ∈ X when x is an element of the set X

4
New cards

list or rooter notation

the set of whole numbers between 1 and 10 inclusive

{1,2,3,4,5,6,7,8,9,10}

5
New cards

list or rooter notation

is the set of positive whole numbers

{1,2,3,4,...}

6
New cards

Set builder notation

elements are described by some rule or property

7
New cards

set builder notation

the set of whole numbers between 1 and 10 inclusive

{x | x is a whole number and 1≤x≤10}

8
New cards

set builder notation

the set of positive whole numbers

{n | n is a positive whole number}

9
New cards

N

natural numbers

{0,1,2,3,4,...} 0 only counts in CSCI

10
New cards

Z

integers

{...,-2,-1,0,1,2,...}

11
New cards

Q

rational numbers

{(p/q) I p, q ∈ Z and q ≠ 0}

where p and q are both integers

12
New cards

R

real numbers

rational numbers and everything in between

e.g. π,3,(1/3)

13
New cards

subset

given two sets X and Y, we say Y is a subset of X if every element of Y is also in X.

Y⊆X

14
New cards

empty set

set that has no elements

{} or Ø

a subset of every set

15
New cards

collection

set of sets

16
New cards

Power set

collection of all subsets of X

P(X)

e.g. X={1,2,3}

P(X)= {Ø, {1}, {2}, {3}, {1,2}, {1,3}, {2,3}}

17
New cards

Union

the set of all elements in X or in Y

X={1,3,5}

Y={2,4,6}

X∪Y={1,2,3,4,5,6}

<p>the set of all elements in X or in Y</p><p>X={1,3,5}</p><p>Y={2,4,6}</p><p>X∪Y={1,2,3,4,5,6}</p>
18
New cards

intersection

the set of all elements in X and Y

X={1,2,3}

Y={3,4,5}

X∩Y={3}

<p>the set of all elements in X and Y</p><p>X={1,2,3}</p><p>Y={3,4,5}</p><p>X∩Y={3}</p>
19
New cards

Relative Complement

the set of all elements in X but not in Y

X-Y

<p>the set of all elements in X but not in Y</p><p>X-Y</p>
20
New cards

universal set

the set containing all objects or elements and of which all other sets are subsets.

e.g. all math majors must take math 160

universal set: CCU

21
New cards

complement

is the set of all elements ( in the universal set but) not in X

X ( with a line over the top)

<p>is the set of all elements ( in the universal set but) not in X</p><p>X ( with a line over the top)</p>
22
New cards

Cartesian Product

the set of all ordered pairs of elements whose first coordinate is in X and whose second coordinate is in Y

X×Y

{(x, y) | x ∈ X and ∈ Y}

23
New cards

two sets are equal if...

they have exactly the same elements

24
New cards

cardinality

the number of elements (if finite) in X

|X|

e.g. X={1,2,a}

|X|= 3

|A+B|= the number of elements in both set A and set B

25
New cards

union rule

|X∪Y|= |X| + |Y| - |X∩Y|

26
New cards

statement

a sentence that is true or false

27
New cards

conjunction

if p and q are statements, their conjunction in p⋀q (p and q)

the conjunction is true when both p and q are both true and false otherwise

<p>if p and q are statements, their conjunction in p⋀q (p and q)</p><p>the conjunction is true when both p and q are both true and false otherwise</p>
28
New cards

truthtable

a device that lets us tell whether a compound statement is true given whether its pieces are true

<p>a device that lets us tell whether a compound statement is true given whether its pieces are true</p>
29
New cards

disjunction

p∨q (p or q)

<p>p∨q (p or q)</p>
30
New cards

Negation

¬p or ~p (not p)

<p>¬p or ~p (not p)</p>
31
New cards

Exclusive-OR

p⊕q (either p or q); p or q, but not both

<p>p⊕q (either p or q); p or q, but not both</p>
32
New cards

conditional

p→q

"if p then q",

"p implies q",

"p is sufficient for q"

p does not have to be true

<p>p→q</p><p>"if p then q",</p><p>"p implies q",</p><p>"p is sufficient for q"</p><p>p does not have to be true</p>
33
New cards

biconditional

p↔q

"p if and only if q"

"p is necessary and sufficient for q"

"p and q are equivalent"

<p>p↔q</p><p>"p if and only if q"</p><p>"p is necessary and sufficient for q"</p><p>"p and q are equivalent"</p>
34
New cards

antecedent of p→q

p

35
New cards

consequent of p→q

q

36
New cards

converse of p→q

q→p

37
New cards

inverse of p→q

~p→~q

38
New cards

contrapositive of p→q

~q→~p

39
New cards

two statements φ (phi) and ψ (psi) are equivalent if...

they have the same truth table (value), or if φ↔ψ is always true and we write φ≡ψ

40
New cards

a statement φ is a tautology if...

it is always true, or φ≡T

41
New cards

a statement φ is a contradiction if...

it is always false, or φ≡F

42
New cards

knights and knaves

knights speak the truth

knaves speak falsely

the right answer from truth table is where they match

<p>knights speak the truth</p><p>knaves speak falsely</p><p>the right answer from truth table is where they match</p>
43
New cards

order of operations

P

E

M

D

A

S

44
New cards

order of operations: logic

not ¬

and/or ∧/∨

conditional →

biconditional ↔

45
New cards

de morgans law logic and sets

¬(p∧q)≡ ¬p∨¬q ( and vice versa)

(complement of X∩Y)= (complement of X) ∪ (complement of Y) - and vice versa

46
New cards

transitivity

φ≡ψ (phi = psi)

ψ≡γ (psi = gamma)

then φ≡γ (phi = gamma)

47
New cards

predicate

a function whose domain is some universe of objects being discussed and whose output is T or F

Q(x)

48
New cards

universal quantifier

declares that a statement is true for every element of the domain

symbol ∀

∀x "for all x"

49
New cards

existential qunatifier

declares that a statement is true for (at least) one member of the domain

∃x "there exists an x"

50
New cards

predicates

∀xP(x) "every x is a P"

∃xP(x) "some x are P"

51
New cards

binary

an example of a recursive number

(100101011100)2 -base 2

= 1x2^11 + 0x2^10 + 0x2^9 + 1x2^8 + ...

=2048 + 256 + 64 + 16 + 8 + 4

=2396

52
New cards

sequence

a list of objects

{Xn} nth term is Xn

53
New cards

closed form of a sequence

an explicit expression

54
New cards

recurrence relation

the terms are defined with respect to previous terms

55
New cards

Summation

If {Xn} is a sequence this is the sum of its terms

Xk, Xk+1, Xk+2,...Xn

<p>If {Xn} is a sequence this is the sum of its terms</p><p>Xk, Xk+1, Xk+2,...Xn</p>
56
New cards

Recursive summation

knowt flashcard image
57
New cards

Linearity summation

knowt flashcard image
58
New cards

proofs

we prove statements of the form p→q by assuming p is true and making a sequence of valid equivalences or rules of inference to conclude q is true.

59
New cards

proof by contradiction

of p→q, assumes that ~(p→q) ≡ p∧~q and derive a contradiction

by proving the opposite as nonsense, you get what you originally set out to prove

easiest with proving irrationality (assume its rational)

60
New cards

biconditional proofs

prove p→q and q→p

61
New cards

rational number

p/q where p and q are integers and q≠0

62
New cards

irrational number

one that is not rational

63
New cards

counterexample

an example that shows a statement is false

64
New cards

proofs using induction

1. state base case

2. inductive hypothesis: assume with variable k P(k)

3. inductive step: "we want to show that _______ " P(k+1)

4. use hypothesis (do some math) to show statement is true for k+1

5. conclusion: "by induction..."

65
New cards

growth of functions

constants

log(n) where y=log(x) = base^y=x

linear n

quadratic n^2

exponential #^n

factorial n!

exponentiation n^n

66
New cards

highest order term

f(n) = O(g(n))

if for large enough n, f(n) is not more that a multiple of g(n)

eventually f does not grow faster than g."

f(n) = O(g(n)) if there exist numbers c and k such that if n>k, then f(n)≤Cg(n)

e.g. 3n^3 + logn - 7 + 2^n

O=(2^n)

67
New cards

relation

a relation between X and Y is any subset R⊆X×Y

68
New cards

reflexive

a relation on X is reflexive if every element of X is paired with itself

every element of X is paired with itself- loop at every point

69
New cards

antireflexive

no element is paired with itself- no loops

70
New cards

diagonal relation

∆ = {(x,x) | x ∈ X}

the smallest reflexive relation on X

any relation union the diagonal will be reflexive

71
New cards

symmetric

a relation R is symmetric xRy means yRx

(1,2) and (2,1)

loops and double arrows only/if A=A^t

72
New cards

antisymmetric

R is antisymmetric if xRy and yRx means x=y

the only symmetries occur on∆

no double arrows

73
New cards

transitive

a relation is transitive if whenever xRy and yRz, then xRz

(a, b), (b, c), (a, c)

single edge between X1 and Xn wherever it has a path

74
New cards

digraphs

a pair (X, E) where X is any set and E is a set of ordered pairs from X.

X is the vertex set

E is the edge set

<p>a pair (X, E) where X is any set and E is a set of ordered pairs from X.</p><p>X is the vertex set</p><p>E is the edge set</p>
75
New cards

matrices

A= [aij] to refer to the matrix A whose element is in the ith row and jth column is aij

a mxn matrix has m rows and n columns

<p>A= [aij] to refer to the matrix A whose element is in the ith row and jth column is aij</p><p>a mxn matrix has m rows and n columns</p>
76
New cards

transpose

matrix A^t = [aji]

the rows and columns were exchanged

<p>matrix A^t = [aji]</p><p>the rows and columns were exchanged</p>
77
New cards

Addition and Subtraction of matrices

A±B = [aij ± bij]

<p>A±B = [aij ± bij]</p>
78
New cards

Scalar multiplication

cA = [c*aij]

79
New cards

dot product

of a 1xm matrix A and an mx1 matrix B

<p>of a 1xm matrix A and an mx1 matrix B</p>
80
New cards

matrix multiplication

mxk matrix A and kxn matrix B is the matrix mxn

the entry of AB in the ith row and the jth column is the dot product of the ith row of A and the jth column of B.

<p>mxk matrix A and kxn matrix B is the matrix mxn</p><p>the entry of AB in the ith row and the jth column is the dot product of the ith row of A and the jth column of B.</p>
81
New cards

matrix multiplication ex

knowt flashcard image
82
New cards

identity matrix

matrix In where the diagonal is all 1s and the rest are all 0s

<p>matrix In where the diagonal is all 1s and the rest are all 0s</p>
83
New cards

Boolean Matrix

a matrix whose entries are all bits (1 or 0)

can be combined using conjunct and disjunct (or/and)

84
New cards

bit

an element of the set {0, 1} where 0 represents a false statement and 1 represents a true statement

85
New cards

boolean dot product

A⨀B is (a_11∧b_11 )∨(a_12∧b_21 )... = 1 or 0

86
New cards

Boolean product

of a mxk boolean matrix A with a kxn Boolean matrix B is the mxn matrix A⨀B whose (i, j) entry is the boolean dot product of the ith row of A and the jth column of B.

where ever there is a 1 in the same place in A and B, there will be a 1 in the product, otherwise it is a 0.

<p>of a mxk boolean matrix A with a kxn Boolean matrix B is the mxn matrix A⨀B whose (i, j) entry is the boolean dot product of the ith row of A and the jth column of B.</p><p>where ever there is a 1 in the same place in A and B, there will be a 1 in the product, otherwise it is a 0.</p>
87
New cards

closure

the smallest set containing X for which P is true

close with refelxiveness, symmetry, transitivity

88
New cards

compostition

of R with S is the relation

(S∘R)↔RS={(a,c)┤|∃ b such that aRb and bSc}

89
New cards

two statements are equivalent if

they are always true together or false together

p∨q ≡ ¬p→q

90
New cards

equivalence relation

is any relation that is reflexive, symmetric, and transitive

φ≡ψ,ψ≡Γ then φ≡Γ

91
New cards

equivalence class

of x ∈ X is [x]= {y|y∈X and xRy}

so [a]=[b]={a, b}

[c]=[d]=[e]={c, d, e}

one element from the set represents the entire set

92
New cards

partitions

a family of disjoint subsets P1, P2, P3,... ,Pn where Pi∩Pj=∅ and

P1∪P2∪P3∪... ∪Pn = X

93
New cards

partial orders

is a relation R is a partially ordered set or poset (X, ≤_R)

generalize ≤

reflexive, antisymmetric, transitive

94
New cards

Hasse Diagram

bottom to top, removes clutter and captures flow

take the digraph of poset (X, ≤_R) and:

remove arrows, read edges bottom to top

remove all loops

if an edge connects x and y, y and z, remove the edge between x and z

<p>bottom to top, removes clutter and captures flow</p><p>take the digraph of poset (X, ≤_R) and:</p><p>remove arrows, read edges bottom to top</p><p>remove all loops</p><p>if an edge connects x and y, y and z, remove the edge between x and z</p>
95
New cards

comparable

two elements x, y of a poset if

X ≤_R Y or Y ≤_R X

96
New cards

chain

a poset in which any pair of elements is comparable

<p>a poset in which any pair of elements is comparable</p>
97
New cards

maximal

if X ≤_R Y for no other y∈X

on hasse there is nothing above it

a single element=maximum

98
New cards

minimal

if Y ≤_R X for no other y∈X

on hasse nothing below it

a single element= minimum

99
New cards

total order

linear partial order

structured like a chain

100
New cards

covers

y covers x if x is related to y and there is no y such that x is related to y which is related to z