Discrete Mathematics

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

1/81

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.

82 Terms

1
New cards

Discrete Objects

The foundation for formal methods, such as mathematical approaches to software / hardware, software engineering, and software testing.

2
New cards

Set Definition

A collection of unique and unordered elements.

3
New cards

Set Example

A = {1, 2}

4
New cards

Set Conventions

  • Sets are named with a capital letter

  • Elements are named with a lowercase letter.

5
New cards

Set Membership

a ∈ A

6
New cards

Set Non-Membership

b ∉ A

7
New cards

Defining Infinite Sets

Sets can be enumerated by defining a property that all of its elements must satisfy.

8
New cards

Defining Infinite Sets Example

A = { x | x is an integer and x > 0}

9
New cards

Union of Sets Definition

Forms a new set from two sets consisting of all elements that are in either of the original sets.

10
New cards

Union of Sets Example

A = {1, 2, 3, 4, 5}

B = {3, 4, 5, 6, 7}

A ∪ B = {1, 2, 3, 4, 5, 6, 7}

11
New cards

Intersection of Sets Definition

Forms a new set from two sets, consisting of all the elements that are in both of the original sets.

12
New cards

Intersection of Sets Example

A = {1, 2, 3, 4, 5}

B = {3, 4, 5, 6, 7}

A ∩ B = {3, 4, 5}

13
New cards

Difference of Sets Definition

Forms a new set from two sets, consisting of all elements from the first set that are not present in the second set.

14
New cards

Difference of Sets Example

A = {1, 2, 3, 4, 5}

B = {3, 4, 5, 6, 7}

A — B = {1, 2}

B — A = {6, 7}

15
New cards

Cartesian Product of Sets Definition

Forms a new set from two sets, consisting of all the ordered pairs <1, 2>, where 1 is an element from the first set, and 2 is an element from the second set.

16
New cards

Cartesian Product of Sets Example

A = {a1, a2, a3}

B = {b3, b4, b5}

A × B = {<a1, b3>, <a1, b4>, <a1, b5>,

<a2, b3>, <a2, b4>, <a2, b5>,

<a3, b3>, <a3, b4>, <a3, b5>}

17
New cards

Ordered Pair Definition

A pair of objects with an order associated with them.

18
New cards

Ordered Pair Equality

Ordered Pairs <a, b> and <b, a> are not equal.

19
New cards

Set Operations Precedence

Union, intersection, difference, and Cartesian product are all equal in the order of precedence.

20
New cards

Set Cardinality

The number of elements within a set.

21
New cards

Set Cardinality Example

A = {1, 2, 3, 4, 5}

|A| = 5

22
New cards

Empty Set Definition

A set which contains no elements.

23
New cards

Empty Set Example

A = Ø

24
New cards

Disjoint Set Definition

Two sets are disjoint if they have no elements in common — their intersection returns an empty set.

25
New cards

Disjoint Set Example

A = {1, 2, 3}

B = {4, 5, 6}

A ∩ B = Ø

26
New cards

Equal Set Definition

Two sets are equal if they have the same elements — every single element in A is also an element in B, and vice versa.

27
New cards

Equal Sets Example

A = {1, 2, 3, 4, 5}

B = {1, 2, 3, 4, 5}

28
New cards

Non-Equal Sets Definition

Two sets are not equal if they do not have the same elements — at least one element in A is not in B or vice versa.

29
New cards

Non-Equal Set Example

A = {1, 2, 3, 4, 5}

B = {1, 2, 3, 4}

30
New cards

Set of Sets Definition

A set can contain another set as an element.

31
New cards

Set of Sets Example

A = {1, {2, 3}}

32
New cards

Subsets Definition

A is a subset of B if every element of A is also an element of B.

33
New cards

Subsets Example

A = {1, 2, 3, 4}

B = {1, 2, 3, 4, 5}

A ⊆ B

34
New cards

Proper Subsets Definition

A is a proper subset of B if :

  • A is a subset of B

  • A is not equal to B

35
New cards

Proper Subset Example

A = {1, 2, 3, 4}

B = {1, 2, 3, 4, 5}

A ⊂ B

36
New cards

Non-Subsets Definition

A is not a subset of B if at least one element of A is not in B.

37
New cards

Non-Subsets Example

A = {1, 2, 3, 4, 5}

B = {1, 2, 3, 4}

A ⊄ B

38
New cards

Supersets Definition

A is a superset of B if every element of B is an element of set A.

39
New cards

Supersets Example

A = {1, 2, 3, 4, 5}

B = {1, 2, 3, 4}

A ⊇ B

40
New cards

Proper Supersets Definition

A is a proper superset of B if:

  • Every element in B is an element of A

  • A is not equal to B

41
New cards

Proper Subsets Example

A = {1, 2, 3, 4, 5}

B = {1, 2, 3, 4}

A ⊃ B

42
New cards

Non-Supersets Definition

A is not a superset of B if at least one element of B is not in A.

43
New cards

Non-Supersets Example

A = {1, 2, 3, 4}

B = {1, 2, 3, 4, 5}

A ⊅ B

44
New cards

Universal Sets Definition

A non-empty set of all the possible elements relevant to the solution of a specific problem, denoted by U.

45
New cards

Complement Sets Definiton

The difference between the universal set and a given set.

46
New cards

Binary Relation Definition

Element a is related to element b through the relation R, where A × B is a superset of R.

47
New cards

Binary Relation Example

A = {a1, a2, a3, a4, a5}

B = {b1, b2, b3, b4, b5}

R = {<a1, b2>, <a2, b3>, <a3, b1>, <a4, b5>, <a5, b4>}

48
New cards

Ordered n-Tuples Definition

A set of n objects with an order associated with them.

49
New cards

Ordered n-Tuples Example

<a1, a2, a3, …, an>

50
New cards

n-ary Relation Definition

Involves n sets and can be described by a set of n-tuples.

51
New cards

Table Representation of Relation

A = {a, b, c}

B = {1, 2, 3}

C = {x, y, z}

R ⊆ A × B × C

<p>A = {a, b, c}</p><p>B = {1, 2, 3}</p><p>C = {x, y, z}</p><p>R ⊆ A × B × C</p>
52
New cards

Diagraph Representation of Relation

A = {1, 2, 3}

B = {<1,1>, <1,2>, <1, 3>, <2, 3>}

R = <A, B>

<p>A = {1, 2, 3}</p><p>B = {&lt;1,1&gt;, &lt;1,2&gt;, &lt;1, 3&gt;, &lt;2, 3&gt;}</p><p>R = &lt;A, B&gt;</p>
53
New cards

Union of Relations Definition

Forms a new relation from two relations consisting of all elements that are in either of the original relations.

54
New cards

Union of Relations Example

A = {1, 2}

B = {x, y}

R1 = {<1, x>, <2, y>}

R2 = {<1, x>, <2, x>}

R1 ⋃ R2 = {<1, x>, <2, y>, <2, x>}

55
New cards

Intersection of Relations Definition

Forms a new relation from two relations consisting of all elements that are in both of the original relations.

56
New cards

Intersection of Relations Example

A = {1, 2}

B = {x, y}

R1 = {<1, x>, <2, y>}

R2 = {<1, x>, <2, x>}

R1 ⋂ R2 = {<1, x>}

57
New cards

Difference of Relations Definition

Forms a new relation from two relations, consisting of all elements from the first relation that are not present in the second relation.

58
New cards

Difference of Relations Example

A = {1, 2}

B = {x, y}

R1 = {<1, x>, <2, y>}

R2 = {<1, x>, <2, x>}

R1 — R2 = {<2, y>}

R2 — R1 = {<2, x>}

59
New cards

Cartesian Product of Relations Definition

Forms a new relation from two relations, consisting of all the ordered pairs <1, 2>, where 1 is an element from the first relation, and 2 is an element from the second relation.

60
New cards

Cartesian Product of Relations Example

A = {1, 2}

B = {x, y}

R1 = {<1, x>, <2, y>}

R2 = {<1, x>, <2, x>}

R1 × R2 = {<1, x, 1, x>, <1, x, 2, x>, <2, y, 1, x>, <2, y, 2, x>}

61
New cards

Subrelations Definition

R1 is a subrelation of R2 if every ordered tuple that is an element of R1 is also an element of R2.

62
New cards

Subrelations Example

A = {1, 2}

B = {x, y}

R1 = {<1, x>, <2, y>}

R2 = {<1, x>, <1, y>, <2, y>}

R1 ⊆ R2

63
New cards

Symmetry of Relations Definition

When a relation contains both <a, b> and <b, a>, for any a and b in A.

64
New cards

Symmetry of Relations Example

A = {1, 2, 3, 4, 5}

R = {<1, 2>, <2, 1>, <3, 5>, <5, 3>}

65
New cards

Transitivity of Relations Definition

If a relation contains <a, b> and <b, c>, it contains <a, c> also.

66
New cards

Transitivity of Relations Example

A = {1, 2, 3, 4, 5}

R = {<1, 3>, <3, 5>, <1, 5>}

67
New cards

Reflexivity of Relations Definition

When a relations contains <a, a> for every element in A.

68
New cards

Reflexivity of Relations Example

A = {1, 2, 3, 4, 5}

R = {<1, 1>, <2, 2>, <3, 3>, <4, 4>, <5, 5>}

69
New cards

Irreflexivity of Relations Definition

When a relation does not contain <a, a> for every element in A.

70
New cards

Irreflexivity of Relations Example

A = {1, 2, 3, 4, 5}

R = {<1, 1>, <2, 2>, <3, 3>, <4, 4>}

71
New cards

Equivalence of Relations Definition

When a relation is reflexive, symmetric, and transitive.

72
New cards

Equivalence of Relations Example

A = {1, 2, 3, 4, 5}

B = {1, 2, 3, 4, 5}

R = {<1, 1>, <2, 2>, <3, 3>, <4, 4>, <5, 5>}

73
New cards

Function Definition

A special type of binary relation which associates each unique element of a set with an element of another set.

74
New cards

Domain of Functions Definition

The set of all input elements of the function.

75
New cards

Domain of Functions Example

A = {1, 2, 3, 4, 5} ← Domain

B = {a, b, c, d, e}

F : A → B

F = {<1, a>, <2, b>, <3, b>, <4, d>, <5, c>}

76
New cards

Codomain of Functions Definition

The set of all possible outputs of the function.

77
New cards

Codomain of Functions Example

A = {1, 2, 3, 4, 5} 

B = {a, b, c, d, e} ← Codomain

F : A → B

F = {<1, a>, <2, b>, <3, b>, <4, d>, <5, c>}

78
New cards

Range of Functions Definition

The set of all actual outputs of the function.

79
New cards

Range of Functions Example

A = {1, 2, 3, 4, 5}

B = {a, b, c, d, e}

F : A → B

F = {<1, a>, <2, b>, <3, b>, <4, d>, <5, c>}

G = {a, b, c, d} ← Range

80
New cards

Image of Functions Definition

The single output value produced by input x when passed through f.

81
New cards

Preimage of Functions Definition

The single input value which, when passed through f, produces output y.

82
New cards

Inverse of Functions Definition

Reverses the domain and codomain and produces a function with the same ordered pairs as the original, simply reversed.