1 Lecture 2 (part 1) Partial Orders Reading: Epp Chp 10.5.

Slides:



Advertisements
Similar presentations
Partial Orderings Section 8.6.
Advertisements

CSCI 115 Chapter 6 Order Relations and Structures.
Relations Relations on a Set. Properties of Relations.
Chapter 7 Relations : the second time around
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
1 Relations: The Second Time Around Chapter 7 Equivalence Classes.
Relations binary relations xRy on sets x  X y  Y R  X  Y Example: “less than” relation from A={0,1,2} to B={1,2,3} use traditional notation 0 < 1,
Discrete Mathematics Lecture#11.
Reflexive -- First sentence of proof is: (1) Let x  Z (2) Let (x,x)  R. (3) Let (x,x)  I (4) Let x  R.
Section 7.6: Partial Orderings Def: A relation R on a set S is called a partial ordering (or partial order) if it is reflexive, antisymmetric, and transitive.
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Partially Ordered Sets (POSets)
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
1 Partial Orderings Aaron Bloomfield CS 202 Rosen, section 7.6.
Copyright © Cengage Learning. All rights reserved.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Discrete Structures – CNS2300
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
1 Lecture 3 (part 3) Functions – Cardinality Reading: Epp Chp 7.6.
Discrete Math for CS Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation.
2.6 Equivalence Relation §1.Equivalence relation §Definition 2.18: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric,
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
8.3 Representing Relations Directed Graphs –Vertex –Arc (directed edge) –Initial vertex –Terminal vertex.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Relations and their Properties
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
1 Lecture 2 Equivalence Relations Reading: Epp Chp 10.3.
Sets and Subsets Set A set is a collection of well-defined objects (elements/members). The elements of the set are said to belong to (or be contained in)
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
1 Lecture 2 Equivalence Relations Reading: Epp Chp 10.3.
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
1 Lecture 2: Relations Relations Reading: Epp Chp 10.1, 10.2.
Chapter Relations and Their Properties
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Chap. 7 Relations: The Second Time Around
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and B = {a,b} {( 0, a), (
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 41 May 7, 2008.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
1 Partial Orderings Epp, section Introduction An equivalence relation is a relation that is reflexive, symmetric, and transitive A partial ordering.
Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation is a relation on.
Chapter 5 Relations and Operations
Chapter 6 Order Relations and Structures
CSE 2813 Discrete Structures
Partial Orders.
Partial Orderings CSE 2813 Discrete Structures.
Learn about relations and their basic properties
Equivalence Relations
Atmiya Institute of Technology & Science
6.1 Partially Ordered Sets
Relations Chapter 9.
Partial Orderings.
Aaron Bloomfield CS 202 Epp, section ???
Discrete Math (2) Haiming Chen Associate Professor, PhD
Formal Definition and Examples
Background material.
Relations.
교환 학생 프로그램 내년 1월 중순부터 6월 초 현재 학부 2,3 학년?
Background material.
Relations: The Second Time Around
Presentation transcript:

1 Lecture 2 (part 1) Partial Orders Reading: Epp Chp 10.5

2 Outline 1.Revision 2.Definition of poset 3.Examples of posets a.In life b.Finite posets c.Infinite posets 4.Notation 5.Visualization Tool: Hasse Diagram 6.Definitions –maximal, greatest, minimal, least. –2 Theorems 7.More Definitions –Comparable, chain, total-order, well-order

3 1. Revision Concrete World Abstract World a. ___ has been to ___ {John, Mary, Peter} {Tokyo, NY, HK}{(John,Tokyo), (John,NY), (Peter, NY)} b. ___ is in ___ {Tokyo, NY} {Japan, USA}{(Tokyo,Japan), (NY,USA)} c. ___ divides ___{1,2,3,4} {10,11,12} {(1,10),(1,11),(1,12), (2,10), (2,12),(3,12), (4,12)} d. ___ less than ___ {1,2,3} {(1,2),(1,3),(2,3)} ___ R ___ AB R  A  BR  A  B Q: What can you do with relations? A: (1) Set Operations; (2) Complement; (3) Inverse; (4) Composition Relation R from A to B Q: What happens if A = B ?

4 1. Revision Concrete World a. ___ same age as ___ {John, Mary, Peter} {(John,John), (Mary,Mary) (Peter,Peter), (Mary,Peter), (Peter,Mary)} b. ___ same # of elements as ___ { {}, {1}, {2}, {3.4} } { ({},{}), ({1},{1}), ({2},{2}) ({3,4},{3,4}) ({1},{2}), ({2},{1}) c. ___  ___ { {}, {1}, {2}, {1,2} } { ({},{}), ({},{1}), ({},{2}), ({},{1,2}), ({1},{1}), ({1},{1,2}), ({2},{2}), ({2},{1,2}) ({1,2},{1,2}) } d. ___  ___ {1,2,3} {(1,1),(1,2),(1,3),(2,2),(2,3),(3,3)} ___ R ___ A R  A2R  A2 Relation R on A “Everyone is related to himself” Reflexive “If x is related to y and y is related to z, then x is related to z.”Transitive “If x is related to y, then y is related to x ” Symmetric “If x is related to y and y is related to x, then x = y.”Anti-Symmetric

5 1. Revision n Given a relation R on a set A, –R is reflexive iff  x  A, x R x –R is symmetric iff  x,y  A, x R y  y R x –R is anti-symmetric iff  x,y  A, x R y  y R x  x=y –R is transitive iff  x,y  A, x R y  y R z  x R z

6 2. Definition n Given a relation R on a set A, –R is an equivalence relation iff R is reflexive, symmetric and transitive. ( Last Lecture) –R is a partial order iff R is reflexive, anti-symmetric and transitive. (This Lecture)

7 2. Definition n Given a relation R on a set A, –R is an partial order (or partially-ordered set; or poset) iff R is reflexive, anti- symmetric and transitive. n Q: How do I check whether a relation is an partial order? n A: Just check whether it is reflexive, anti-symmetric and transitive. Always go back to the definition. n Q: How do I check whether a relation is reflexive, symmetric and transitive? n A: Go back to the definitions of reflexive, symmetric and transitive.

8 3.1 Examples (Partial Orders in life) n PERT - Program Evaluation and Review Technique. n CPM - Critical Path Method n Used to deal with the complexities of scheduling individual activities needed to complete very large projects. Let T be the set of all tasks. We define a relation R on T such that x R y iff x = y or task x must be done before task y.

9 3.1 Examples (Partial Orders in life) Let T be the set of all tasks. We define a relation R on T such that x R y iff x = y or task x must be done before task y. Task 1 7 hrs Task 2 6 hrs Task 3 3 hrs Task 7 1 hrs Task 5 3 hrs Task 8 2 hrs Task 9 5 hrs Task 6 1 hrs Task 4 6 hrs Q: How long does it take to complete the entire project? (7) (13) (10) (14) (16) (19) (21) (20) (26)

Examples (Partial Orders in life) Let T be the set of all tasks. We define a relation R on T such that x R y iff x = y or task x must be done before task y. Task 1 7 hrs Task 2 6 hrs Task 3 3 hrs Task 7 1 hrs Task 5 3 hrs Task 8 2 hrs Task 9 5 hrs Task 6 1 hrs Task 4 6 hrs Q: Critical Path? (7) (13) (10) (14) (16) (19) (21) (20) (26)

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order?

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q1: Is R reflexive? Reflexive :  x  A, x R x (Always go back to the definition) n Yes, R is reflexive.

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q2: Is R anti-symmetric? n Anti-symmetric :  x,y  A, x R y  y R x  x=y (Again, the definition!)

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q2: Is R anti-symmetric? n Anti-symmetric :  x,y  A, x R y  y R x  x=y (Again, the definition!) TrueAlways false LHS: False

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q2: Is R anti-symmetric? n Anti-symmetric :  x,y  A, x R y  y R x  x=y (Again, the definition!) LHS: False Vacuously/blankly/ stupidly True

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q2: Is R anti-symmetric? n Anti-symmetric :  x,y  A, x R y  y R x  x=y (Again, the definition!) LHS: False Vacuously True

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q2: Is R anti-symmetric? n Anti-symmetric :  x,y  A, x R y  y R x  x=y (Again, the definition!) LHS: False Vacuously True

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q2: Is R anti-symmetric? n Anti-symmetric :  x,y  A, x R y  y R x  x=y (Again, the definition!) n Carry on checking… n Yes, it’s anti-symmetric

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q3: Is R transitive? n Transitive :  x,y,z  A, x R y  y R z  x R z (DEFINITION!!!)

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q3: Is R transitive? n Transitive :  x,y,z  A, x R y  y R z  x R z (DEFINITION!!!) True

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q3: Is R transitive? n Transitive :  x,y,z  A, x R y  y R z  x R z (DEFINITION!!!) True

Examples (Finite Partial Orders) n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4)} n Is R a partial order? Q3: Is R transitive? n Transitive :  x,y,z  A, x R y  y R z  x R z (DEFINITION!!!) n Carry on checking… n Yes, R is transitive.

