Docsity

Partial order Relations-Discrete Mathematics-Lecture Slides, Slides of Discrete Mathematics

Toggle sidebar
bg1
1
Partial Order Relations
Department of Computer & Information Sciences
Pakistan Institute of Engineering and App lied Sciences
Discrete Mathematics
Ordering
Partially Ordered Sets (Posets):
– Let A be a set, and let R be a relation on A that is
reflexive, antisymmetric, and transitive. Then R is a
partial order on A, and the pair (A, R) is called a
partially ordered set or poset for short.
2
Ordering
Partially Ordered Sets and Equivalence Relation:
– The only difference between an equivalence relation
and a partial order is that the former is symmetric and
the latter is antisymmetric.
Example 1:
– S is a set of sets
,
and the
p
artial order is a set inclusion ك
,p
Example 2:
– S is a set of integers, and R is ‘divides’: aRb ≡a|b
Example 3:
– S is a set of formulae, aRb iff a is a sub-formula of b
Example 4:
– S is the set of tasks to be scheduled, aRb means “a must finish
before b can run”
3
Ordering
Partially Ordered Sets:
–The symbol “≤” denotes a partial order on a set.
– Partial orderings are used to give an order to sets that
may not have a natural one.
4
Ordering
Comparable:
– Two elements x, y ∈A are comparable if x عy or y ع
x, otherwise, they are incomparable.
– We pronounce a عb as
– “a precedes b” or “b succeeds a.”
5
Ordering
Hasse or Poset Diagrams:
1) Construct a digraph representation of poset (A, R) so
that all arcs point up (except the loops).
2) Remove self-loops, because we know عis reflexive.
3) Remove redundant edges, because we know عis
titi
t
rans
iti
ve
4) Eliminate the arrows at the ends of arcs since
everything points up.
6
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Partial order Relations-Discrete Mathematics-Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!

Partial Order Relations

Department of Computer & Information SciencesPakistan Institute of Engineering and Applied Sciences

Discrete Mathematics

Ordering

Partially Ordered Sets (Posets):

  • Let A be a set, and let R be a relation on A that is reflexive, antisymmetric, and transitive. Then R is a partial order on A, and the pair (A, R) is called a partially ordered set or poset for short.

2

Ordering

Partially Ordered Sets and Equivalence Relation:

  • The only difference between an equivalence relation and a partial order is that the former is symmetric and the latter is antisymmetric. Example 1: - S is a set of sets, and the partial order is a set inclusion, p ك Example 2: - S is a set of integers, and R is ‘divides’: aRb ≡ a|b Example 3: - S is a set of formulae, aRb iff a is a sub-formula of b Example 4: - S is the set of tasks to be scheduled, aRb means “a must finish before b can run” 3

Ordering

Partially Ordered Sets:

  • The symbol “≤” denotes a partial order on a set.
  • Partial orderings are used to give an order to sets that may not have a natural one.

4

Ordering

Comparable:

  • Two elements x, y ∈ A are comparable if x ع y or y ع x, otherwise, they are incomparable.
  • We pronounce a ع b as
  • “a precedes b” or “b succeeds a.”

5

Ordering

Hasse or Poset Diagrams:

  1. Construct a digraph representation of poset (A, R) so that all arcs point up (except the loops).
  2. Remove self-loops, because we know ع is reflexive.
  3. Remove redundant edges, because we know ع is ttransitive iti
  4. Eliminate the arrows at the ends of arcs since everything points up.

6

docsity.com

Ordering

Hasse or Poset Diagrams:

7

Ordering

Hasse or Poset Diagrams:

8

Ordering

Hasse or Poset Diagrams:

9

Ordering

Hasse or Poset Diagrams:

10

Ordering

Example: Construct the Hasse diagram of (P({a, b, c}), ⊆). Solution: The elements of P({a, b, c}) are {φ, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}}

11

Ordering

Example: Given the partial order ({2, 3, 4, 5, 7, 14, 21}, |) or “a divides b”) draw the Hasse diagram Solution:

12

docsity.com

Ordering

Example:

  • Let (A, |) be a poset on the set A = {x ∈ Z | 2 ≤ x ≤ 15} where I represents the relation of divisibility. Draw the Hasse diagram and find the least element.

Solution:

  • The maximum (the greatest) element does not exist.

19

Ordering

Example:

  • Given the partial order ({ ׎, {a},{b}, {a,b,c}, {b,c}, {c,d}, {a,b,d} }, ك ). Draw the Hasse diagram and find maximal, minimal, maximum and minimum elements. Solution:

Maximal: {a, b, d}, {a, b, c}, {c,d} Minimal: φ Maximum: None Minimum: φ 20

Ordering

Lower Bound:

  • Let (S, ع) be a poset and let A⊆ S. If l is an element of S such that l ع a for all elements a∈A then l is a lower bound of A.

GGreatest Lower Bound: t t L B d

  • An element x that is a lower bound on a subset A and is greater than all other lower bounds on A is called the greatest lower bound on A. We abbreviate “glb”.

21

Ordering

Upper Bound:

  • Let (S, ع) be a poset and let A⊆ S. If u is an element of S such that a ع u for all elements a∈A then u is an upper bound of A.

LLeast Upper Bound: t U B d

  • An element x that is an upper bound on a subset A and is less than all other upper bounds on A is called the least upper bound on A. We abbreviate “lub”.

22

Hasse Diagrams

Example: In the partial order ({2, 3, 4, 5, 10, 12, 25, 50}, |), which elements, if any, are a. upper bounds of {4,10} b. upper bounds of {4, 10, 25} c. llower bounds of {4, 10, 25} b d f {4 10 25} d. lower bounds of {12, 20, 50} e. least upper bound of {2, 5, 10}

Hasse Diagrams

Solution: (^12 )

4 10 25

a. Upper bounds of {4,10} 20 b. Upper bounds of {4, 10, 25} None c. Lower bounds of {4, 10, 25} None d. Least upper bound of {2, 5} 10 e. Greatest lower bound of {12, 20} 4

3 2 5

docsity.com

Hasse Diagrams

Example: What are the lower/upper bounds and glb/lub of the sets {d, e, f}, {a, c} and {b, d} for the following poset.

Hasse Diagrams

Solution:

  • {d, e, f}
    • Lower Bounds: ∅, thus no glb either.
    • Upper Bounds: ∅, thus no lub either.
  • {a, c}
    • Lower Bounds: ∅, thus no glb either.
    • Upper Bounds: {h}, since its unique, lub is also h.
  • {b, d}
    • Lower Bounds: {b} and so also glb.
    • Upper Bounds: {d, g} and since d ع g, the lub is d.

Ordering

Lattice:

  • A lattice is partial order (L, ع) such that:
    • Every pair a, b of elements of L has a least upper bound in L called the join of a and b (joins exist).
    • Every pair a, b of elements of L has a greatest lower bound in L called the meet of a and b (meets exist).
  • The minimum and maximum of a lattice, if they exist, are called the bottom denoted by 0 or ⊥ and the top denoted by 1 or T, respectively. Examples:
    • (P(S), ⊆) is a lattice with a bottom and top.
    • (N, ع) is a lattice with a bottom but no top.
    • (N, |), where a | b (^27)

Ordering

Total Order:

  • A total order is a partial order in which every pair of elements is comparable. Example:
    • Natural numbers are totally ordered by the relation; ffor every pair of natural numbers a and b, either a i f t l b d b ith ≤≤ bb or b≤ a.

28

docsity.com