SCC121: weeks 1-5 Flashcards

discrete maths and logic (94 cards)

1
Q

Define a set

A

-A collection of objects/elements/members
-no duplicate values
-unordered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe the function of the UNION operation

A

Values of two given sets are combined into another set, any duplicates are removed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe the function of the INTERSECTION operation

A

Values that are found in BOTH given sets are combined to form a single set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the concept of a cartesian product

A

The set of all possible ordered pairs, where the first component is a member of the first of two given sets, and the second component is of the second set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe an empty set

A

A set that contains no elements, the container still exists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are disjoint sets?

A

2 or more sets with no elements in common
Two sets where the intersection is an empty set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the difference between a proper subset and a subset

A

A proper subset is not equal to the super set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between a superset and a proper superset?

A

The superset cannot be equal to the subset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define a universal set

A

A non empty set of all possible elements relevant to the solution of a specific problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define a complement set

A

A complement set is the difference between a universal set and a subset of the universal set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define a binary relation

A

A relation between two distinct sets.
A set of ordered pairs, a subset of the cartesian product

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is the cardinality of a set?

A

Number of elements contained within a set. when a set contains subsets, the elements of the subset are not counted, only the subset itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is an ordered pair?

A

a pair of objects with an order associated to them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is a cartesian product?

A

the set of all possible ordered pairs between two sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is an ordered n tuple?

A

same concept as an ordered pair, only containing n elements instead of two

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what values constitute the cartesian product of n sets?

A

a set of ordered n tuples.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

describe an n-ary relation.

A

a relation defined across n sets, described as a set of n tuples. a subset of the cartesian product of n sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

what is a subrelation?

A

same concept as subsets, only a relation whose every element can be found within a different relation, where the two relations are not equal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

list the properties of relations:

A

-symmetry
-transitivity
-reflexivity
-irreflexivity
-equivalence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

what is the concept of the property symmetry in relation to relations?

A

for any ordered pair <a,b> in a relation, <b,a> can also be found in the relation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

what is the concept of the property transitivity in relation to relations?

A

for the two ordered pairs <a,b>,<b,c> in a relation, the ordered pair <a,c> must be an element in the relation for the relation to be considered transitive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

what is the concept of reflexivity in relation to relations?

A

every element of the set on which the relation is defined should be in a relation with itself. eg. for element ‘a’, <a,a> must be an element of the relation set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

what is the concept of irreflexivity in relation to relations?

A

no element of the set on which the relation is defined can be in a relation with itself. eg. for element ‘a’, <a,a> CANNOT be an element of the relation set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

what is the concept of equivalence in relation to relations?

A

