Advertisement
Jakzon123

mad3105 asgn2

Feb 11th, 2023
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. MAD3105 Asgn2 - Closure of Relations
  2.  
  3. Ex. Set A = {0, 1}. Create a relation such that:
  4. - R is reflexive & symmetric.
  5. -> R = {(0,0), (1,1)}
  6.  
  7. - R is irreflexive but (R o R) is reflexive.
  8. -> R = {(0,1), (1,0)}
  9. -> This is b/c R^2 will end up with (0,0) and (1,1) as pairs
  10.  
  11. - R is asymmetric and irreflexive.
  12. -> R = {(1,0)} or R = {(0,1)} both work
  13. -> This is b/c nothing populates the central diagonal
  14.  
  15. Ex. Add closures to a digraph...
  16. - Reflexive closure: Make sure each node has a loop to itself
  17. - Symmetric closure: Make sure each edge has a return edge
  18. - Transitive closure: Erm... just make it transitive
  19.  
  20. Proof: Prove that if R is symmetric, its transitive closure (R*) is also symmetric.
  21. - Assume R is symmetric and (a,b) ∈ R*.
  22. - There exists a path from a -> b in R and since R is symmetric, there also exists a path from b -> a.
  23. - Thus there is a path from b -> a in the relation R and also the transitive closure of R.
  24. - Thus we have b -> a ∈ R* whenever a -> b ∈ R*.
  25. - Therefore, if R is symmetric, R* is also symmetric.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement