CS 182

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

1/125

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:18 PM on 1/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

126 Terms

1
New cards

Discrete math

Study of math structures that correspond to natural numbers

2
New cards

Graph

Finite set of nodes paired by edges

3
New cards

Undirected graph

Uses unordered pairs

4
New cards

Directed graph

Uses ordered pairs

5
New cards

Conjunction

AND

^

<p>^</p>
6
New cards

Inverse Conjunction

NAND

-^

7
New cards

Negation

NOT

-A

<p>-A</p>
8
New cards

Disjunction

OR

v

<p>v</p>
9
New cards

Inverse Disjunction

NOR

-v

10
New cards

XNOR

11
New cards

XOR

12
New cards

Implication

IMPLIES

  • True, except when true implies false

  • Not commutative

13
New cards

Anti-implication

NIMPLY

14
New cards

Proposition

A statement that is either always true or always false

15
New cards

Standard proposition variables

p

q

r

16
New cards

Logical connective

An operation that gives a binary output based on two propositions

17
New cards

Biconditional

  • True if both propositions are of the same validity

  • Equal to p→q ^ q→p

18
New cards

Converse

p→q

q→p

19
New cards

Inverse

p→q

-p→-q

20
New cards

Contrapositive

p→q

-q→-p

  • Converse inverse

21
New cards

Relation between implication and contrapositive

Implication and contrapositive are equivalent

22
New cards

Truth table

Table containing all permutations of propositions and their connective outputs

23
New cards

Proof by contradiction

If the negation of a truth leads to a contradiction, the original proposition must have been true

24
New cards

Tautology

Statement that is always true

25
New cards

Contradiction

Statement that is always false

26
New cards

Equivalent Propositions

Logically Equivalent

Propositions have the same truth value in all cases

Biconditional is true

27
New cards

Implication To Or Identity

p→q = -p v q

28
New cards

Logical Identity Laws

p ^ T = p

p v F = p

29
New cards

Logical Domination Laws

p v T = T

p ^ F = F

30
New cards

Logical Idempotent Laws

p v p = p

p ^ p = p

31
New cards

Logical Negation Laws

p v -p = T

p ^ -p = F

32
New cards

Logical Commutative Laws

p v q = q v p

p ^ q = q ^ p

33
New cards

Logical Associative Laws

p ^ q ^ r

p v q v r

These can be evaluated in any order

34
New cards

Logical Distributive Laws

p v (q ^ r) = (p v q) ^ (p v r)

p ^ (q v r) = (p ^ q) v (p ^ r)

35
New cards

Logical Absorption Laws

p v (p ^ q) = p

p ^ (p v q) = p

36
New cards

Logical DeMorgan’s Laws

-(p ^ q) = -p v -q

-(p v q) = -p ^ -q

37
New cards

Satisfiable

Proposition is true for some case

38
New cards

Propositional Functions

Generalization of propositions

  • Include all cases for a proposition

39
New cards

Universal quantifier

  • True for all x in U

40
New cards

Existential quantifier

  • True for some x in U

41
New cards

Restricted to

Element of

42
New cards

Priority between connectives and predicate logic

Predicate logic takes precedent over connectives

43
New cards

Predicate Logic Equalities

-∃xJ(x) = ∀x(-J(x))

  • If the proposition is not satisfied for some x, the proposition is false for all x

-AxJ(x) = ∃x(-J(x))

  • If the proposition is not satisfied for all x, the proposition is false for some x

44
New cards

Communitive properties of AND and OR

AND and OR commute with themselves but not with each other

45
New cards

Distributive properties of ∀ and ∃

Cannot be distributed over logical connectives

46
New cards

Set

Unordered collection of unique elements

47
New cards

Element

Object in a set

48
New cards

N (Z >= 0)

Natural Numbers

49
New cards

Z

Integers

50
New cards

Z+ (Z > 0)

Positive Integers

51
New cards

R

Reals

52
New cards

R+ (R > 0)

Positive Reals

53
New cards

Q

Rational Numbers

54
New cards

C

Complex Numbers

