Week 4 - (Part A) Relations
Week 4 - (Part A) Relations
Section…………………………………………………………………………………………….Page
Section 5: Lattices….…………………………..............................................................................8
Bibliography …………………………………………………………………………………….12
means is related to by
Example 1.1
Solutions 1.1
Therefore,
Ordered pairs in R
iv)
Example 1.2
i) Is ?
ii) Is ?
iii) Is
Solution 1.2
i) No, because ,
ii) Yes, because ,
iii) Yes, because .
R is reflexive
R is symmetric:
R is transitive:
In other words,
You can prove that a relation R on a set does not have a property of reflexivity, symmetry or transitivity
by finding a counterexample.
Example
Show if each of the relations and is reflexive, symmetric and transitive on set .
Solutions
Relation R:
Is not transitive because by counterexample we have (1,0) and (0,3) but we do not have (1,3), which is:
Relation S:
Is not symmetric because, by counterexample, we have (0,2) but we do not have (2,0), which means
Given a set and a relation defined on ; we say is a partially ordered set or poset, and is a
partial order relation if for all ,
Example
Solution
Example
Solution
Three comparable pairs: {3, 6}, {5, 15} and {10, 30}
An ordered set A is called linearly ordered (or totally ordered) if every pair of elements in set A is
comparable.
A graphical representation of a partially ordered set built from all comparable pairs of its elements from
bottom to top is called a Hasse Diagram. Each element of a partially ordered set has a point drawn for it
and two points have a line segment joining them according to the following rules:
If in a partially ordered set, then the point for should appear lower than the point for
in the drawing of the Hasse Diagram.
The two points for and should be joined by a line segment if and only if and form a
comparable pair.
Example
Draw Hasse Diagrams for the following sets provided that the relation is defined by
( ), where and are elements of the sets.
i)
ii)
Solution
A set of Maximal Elements is a collection of elements which are not succeeded by any other
element
A set of Minimal Elements is a collection of elements which are not preceded by any other
element
A Maximum Element (if it exists) is an element succeeding all other elements
A Minimum Element (if it exists) is an element preceding all other elements
Please take note that there exists only a unique maximum element and a unique minimum element in a
Hasse Diagram.
Examples
The first Hasse Diagram has as a set of Maximal elements and as a set of Minimal elements.
The second Hasse Diagram has 12 as a maximum/greatest element and 1 as a minimum/least element.
Section 5: Lattices
A lattice is a special type of partially ordered set (poset) which we will define following the definitions of some
terms.
Definition 5.1
Let be a partially ordered set on which is defined a partially ordered relation and let be any pair of
elements of ,
The meet of and , denoted by , is the greatest lower bound for and , also denoted as
The join of and , denoted by , is the least upper bound for x and y. also denoted as
A partially ordered set on which is defined a partially ordered relation is called a lattice if and only if
every pair of elements in has both a meet and a join.
We can also easily identify a lattice from its Hasse Diagram, i.e. the Hasse Diagram of a lattice is
wholly connected as a single component graph without any isolated point.
Example
Show that a poset of the divisors of 60, ordered by divisibility, is a lattice. Interpret its meet and join.
Solution
A set of divisors of 60 is {1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60}; from all of its comparable pairs, we
have the following as its Hasse diagram:
Since the Hasse diagram wholly connected, i.e. without any isolated point, we conclude that we have
that the poset of the divisors of 60, ordered by divisibility, is a lattice.
Interpretation:
Proposition 5.1
,
if and only if ,
if and only if ,
and ,
.
Proposition 5.2
Commutativity: ,
Associativity: and ,
Idempotence: and ,
Absorption: and .
While we can represent relations graphically as tables, an arrow diagram and other ways, here we will look at
representing relations graphically as directed graphs.
A directed graph is a set of nodes connected to each other by uni-directed edges (arrows). Each node represents a
point for one element of a given set and arrow between two points represents a relationship between those two
points.
The number of nodes in the graph equals the number of elements in the set on which the relation is
defined. Given a set and ; on the graph, there will
be a directed edge (arrow) from the node for to the node for A special case of an ordered pair
will present a self-loop on the node for
Example
The directed graph is able to indicate if the relation is reflexive, symmetric and/or transitive.
Reflexive: each node will have a self-loop. E.g. The graph in figure 5.1 indicates the relation is
not reflexive because point 2 and point 3 have no self-loops.
Symmetric: each arrow from one point to another will always have another arrow in the
opposite direction. E.g. The graph in figure 5.1 indicates the relation is not symmetric because,
for example, it has an arrow from point 1 to point 2 but has no arrow from point 2 to point 1.
Transitive: if there is an arrow from the first point to the second point and another arrow from
the second point to the third point, there will always be another arrow from the first point to the
third point. E.g.The graph in figure 5.1 indicates the relation is transitive.