Examples (Common Infinite Posets) n Let R be a relation on Z, such that x R y iff x  y n R is a partial order Reflexive:  x  Z, x  x Anti-symmetric:  x,y  Z, x  y  y  x  x=y Transitive:  x,y,z  Z, x  y  y  z  x  z We will abbreviate the description of this relation to R = (Z,  )

Examples (Common Infinite Posets) n Let R be a relation on Z +, such that x R y iff x | y n R is a partial order Reflexive:  x  Z +, x | x Anti-symmetric:  x,y  Z +, x|y  y|x  x=y Transitive:  x,y,z  Z +, x|y  y|z  x|z We will abbreviate the description of this relation to R = (Z +, |  )

Examples (Common Infinite Posets) n Let R be a relation on P(A), such that X R Y iff X  Y n R is a partial order Reflexive :  X  P(A), X  X Anti-symmetric :  X,Y  P(A), X  Y  Y  X  X=Y Transitive :  X,Y,Z  P(A), X  Y  Y  Z  X  Z We will abbreviate the description of this relation to R = (P(A),  )

26 4. Notation n In general, if we describe a partial order relation as: Let R be a relation on A, such that x R y iff x op y …we will shorten the description to R = (A, op) Of course, this can be done only when the relation can be described in terms of a simple operator. We will not be able to this if the relation is described by a complicated logical expression

