DIZNR INTERNATIONAL

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.

https://www.gyanodhan.com/video/7B5.%20GATE%20CSEIT/Discrete%20Mathematics%202/499.%20Day%2003Part%2005-%20Discrete%20mathematics%20for%20computer%20science%20-%20Finding%20Relation%20from%20Hasse%20Diagram.mp4

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:

  1. Vertices (Nodes): Represent elements of the set.
  2. Edges (Lines): Show the relation between elements. If there’s an edge from a to b, then a ≤ b.
  3. No Self-Loops: A node doesn’t relate to itself.
  4. No Transitive Edges: If a ≤ b and b ≤ c, the direct edge a ≤ c is removed.
  5. No Direction Arrows: Direction is understood bottom to top.

 Steps to Find Relations from Hasse Diagram:

  1. Identify All Elements: Write all elements in the set.
  2. List Minimal Elements: Start from the bottom of the diagram.
  3. Follow Relations: List the ordered pairs (a,b)(a, b) where there is a direct edge from a to b.
  4. Include Reflexive Pairs: If reflexivity is needed, add (a,a)(a, a) for each element.
  5. Check Transitivity: Ensure no missing pairs if transitivity is considered.

 Example:

Given a Hasse diagram with elements {1, 2, 3, 4}:

4
/ \
2 3
\ /
1

Relation Set (R):

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:

  1. Minimal and Maximal Elements: Bottom-most are minimal, top-most are maximal.
  2. Chains and Antichains: Chains are sequences where each element is related, while antichains have no relations.
  3. 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!

Day 03Part 05- Discrete mathematics for computer science – Finding Relation from Hasse Diagram.

Draw a Hasse diagram for (A,) (divisibility relation), where

5-Discrete-Mathematics.pdf

DISCRETE MATHEMATICS

Great! Let’s dive into Discrete Mathematics for Computer Science — Day 03, Part 05, focusing on:

Finding Relations from a Hasse Diagram


What is a Hasse Diagram?

A Hasse Diagram is a simplified visual representation of a partially ordered set (poset). It helps us understand the relationships between elements in a set based on a partial order (like “less than or equal to”).


Key Concepts You Must Know First:


Steps to Find Relation from a Hasse Diagram:

1. List All Elements of the Set

Start with the set shown in the diagram, say A = {a, b, c, d}.

2. Observe Direct Relations (Edges in the Diagram)

Each edge in the Hasse diagram shows a covering relation:
If there’s an edge from a to b, then a < b.

But remember:

3. Build the Partial Order Relation (≤)

From the diagram:


Example Hasse Diagram:

Imagine this simple diagram:

css
c
/ \
a b

From this:

Now build the relation R:

R = {

Final Relation:

r
R = {
(a,a), (b,b), (c,c),
(a,c), (b,c)
}

Tips for Solving in Exams or GATE:


Practice Problem

Given a Hasse Diagram with:

markdown
6
/ \
4 5
\ /
2

Find the relation R.

Solution:

csharp
R = {
(2,2), (4,4), (5,5), (6,6),
(2,4), (2,5), (4,6), (5,6),
(2,6) ← transitive from 246 and 256
}

Would you like:

Let me know how you’d like to continue!

Day 03Part 05- Discrete mathematics for computer science – Finding Relation from Hasse Diagram.

DIGITAL NOTES ON Discrete Mathematics B.TECH II YEAR