Docsity

Partial Orders: Understanding Reflexive, Antisymmetric, and Transitive Relations - Prof. M, Quizzes of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Partial Orders
Margaret M. Fleck
17 November 2008
Finishes the dicussion of partial orders (section 8.6 of Rosen).
1 Announcements
Last honors homework will be released shortly, probably due last Monday of
classes.
Quiz 3 will be in class, Wednesday after break.
2 Recap
Recall from last Friday that a partial order is a relation that is reflexive,
antisymmetric, and transitive. Unlike a total (linear) order, it lacks a guar-
antee that two elements will be ā€œcomparableā€, i.e. related in one or the other
direction. So ≤is a total order on the integers because for every p, q , either
p≤qor q≤p. The divides relation is a partial order, because some pairs of
numbers (e.g. 3 and 5) don’t divide one another in either order.
The relation <isn’t a partial order, because it’s not reflexive, it’s irreflex-
ive. Relations that are irreflexive, antisymmetric, and transitive are strict
partial orders. We will be concentrating on the normal (non-strict) partial
orders. The strict ones are closely related and fairly similar.
1
pf3
pf4
pf5

Partial preview of the text

Download Partial Orders: Understanding Reflexive, Antisymmetric, and Transitive Relations - Prof. M and more Quizzes Discrete Structures and Graph Theory in PDF only on Docsity!

Partial Orders

Margaret M. Fleck

17 November 2008

Finishes the dicussion of partial orders (section 8.6 of Rosen).

1 Announcements

Last honors homework will be released shortly, probably due last Monday of classes.

Quiz 3 will be in class, Wednesday after break.

2 Recap

Recall from last Friday that a partial order is a relation that is reflexive, antisymmetric, and transitive. Unlike a total (linear) order, it lacks a guar- antee that two elements will be ā€œcomparableā€, i.e. related in one or the other direction. So ≤ is a total order on the integers because for every p, q, either p ≤ q or q ≤ p. The divides relation is a partial order, because some pairs of numbers (e.g. 3 and 5) don’t divide one another in either order.

The relation < isn’t a partial order, because it’s not reflexive, it’s irreflex- ive. Relations that are irreflexive, antisymmetric, and transitive are strict partial orders. We will be concentrating on the normal (non-strict) partial orders. The strict ones are closely related and fairly similar.

A set with a partial order relation on it is called a partially ordered set, frequently abbreviated as poset.

We also saw a new type of stripped down graph representation, used only for partial orders, called a Hasse diagram. In this representation, you leave out the reflexive loop and arcs you can infer from transitivity. You also arrange the nodes on the page so all the arrows point up, then delete the arrowheads.

3 More examples of partial orders

Suppose we have a set A and build a collection S of subsets of A. Then set inclusion āŠ† is a partial order on S. For example, suppose A = {a, b, c} and S contains all subsets of A. Then we have

{a, b, c}

{a, b} {b, c} {a, c}

{a} {b} {c}

Notice that {a, b} and {b, c} aren’t comparable, because neither is a subset of the other.

Partial orders can be used to represent type relations, e.g. for variables types or classes in programming languages or for modelling our knowledge about the real world for artificial intelligence. These relationships often gen- erate graphs that are a bit like trees, but have crossing branches.

For example, suppose we let A be the set { 1 , 2 , 3 , 4 }, ordered by normal numerical ≤. Then (1, 2) ≤ (3, 4) and (2, 3) ≤ (2, 4) But (2, 3) isn’t compa- rable to (3, 2). So this is not a total order on the pairs, even though ≤ was a total order on the individual integers.

Alternatively, we can use lexicographic order. This says that

(a, b) ≤ (c, d) if and only if a < c or a = c and b ≤ d.

In this ordering, (2, 3) ≤ (3, 2) because the 2 < 3. In fact, all pairs of numbers are comparable. Lexicographic ordering on pairs is a total ordering if the individual items were totally ordered.

Lexicographic order is like the way you arrange words in a dictionary: sort them by the first characters, then sort by the second character etc. And we can extend the idea to longer lists:

  • (a 1 , a 2 ,... , an) ≤ (b 1 , b 2 ,... , bn) if a 1 < b 1 or if ai = bi for all i from 0 through k āˆ’ 1, and (if k < n) ak < bk

So (4, 3 , 2) ≤ (4, 3 , 3) because the first two elements are the same and 2 ≤ 3.

This idea can be extended to lists of varying length by treating all shorter lists as ≤ all longer lists. Alternatively, you can compare characters up to the length of the shorter string. If the shorter string is the same as the first portion of the longer string, put the shorter string first. The first method is often used in automata theory, the second is what you’d see in a normal dictionary.

5 Scheduling example

Partial orders are also used to represent the constraints in scheduling prob- lems. For example, suppose you are getting ready in the morning. Here’s a Hasse diagram of which tasks need to be done before which other tasks.

shoes coat

pants (^) socks shirt

shower

breakfast

Notice that some pairs of tasks can be done in either order, e.g. you can put on your socks before or after your shirt.

Sometimes a set with a partial order has a greatest element, i.e. an element that is ≄ all the other elements in the set. This was true for our subset and type examples. However, in this case, our graph has two elements at with nothing larger: ā€œshoesā€ and ā€œcoatā€. In such cases, both top elements are called maximal.

Officially, if (A, ) is a partially ordered set, then x ∈ A is maximal if and only if there is no y ∈ A such that x 6 = y and x  y.

Similarly, a partial order sometimes has a least element, i.e. an element that is smaller than all other elements. In this example (and in the types example above), we instead have two minimal elements.

6 Topological sorting

If we have a partial order showing the constraints, we can create one or more total orders that obey the constraints. These are called total orders compatible with the partial order or a topological sort or linearization of the partial order. Typically, there are many total orders compatible with a given partial order.

For example, here’s two topological sorts of our scheduling example, which represent two perfectly reasonable ways to get ready in the morning.

  • shower pants socks shirt breakfast shoes coat