Advertisement
Jakzon123

mad3105 asgn1

Feb 11th, 2023 (edited)
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. MAD3105 Asgn1 - Relations and Their Properties
  2.  
  3. Ex. Let n be a positive integer. How many binary relations are there on A x A if |A| = n?
  4. - |A X A| = |A| x |A| = n x n = n^2
  5.  
  6. Properties:
  7. reflexive - if every element in the set A is related to itself, relation R is reflexive
  8. irreflexive - if no element in the set A is related to itself, relation R is irreflexive
  9. symmetric - if for every pair of elements, the relation contains a swapped version of that pair, relation R is symmetric
  10. antisymmetric - if a pair of elements (a,b) exists, a = b && (b,a) cannot exist in the relation
  11. asymmetric - if a pair of elements (a,b) exists, (b,a) cannot be in the relation
  12. transitive - if a pair of elements (a,b) exists and a pair of elements (b,c) exists, (a,c) must also exist
  13.  
  14. Def.
  15. R1 XOR R2 = (R1 UNION R2) - (R1 INTERSECT R2)
  16.  
  17. Ex. If R = {(1,1), (1,2), (2,4), (3,1), (3,0)}, S = {(1,2), (2,0), (3,1), (0,0), (4,3)}, find S o R.
  18. - S o R = {(1,2), (1,0), (2,3), (3,2), (3,0)}
  19. - If something exists in R, such as (3,1), find all things in S that are related to 1, such as (1,2). This means that
  20. (3,2) must exist in S o R.
  21. __________________
  22. Ex. If M_R = | 1 | 0 | 0 |
  23. | 1 | 1 | 1 |
  24. |__0__|__1__|__0__|
  25.  
  26. __________________
  27. - M_R^-1 (inverse) = | 1 | 1 | 0 |
  28. | 0 | 1 | 1 |
  29. |__0__|__1__|__0__|
  30.  
  31. - inverse of a relation in matrix form is just the transpose of the original matrix
  32.  
  33. - M_R-comp (complement of R) = __________________
  34. | 0 | 1 | 1 |
  35. | 0 | 0 | 0 |
  36. |__1__|__0__|__1__|
  37.  
  38. - complement of a relation in matrix form, just swap zeroes and ones out to show pairs
  39.  
  40. __________________ __________________ __________________
  41. - M_(R o R) (R composed with R) = | 1 | 0 | 0 | | 1 | 0 | 0 | | 1 | 0 | 0 |
  42. | 1 | 1 | 1 | x | 1 | 1 | 1 | = | 1 | 1 | 1 |
  43. |__0__|__1__|__0__| |__0__|__1__|__0__| |__1__|__1__|__1__|
  44.  
  45. - just matrix multiplication
  46.  
  47. Ex. If a relation R = {(1,1), (2,1), (2,2), (2,3), (3,2)} is given in a matrix, identify if it is reflexive, (anti)symmetric, or transitive.
  48.  
  49. - If reflexive, main diagonal is all 1
  50. - If symmetric, everything on either side of main diagonal is equal
  51. - If antisymmetric, nothing outside of main diagonal is hit
  52. - If transitive...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement