SlideShare a Scribd company logo
1 of 40
Lecture 2 (part 1) Partial Orders Reading: Epp Chp 10.5
Outline ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
1. Revision Concrete World Abstract World Relation  R  from  A  to  B 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,3} {(1,2),(1,3),(2,3)} ___  R  ___ A B R      A      B Q: What can you do with relations? A: (1) Set Operations; (2) Complement; (3) Inverse; (4) Composition Q: What happens if  A  =  B ?
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      A 2 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
1. Revision ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
2. Definition ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
2. Definition ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
3.1 Examples (Partial Orders in life) ,[object Object],[object Object],[object Object],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 .
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 . Q: How long does it take to complete the entire project? (7) (14) (16) (19) (21) (20) (26) 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  (13) (10)
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 . Q: Critical Path? (7) (14) (16) (19) (21) (20) (26) 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  (13) (10)
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object]
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],True Always false LHS: False
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],LHS: False Vacuously/blankly/stupidly True
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],LHS: False Vacuously True
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],LHS: False Vacuously True
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],True True True True
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],True True True True
3.2 Examples (Finite Partial Orders) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
3.3 Examples (Common Infinite Posets) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],We will abbreviate the description of this relation to  R = (Z,    )
3.4 Examples (Common Infinite Posets) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],We will abbreviate the description of this relation to  R = (Z + , |  )
3.5 Examples (Common Infinite Posets) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],We will abbreviate the description of this relation to  R = (P(A),    )
4. Notation ,[object Object],[object Object],[object Object],[object Object],[object Object],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
4. Notation ,[object Object],[object Object],[object Object],[object Object],[object Object],Hence we have : 1. R = (Z,    )   2. R = (Z + , | )   3. R = (P(A),    )
4. Notation ,[object Object],[object Object],[object Object],[object Object],[object Object]
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 3 1 4 2 Let’s simplify the diagram 1. Eliminate all reflexive loops. 0 3 1 4 2
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 3 1 4 2 Let’s simplify the diagram 2. Eliminate all transitive arrows. 0 3 1 4 2 0 3 1 4 2
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 3 1 4 2 Let’s simplify the diagram 3. (a) Draw all arrow heads pointing upwards, and (b) eliminate arrow heads. 0 3 1 4 2 0 3 1 4 2 0 3 1 4 2
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 3 1 4 2 The result is a  Hasse Diagram . 0 3 1 4 2 0 3 1 4 2 0 3 1 4 2
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],1. Eliminate all reflexive loops. 0 4 2 1 3
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 4 2 1 3 1. Eliminate all reflexive loops. 2. Eliminate all transitive arrows.
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 4 2 1 3 1. Eliminate all reflexive loops. 2. Eliminate all transitive arrows.
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 4 2 1 3 1. Eliminate all reflexive loops. 2. Eliminate all transitive arrows. 3. (a) Draw all arrow heads pointing upwards, and (b) eliminate arrow heads.
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],0 4 2 1 3 1. Eliminate all reflexive loops. 2. Eliminate all transitive arrows. 3. (a) Draw all arrow heads pointing upwards, and (b) eliminate arrow heads.
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],You may draw the Hasse Diagram immediately if you are able to. 1 2 3 5 7 10 4 8 9 6
5. Visualisation Tool: Hasse Diagram ,[object Object],[object Object],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}
[object Object]

More Related Content

What's hot

Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
BindhuBhargaviTalasi
 
The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...
Victor Gorbatov
 
Potentialist reflection
Potentialist reflectionPotentialist reflection
Potentialist reflection
jamesstudd
 

What's hot (20)

Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Meta-theory of Actions: Beyond Consistency
Meta-theory of Actions: Beyond ConsistencyMeta-theory of Actions: Beyond Consistency
Meta-theory of Actions: Beyond Consistency
 
Mba Ebooks ! Edhole
Mba Ebooks ! EdholeMba Ebooks ! Edhole
Mba Ebooks ! Edhole
 
Computational logic First Order Logic
Computational logic First Order LogicComputational logic First Order Logic
Computational logic First Order Logic
 
Advanced Algorithms: Transform and conquer
Advanced Algorithms: Transform and conquerAdvanced Algorithms: Transform and conquer
Advanced Algorithms: Transform and conquer
 
Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system
 