a relation is an equivalence relation if the relation is reflexive, symmetric and transitive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
define a function
a 'machine' which, given an input, produces a unique output -output value depends in some way on the input value
26
list some methods of displaying functions
-table -formula -graph
27
What are the two main rules used to define functions?
-inputs must only map to one output -every input must map to an output
28
define the domain and codomain
where f: A--->B -A = domain: the set of all possible inputs -B = codomain: the set of all possible outputs
29
define the range of a function
the set of values actually output by the function
30
what is the difference between the range and codomain?
the codomain is the set of all possible outputs, whereas the range is the set of values that are actually output by a function.
31
define the image and preimage of a function.
preimage = input image = output
32
define a bijective function
a function that is both injective and surjective A maps to B perfectly
33
what is meant by the term surjective? (referring to a function)
the range of the function must be equal to the codomain. -where f: A--->B, there can be no values of B that aren't mapped to by a value of A -every B has some A
34
what is meant by the term injective? (referring to functions)
for every image, there must only be one unique preimage. -where f: A-->B, no two values of A can map to the same value of B - B cannot have many A
35
describe the concept of a proposition
a claim/statement that is either True or False. Truth value is used to indicate state of a proposition
36
what is an atomic proposition?
a proposition whose outcome doesn't depend on another proposition
37
what is a compound proposition?
a proposition constructed of atomic propositions combined using fundamental connectives
38
what are fundamental connectives?
-AND -OR -XOR -NOT -Conditional -Biconditional
39
what is the name for a proposition formed with an AND connective?
conjunction
40
what is the name for a proposition formed with an OR connective?
disjunction
41
what is the name of a proposition formed by a XOR connective?
exclusive conjunction
42
what is the name of a proposition formed with a NOT connective?
negation
43
what are the components of a proposition formed with a CONDITIONAL connective? (if....then)
antecedent and consequent---> IF antecedent THEN consequent
44
describe a proposition containing BICONDITIONAL connective
constructed with an "if and only if" statement
45
how is the proposition of the connective "P AND Q" written?
P^Q
46
how is the proposition of the connective "P OR Q" written?
P v Q
47
how is the proposition of the connective "P XOR Q" written?
P ⊕ Q
48
how should the proposition "NOT P" be written?
~P
49
what is the condition for an AND proposition to be true?
each connected proposition must be true.
50
what is the condition for an OR proposition to be false?
each connected proposition must be false. If any connected proposition is true, the whole proposition is true
51
what are the conditions for a XOR proposition to be true?
an odd number of the connected propositions must be true for the whole proposition to be true
52
what are the conditions for a biconditional proposition to be true?
when each connected proposition has the same truth value.
53
what is a tautology?
a proposition which is always true, regardless of its atomic propositions.
54
what is a contradiction?
propositions that are always false regardless of their atomic propositions
55
what is a contingency?
propositions that are neither tautologies nor contradictions
56
what is logical equivalency?
two propositions can be logically equivalent if they have the same truth values under the same conditions
57
what is an argument?
a sequence of propositions that end in a conclusion
58
what is a premise
the basis on which we establish the conclusion
59
how are arguments written?
Premise 1 Premise 2 Premise n ---------------- therefore (dot dot dot) conclusion
60
what are inference rules?
templates for evaluating the validity of arguments
61
what are replacement rules?
rules for replacing parts of proposition with logically equivalent expression
62
describe the concept of modus ponens
structured around a conditional- "if it is raining, it is cloudy" it is raining, therefore it is cloudy.
63
describe the concept of modus tollens
a negated modus ponens: "if it is raining, it is cloudy"- it is not cloudy, therefore it is not raining
64
explain the concept of hypothetical syllogism
essentially linking multiple arguments by using implication. "if it is raining it will be cloudy" "if it is cloudy i will be sad" "if it is raining ----> i will be sad"
65
what is the point of replacement rules?
if two arguments are logically equivalent, they can be switched
66
commutative rule:
P v Q = QvP AND P ^Q = Q^P
67
Associative rule:
the grouping of propositions does not affect the result of conjunction/disjunction
68
what is the distributive rule?
P^(QvR) = (P^Q) v (P^R)
69
what is de morgan's replacement rule?
~P^~Q = ~(PvQ) ~Pv~Q = ~(P^Q)
70
what is the absorption rule?
P v (P^Q) = P P ^ (PvQ) = P
71
what are the identity rules?
P ^T = P ----> where T is a tautology Pv F = P ----->where F is a contradiction
72
what is the idempotence rule?
P^P = P PvP =P
73
what are the negation rules?
Pv~P= tautology P^~P = contradiction
74
what is the implication rule?
P---> Q = ~PvQ
75
what is the contraposition rule?
P--->Q = ~Q--->~P
76
what is the equivalence rule?
P<--> = (P--->Q)v (
77
what is disjunctive syllogism?
a sort of negation by using implication. "i will choose soup or salad" i didn't choose soup, therefore i chose salad.
78
describe some limits of propositional logic
- parts of propositions are undescribed -links between parts of propositions -statements like "for all", "for some" not covered ----> predicate logic allows propositions to be picked apart.
79
why is predicate logic necessary?
accounts for links between prepositions and qualifiers
80
describe the syntax of predicate logic
- terms- similar to subjects/objects -predicates- properties/relations -operators- connectors/quantifiers
81
what are the types of predicate logic?
-properties: typically 1 term -relationships: typically 2+ terms
82
what are atomic formulae?
consist of one predicate + one or more terms
83
84
85
86
87
88
89
90
91
92
93
94