27 4. Notation n In general, if we describe a partial order relation as: Let R be a relation on A, such that x R y iff x op y …we will shorten the description to R = (A, op) Hence we have: 1. R = (Z,  ) 2. R = (Z +, | ) 3. R = (P(A),  )

28 4. Notation n There are times when we discuss partial orders in general. In such cases we may write: R = (A, 9) as a general partial order. We choose the ‘9’ symbol to represent a general ordering operator because it looks like ‘  ’. This is done due to the fact that the ordering of the elements in the set convey the idea of one below the other (something like  on Z).

29 5. Visualisation Tool: Hasse Diagram n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4), (1,4)} Let’s simplify the diagram 1. Eliminate all reflexive loops

30 5. Visualisation Tool: Hasse Diagram n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4), (1,4)} Let’s simplify the diagram 2. Eliminate all transitive arrows

31 5. Visualisation Tool: Hasse Diagram n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4), (1,4)} Let’s simplify the diagram 3. (a) Draw all arrow heads pointing upwards, and (b) eliminate arrow heads

32 5. Visualisation Tool: Hasse Diagram n Let A = {0,1,2,3,4} n Let R = {(0,0), (3,1), (1,1), (0,4), (2,2), (3,4), (3,3), (4,4), (1,4)} The result is a Hasse Diagram

33 5. Visualisation Tool: Hasse Diagram Let A = {0,1,2,3,4}. Let R = (A,   n Draw the Hasse Diagram Eliminate all reflexive loops.

34 5. Visualisation Tool: Hasse Diagram Let A = {0,1,2,3,4}. Let R = (A,   n Draw the Hasse Diagram Eliminate all reflexive loops. 2. Eliminate all transitive arrows.

35 5. Visualisation Tool: Hasse Diagram Let A = {0,1,2,3,4}. Let R = (A,   n Draw the Hasse Diagram Eliminate all reflexive loops. 2. Eliminate all transitive arrows.

36 5. Visualisation Tool: Hasse Diagram Let A = {0,1,2,3,4}. Let R = (A,   n Draw the Hasse Diagram Eliminate all reflexive loops. 2. Eliminate all transitive arrows. 3. (a) Draw all arrow heads pointing upwards, and (b) eliminate arrow heads.

37 5. Visualisation Tool: Hasse Diagram Let A = {0,1,2,3,4}. Let R = (A,   n Draw the Hasse Diagram Eliminate all reflexive loops. 2. Eliminate all transitive arrows. 3. (a) Draw all arrow heads pointing upwards, and (b) eliminate arrow heads.

38 5. Visualisation Tool: Hasse Diagram Let A = {1,2,3,…,10}. Let R = (A, |  n Draw the Hasse Diagram You may draw the Hasse Diagram immediately if you are able to.

39 5. Visualisation Tool: Hasse Diagram Let A = {1,2,3}. Let R = (P(A),   n Draw the Hasse Diagram. R = ({ {}, {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3} },  ) {} {1} {3} {2} {1,2}{1,3} {1,2,3} {2,3}

40 n To be continued