Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.

Slides:



Advertisements
Similar presentations
Partial Orderings Section 8.6.
Advertisements

Fall 2014 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Relations Relations on a Set. Properties of Relations.
8.6 Partial Orderings. Definition Partial ordering– a relation R on a set S that is Reflexive, Antisymmetric, and Transitive Examples? R={(a,b)| a is.
Applied Discrete Mathematics Week 11: Graphs
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,
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.
Relations (3) Rosen 6th ed., ch fall.
Fall 2014 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Fall 2015 COMP 2300 Discrete Structures for Computation
1 Partial Orderings Aaron Bloomfield CS 202 Rosen, section 7.6.
Copyright © Cengage Learning. All rights reserved.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Discrete Structures – CNS2300
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
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.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 8 Relations 歐亞書局.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
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.
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
Problem Statement How do we represent relationship between two related elements ?
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
Chapter Relations and Their Properties
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.
Spring 2016 COMP 2300 Discrete Structures for Computation
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 0 Introduction Some slides are in courtesy of Prof.
Chap. 7 Relations: The Second Time Around
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Partial Order Relations Lecture 50 Section 10.5 Wed, Apr 20, 2005.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
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.
Partial Orderings: Selected Exercises
Modular Arithmetic with Applications to Cryptography
CSE 2813 Discrete Structures
Partial Orders.
Partial Orderings CSE 2813 Discrete Structures.
Introduction to Relations
CSNB 143 Discrete Mathematical Structures
Relations Binary relations represent relationships between the elements of two sets. A binary relation R from set A to set B is defined by: R  A 
Equivalence Relations
Relations Chapter 9.
Partial Orderings.
Reflexivity, Symmetry, and Transitivity
Aaron Bloomfield CS 202 Epp, section ???
Partial Order Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
Relations.
교환 학생 프로그램 내년 1월 중순부터 6월 초 현재 학부 2,3 학년?
Presentation transcript:

Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 8.5 Partial Order Relations

Antisymmetry Let R be a relation on a set A. R is antisymmetric if, and only if, for all a and b in A, if and then a = b. A relation R is NOT antisymmetric if and only if, there are elements a and b in A such that and but 2 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Testing for Antisymmetry of Finite Relations Example Let and be the relations on {0, 1, 2} defined as follows: Draw the directed graphs for and and indicate which relations are antisymmetric. a. b. 3 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Testing for Antisymmetry of “Divides” Relations Let be the “divides” relation on the set of all positive integers, and let be the “divides” relation on the set of all integers. a.Is antisymmetric? Prove or give a counterexample. b.Is antisymmetric? Prove or give a counterexample. 4 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Testing for Antisymmetry of “Divides” Relations Let be the “divides” relation on the set of all positive integers, and let be the “divides” relation on the set of all integers. a.Is antisymmetric? Prove or give a counterexample. Yes. Since b.Is antisymmetric? Prove or give a counterexample. No. Since 5 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Partial Order Relations Let R be a relation defined on a set A. R is a partial order relation if, and only if, R is reflexive, antisymmetric, and transitive. R is an equivalence relation if, and only if, R is reflexive, symmetric, and transitive. 6 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

The “Subset” Relation Let A be any collection of sets and define the “subset relation”,, on A as follows: For all A, Prove that is a partial order relation. A) is reflexive and transitive since It is also antisymmetric since 7 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

The “Divides” Relation on a Set of Positive Integers Let | be the “divides” relation on a set A of positive integers. That is, for all, Prove that | is a partial order relation on A. 1.Reflexive: and 1 is an integer. 2.Antisymmetric: True - Proved in Page 5. 3.Transitive: 8 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

The “Less Than or Equal to” Relation Let S be a set of real numbers and define the “less than or equal to” relation,, on S as follows: For all real number x and y in S, Show that is a partial order relation. 1.Reflexive: 2.Antisymmetric: 3.Transitive: 9 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Theorem Let A be a set with a partial order relation R, and let S be a set of strings over A. Define a relation on S as follows: For any two strings in S, and, where m and n are positive integers, If is the null string and s is any string in S, then If no strings are related other than by these three conditions, then is a partial order relation. 10 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University : “ x is less than or equal to y ”

