Day 03Part 05- Discrete mathematics for computer science – Finding Relation from Hasse Diagram.
Day 03Part 05- Discrete mathematics for computer science – Finding Relation from Hasse Diagram.
Contents [hide]
- 1 Discrete Mathematics – Finding Relations from Hasse Diagram
- 2 What is a Hasse Diagram?
- 3 Key Components of a Hasse Diagram:
- 4 Steps to Find Relations from Hasse Diagram:
- 5 Example:
- 6 Quick Tips:
- 7 Day 03Part 05- Discrete mathematics for computer science – Finding Relation from Hasse Diagram.
- 8 Draw a Hasse diagram for (A,) (divisibility relation), where
- 9 5-Discrete-Mathematics.pdf
- 10 DISCRETE MATHEMATICS
Discrete Mathematics – Finding Relations from Hasse Diagram
What is a Hasse Diagram?
A Hasse Diagram is a graphical representation of a partially ordered set (poset). It simplifies the relation by removing self-loops, transitive edges, and directions.
Key Components of a Hasse Diagram:
- Vertices (Nodes): Represent elements of the set.
- Edges (Lines): Show the relation between elements. If there’s an edge from a to b, then a ≤ b.
- No Self-Loops: A node doesn’t relate to itself.
- No Transitive Edges: If a ≤ b and b ≤ c, the direct edge a ≤ c is removed.
- No Direction Arrows: Direction is understood bottom to top.
Steps to Find Relations from Hasse Diagram:
- Identify All Elements: Write all elements in the set.
- List Minimal Elements: Start from the bottom of the diagram.
- Follow Relations: List the ordered pairs (a,b)(a, b) where there is a direct edge from a to b.
- Include Reflexive Pairs: If reflexivity is needed, add (a,a)(a, a) for each element.
- Check Transitivity: Ensure no missing pairs if transitivity is considered.
Example:
Given a Hasse diagram with elements {1, 2, 3, 4}:
Relation Set (R):
- From 1 to 2 and 3: (1,2),(1,3)(1, 2), (1, 3)
- From 2 to 4: (2,4)(2, 4)
- From 3 to 4: (3,4)(3, 4)
Relation (R) = {(1,2),(1,3),(2,4),(3,4)}\{(1, 2), (1, 3), (2, 4), (3, 4)\}
If considering reflexive closure:
R={(1,1),(2,2),(3,3),(4,4),(1,2),(1,3),(2,4),(3,4)}R = \{(1, 1), (2, 2), (3, 3), (4, 4), (1, 2), (1, 3), (2, 4), (3, 4)\}
Quick Tips:
- Minimal and Maximal Elements: Bottom-most are minimal, top-most are maximal.
- Chains and Antichains: Chains are sequences where each element is related, while antichains have no relations.
- Transitive Closure: Ensure all indirect relations are captured if transitivity is required.
If you need a detailed explanation or more examples, feel free to ask!