Advance enginering mathematics
Advance enginering mathematicsAdvance enginering mathematics
Advance enginering mathematics
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
AI Lesson 16
AI Lesson 16AI Lesson 16
AI Lesson 16
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Fuzzy Set | Statistics
Fuzzy Set | StatisticsFuzzy Set | Statistics
Fuzzy Set | Statistics
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)
 
AI Lesson 13
AI Lesson 13AI Lesson 13
AI Lesson 13
 
AI Lesson 17
AI Lesson 17AI Lesson 17
AI Lesson 17
 
The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...
 
Potentialist reflection
Potentialist reflectionPotentialist reflection
Potentialist reflection
 
Relations
RelationsRelations
Relations
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Ft3 new
Ft3 newFt3 new
Ft3 new
 

Viewers also liked (6)

Post Classical Africa, America And Oceania
Post Classical Africa, America And OceaniaPost Classical Africa, America And Oceania
Post Classical Africa, America And Oceania
 
Maths nsw class 7 chapter 2 part 1
Maths nsw class 7 chapter 2 part 1Maths nsw class 7 chapter 2 part 1
Maths nsw class 7 chapter 2 part 1
 
Overview of oceania 2012
Overview of  oceania 2012Overview of  oceania 2012
Overview of oceania 2012
 
Australia and New Zealand
Australia and New ZealandAustralia and New Zealand
Australia and New Zealand
 
06 bentley3
06 bentley306 bentley3
06 bentley3
 
British exploration, colonization, & independence
British exploration, colonization, & independenceBritish exploration, colonization, & independence
British exploration, colonization, & independence
 

Similar to L08a

dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdf
SanjanaAdri
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.pps
indu psthakur
 

Similar to L08a (20)

Introductions to Relations
Introductions to RelationsIntroductions to Relations
Introductions to Relations
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Properties of relations
Properties of relationsProperties of relations
Properties of relations
 
Relations and functions
Relations and functions Relations and functions
Relations and functions
 
Relations and Functions 2
Relations and Functions 2Relations and Functions 2
Relations and Functions 2
 
Relation and function_xii
Relation and function_xiiRelation and function_xii
Relation and function_xii
 
Session Notes 2/23/14
Session Notes 2/23/14 Session Notes 2/23/14
Session Notes 2/23/14
 
Relation in Discrete Mathematics
Relation in Discrete Mathematics Relation in Discrete Mathematics
Relation in Discrete Mathematics
 
Ideals and factor rings
Ideals and factor ringsIdeals and factor rings
Ideals and factor rings
 
Existance Theory for First Order Nonlinear Random Dfferential Equartion
Existance Theory for First Order Nonlinear Random Dfferential EquartionExistance Theory for First Order Nonlinear Random Dfferential Equartion
Existance Theory for First Order Nonlinear Random Dfferential Equartion
 
Function and Relation.pdf
Function and Relation.pdfFunction and Relation.pdf
Function and Relation.pdf
 
Math
MathMath
Math
 
4.4 Set operations on relations
4.4 Set operations on relations4.4 Set operations on relations
4.4 Set operations on relations
 
A New Approach on Proportional Fuzzy Likelihood Ratio orderings of Triangular...
A New Approach on Proportional Fuzzy Likelihood Ratio orderings of Triangular...A New Approach on Proportional Fuzzy Likelihood Ratio orderings of Triangular...
A New Approach on Proportional Fuzzy Likelihood Ratio orderings of Triangular...
 
dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdf
 
relations (1).pdf
relations (1).pdfrelations (1).pdf
relations (1).pdf
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.pps
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 

Recently uploaded

₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
Diya Sharma
 
THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...
THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...
THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...
Faga1939
 
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
PsychicRuben LoveSpells
 

Recently uploaded (20)

Julius Randle's Injury Status: Surgery Not Off the Table
Julius Randle's Injury Status: Surgery Not Off the TableJulius Randle's Injury Status: Surgery Not Off the Table
Julius Randle's Injury Status: Surgery Not Off the Table
 
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Chaura Sector 22 ( Noida)
 
