SCC121: weeks 1-5 Flashcards
discrete maths and logic (94 cards)
Define a set
-A collection of objects/elements/members
-no duplicate values
-unordered
Describe the function of the UNION operation
Values of two given sets are combined into another set, any duplicates are removed
Describe the function of the INTERSECTION operation
Values that are found in BOTH given sets are combined to form a single set.
Describe the concept of a cartesian product
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.
Describe an empty set
A set that contains no elements, the container still exists
What are disjoint sets?
2 or more sets with no elements in common
Two sets where the intersection is an empty set
Describe the difference between a proper subset and a subset
A proper subset is not equal to the super set
What is the difference between a superset and a proper superset?
The superset cannot be equal to the subset
Define a universal set
A non empty set of all possible elements relevant to the solution of a specific problem.
Define a complement set
A complement set is the difference between a universal set and a subset of the universal set.
Define a binary relation
A relation between two distinct sets.
A set of ordered pairs, a subset of the cartesian product
what is the cardinality of a set?
Number of elements contained within a set. when a set contains subsets, the elements of the subset are not counted, only the subset itself
what is an ordered pair?
a pair of objects with an order associated to them
what is a cartesian product?
the set of all possible ordered pairs between two sets.
what is an ordered n tuple?
same concept as an ordered pair, only containing n elements instead of two
what values constitute the cartesian product of n sets?
a set of ordered n tuples.
describe an n-ary relation.
a relation defined across n sets, described as a set of n tuples. a subset of the cartesian product of n sets.
what is a subrelation?
same concept as subsets, only a relation whose every element can be found within a different relation, where the two relations are not equal.
list the properties of relations:
-symmetry
-transitivity
-reflexivity
-irreflexivity
-equivalence
what is the concept of the property symmetry in relation to relations?
for any ordered pair <a,b> in a relation, <b,a> can also be found in the relation.
what is the concept of the property transitivity in relation to relations?
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.
what is the concept of reflexivity in relation to relations?
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.
what is the concept of irreflexivity in relation to relations?
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.
what is the concept of equivalence in relation to relations?
a relation is an equivalence relation if the relation is reflexive, symmetric and transitive.