55
New cards

Set equality

Sets have the same elements

  • Repetition doesn’t matter

56
New cards

U (Set)

Universal set

Set of all elements within the context

57
New cards

Empty set

Set with no elements

58
New cards

{∅}

Empty set is not equal to a set with an empty set in it

  • An empty set counts as an element

59
New cards

Interval notation

[a, b] = {x | a <= x <= b}

  • Parentheses: Exclusive

  • Brackets: Inclusive

60
New cards

Subset

A set containing some elements of another set

61
New cards

Subset equality

⊆ = ∀x(x ∈ A → x ∈ B)

62
New cards

Tautologies of subsets

S ∈ S

∅ ∈ S

63
New cards

Proper subset

A subset of a set which is not equal to the original set

64
New cards

Proper subset equality

⊂ = ∀x(x ∈ A → x ∈ B) ^ ∃x(x ∈ B ^ x A)

65
New cards

| |

Cardinality

Number of elements in a set

66
New cards

Finite set

Cardinality is a non-negative integer

67
New cards

Cardinality equality

Two cardinalities are equal if every element in each set can be mapped together algorithmically

68
New cards

Power set

The set of all subsets of a set

69
New cards

Power set cardinality

2n, where n is the original cardinality

70
New cards

Cartesian product

A x B = {(a, b) | a ∈ A ^ b ∈ B}

  • Uses an ordered pair

  • Set of all ordered combinations of elements from A and B

71
New cards

A ∪ B

{x | x ∈ A ^ x ∈ B}

Union

Set containing all elements of both sets

72
New cards

A ∩ B

{x | x ∈ A v x ∈ B}

Intersection

Set containing elements in common

73
New cards

A - B

{x | x ∈ A v x B}

Difference

Set of elements in A that are not in B

A ∩ -B

74
New cards

Principal of inclusion-exclusion

|A ∪ B| = |A| + |B| - |A ∩ B|

75
New cards

Set Identity Laws

A ∩ U = A

A ∪ ∅ = A

76
New cards

Set Domination Laws

A ∪ U = U

A ∩ ∅ = ∅

77
New cards

Set Idempotent Laws

A ∪ A = A

A ∩ A = A

78
New cards

Set Complementation Law

—A = A

79
New cards

Set Commutative Laws

Unions and intersections commute with themselves but not each other

80
New cards

Set Associative Laws

A ∪ B ∪ C

A ∩ B ∩ C

Both can be evaluated in any order

81
New cards

Set Distributive Laws

A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)

A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)

82
New cards

Set DeMorgan’s Laws

-(A ∩ B) = -A ∪ -B

-(A ∪ B) = -A ∩ -B

83
New cards

Set Absorption Laws

A ∪ (A ∩ B) = A

A ∩ (A ∪ B) = A

84
New cards

Set Complement Laws

A ∪ -A = U

A ∩ -A = ∅

85
New cards

Function

A→B

Assigns each element of a set to one element of another set

86
New cards

Domain

The set of elements in the input set

87
New cards

Codomain

The set of elements in the output set

88
New cards

Range

The set of all elements that are images

89
New cards

Image

f(a) = b

The result of an element after a function

90
New cards

Preimage

f(a) = b

The input element

91
New cards

Function equivalence

Domains, codomains, and mapping are the same

92
New cards

Stirling’s Formula

n! √(2πn)(n/e)n

93
New cards

Injection

Function that is one-to-one

  • If f(a) = b, f(b) = a

  • If f(a) = f(b), a = b

94
New cards

Surjection

A function where all codomain elements have a preimage

95
New cards

Bijection

An function that is both an injection and surjection

96
New cards

⌊x⌋

floor(x)

Rounds down to the greatest integer less than or equal to x

97
New cards

⌈x⌉

ceil(x)

Rounds up to the least integer greater than or equal to x

98
New cards

Inverse function

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

  • Only exists on bijections

99
New cards

“Squeeze Theorem“ Proof Strategy

If a <= b, and b <= a, a = b

100
New cards

Relation

Association between elements of two sets

  • More general than functions