Lexicographic Order The partial order relation of Theorem is called the lexicographic order for S that corresponds to the partial order R on A. Example Let A ={ x, y } and let R be the following partial order relation on A : Let S be the set of all strings over A, and denoted by the lexicographic order for S that corresponds to R. a.Is b.Is c.Is 11 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Lexicographic Order The partial order relation of Theorem is called the lexicographic order for S that corresponds to the partial order R on A. Example Let A ={ x, y } and let R be the following partial order relation on A : Let S be the set of all strings over A, and denoted by the lexicographic order for S that corresponds to R. a.Is Yes. b.Is Yes. c.Is Yes. 12 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Hasse Diagrams Let A = {1, 2, 3, 9, 18} and consider the “divides” relation on A : For all a, b in A, the directed graph of this relation has the following appearance: 13 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Hasse Diagrams – cont’ For any directed graph for a partial order relation, we can construct a Hasse Diagram as follows: Start with a directed graph of the relation, placing vertices on the page so that all arrows point upward. Then eliminate 1.The loops at all the vertices, 2.All arrows whose existence is implied by the transitive property, 3.The direction indicators on the arrows. 14 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Hasse Diagrams – cont’ Reconstructing a directed graph of a partial order relation R from a Hasse diagram 15 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Hasse Diagrams – cont’ Reconstructing a directed graph of a partial order relation R from a Hasse diagram 16 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Hasse Diagrams – cont’ Reconstructing a directed graph of a partial order relation R from a Hasse diagram 17 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Hasse Diagrams – cont’ Reconstructing a directed graph of a partial order relation R from a Hasse diagram 18 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Partially and Totally Ordered Sets Suppose is a partial order relation on a set A. Elements a and b of A are said to be comparable if, and only if, either a b or b a. Otherwise, a and b are called noncomparable. Two Partial Order Relations is comparable is noncomparable. If R is a partial order relation on a set A, and for any two elements a and b in A, either or, then R is a total order relation on A. 19 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

A Chain of Subsets Let A be a set that is partially ordered with respect to a relation. A subset B of A is called a chain if, and only if, the elements in each pair of elements in B is comparable. In other words, a b or b a for all a and b in A. The length of a chain is one less than the number of elements in the chain. Example The set P ({ a, b, c }) is partially ordered with respect to the subset relation. Find a chain of length 3 in P ({ a, b, c }). Since is a chain of length 3 in P ({ a, b, c }). 20 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Maximal, greatest, minimal, and least elements Let a set A be partially ordered with respect to a relation. 1.An element a in A is called a maximal element of A if, and only if, for all b in A, either b a or b and a are not comparable. 2.An element a in A is called a greatest element of A if, and only if, for all b in A, b a. 3.An element a in A is called a minimal element of A if, and only if, for all b in A, either a b or b and a are not comparable. 4.An element a in A is called a least element of A if, and only if, for all b in A, a b. 21 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Maximal, greatest, minimal, and least elements – cont’ Let A = { a, b, c, d, e, f, g, h, i } have the partial ordering defined by the following Hasse diagram. Find all maximal, minimal, greatest, and least elements of A. 22 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University Maximal element Greatest element Minimal element No least element

Topological Sorting Given partial order relation and on a set A, is compatible with if, and only if, for all a and b in A, if a b then a b. Given partial order relations and on a set A, is a topological sorting for if, and only if, is a total order that is compatible with. 23 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Constructing a Topological Sorting Let be a partial order relation on a nonempty finite set A. To construct a topological sorting, 1.Pick any minimal element x in A. 2.Set 3.Repeat Steps a-c while a.Pick any minimal element b.Define x y. c.Set and 24 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Example Consider the set A = {2, 3, 4, 6, 18, 24} ordered by the “divides” relation |. The Hasse diagram of this relation is the following: 25 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Example – cont’ There are two minimal elements: 2 and 3. Pick one of them arbitrarily (i.e. 3). Then, the beginning of the total order is Total order: 3 26 Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Example – cont’ Now only minimal element remaining is 2. Total order: Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Example – cont’ There are two minimal elements remaining: 4, 6. Pick 6. Total order: Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University

Example – cont’ We continue the process until nothing remains. Then we may have Total order: Fall 2015 COMP 2300 Department of Mathematics and Physics Donghyun (David) Kim North Carolina Central University