BDSM⚡Call Girls in Greater Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Greater Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Greater Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Greater Noida Escorts >༒8448380779 Escort Service
 
1971 war india pakistan bangladesh liberation.ppt
1971 war india pakistan bangladesh liberation.ppt1971 war india pakistan bangladesh liberation.ppt
1971 war india pakistan bangladesh liberation.ppt
 
Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 48 (Gurgaon)
Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 48 (Gurgaon)Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 48 (Gurgaon)
Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 48 (Gurgaon)
 
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
₹5.5k {Cash Payment} Independent Greater Noida Call Girls In [Delhi INAYA] 🔝|...
 
Busty Desi⚡Call Girls in Sector 62 Noida Escorts >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Sector 62 Noida Escorts >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Sector 62 Noida Escorts >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Sector 62 Noida Escorts >༒8448380779 Escort Service
 
Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 46 (Gurgaon)
Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 46 (Gurgaon)Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 46 (Gurgaon)
Enjoy Night ≽ 8448380779 ≼ Call Girls In Gurgaon Sector 46 (Gurgaon)
 
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
Nurturing Families, Empowering Lives: TDP's Vision for Family Welfare in Andh...
 
Enjoy Night ≽ 8448380779 ≼ Call Girls In Palam Vihar (Gurgaon)
Enjoy Night ≽ 8448380779 ≼ Call Girls In Palam Vihar (Gurgaon)Enjoy Night ≽ 8448380779 ≼ Call Girls In Palam Vihar (Gurgaon)
Enjoy Night ≽ 8448380779 ≼ Call Girls In Palam Vihar (Gurgaon)
 
America Is the Target; Israel Is the Front Line _ Andy Blumenthal _ The Blogs...
America Is the Target; Israel Is the Front Line _ Andy Blumenthal _ The Blogs...America Is the Target; Israel Is the Front Line _ Andy Blumenthal _ The Blogs...
America Is the Target; Israel Is the Front Line _ Andy Blumenthal _ The Blogs...
 
Group_5_US-China Trade War to understand the trade
Group_5_US-China Trade War to understand the tradeGroup_5_US-China Trade War to understand the trade
Group_5_US-China Trade War to understand the trade
 
THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...
THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...
THE OBSTACLES THAT IMPEDE THE DEVELOPMENT OF BRAZIL IN THE CONTEMPORARY ERA A...
 
06052024_First India Newspaper Jaipur.pdf
06052024_First India Newspaper Jaipur.pdf06052024_First India Newspaper Jaipur.pdf
06052024_First India Newspaper Jaipur.pdf
 
05052024_First India Newspaper Jaipur.pdf
05052024_First India Newspaper Jaipur.pdf05052024_First India Newspaper Jaipur.pdf
05052024_First India Newspaper Jaipur.pdf
 
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopkoEmbed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
Embed-2 (1).pdfb[k[k[[k[kkkpkdpokkdpkopko
 
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost LoverPowerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
Powerful Love Spells in Phoenix, AZ (310) 882-6330 Bring Back Lost Lover
 
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
AI as Research Assistant: Upscaling Content Analysis to Identify Patterns of ...
 
BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 135 Noida Escorts >༒8448380779 Escort Service
 
Embed-4.pdf lkdiinlajeklhndklheduhuekjdh
Embed-4.pdf lkdiinlajeklhndklheduhuekjdhEmbed-4.pdf lkdiinlajeklhndklheduhuekjdh
Embed-4.pdf lkdiinlajeklhndklheduhuekjdh
 

L08a

  • 1. Lecture 2 (part 1) Partial Orders Reading: Epp Chp 10.5
  • 2.
  • 3. 1. Revision Concrete World Abstract World Relation R from A to B 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,3} {(1,2),(1,3),(2,3)} ___ R ___ A B R  A  B Q: What can you do with relations? A: (1) Set Operations; (2) Complement; (3) Inverse; (4) Composition 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  A 2 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.
  • 6.
  • 7.
  • 8.
  • 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 . Q: How long does it take to complete the entire project? (7) (14) (16) (19) (21) (20) (26) 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 (13) (10)
  • 10. 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 . Q: Critical Path? (7) (14) (16) (19) (21) (20) (26) 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 (13) (10)
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.