{"id":3109,"date":"2025-06-09T10:15:35","date_gmt":"2025-06-09T10:15:35","guid":{"rendered":"https:\/\/diznr.com\/?p=3109"},"modified":"2025-06-09T10:15:35","modified_gmt":"2025-06-09T10:15:35","slug":"day-02-discrete-mathematics-for-computer-science-gate-ir-reflexive-relation-with-understanding-basic","status":"publish","type":"post","link":"https:\/\/www.reilsolar.com\/pdf\/day-02-discrete-mathematics-for-computer-science-gate-ir-reflexive-relation-with-understanding-basic\/","title":{"rendered":"Day 02- Discrete mathematics for computer science gate-Ir-reflexive Relation with basic understanding"},"content":{"rendered":"<p>Day 02- Discrete mathematics for computer science gate-Ir-reflexive Relation with basic understanding<\/p>\n<p>[fvplayer id=&#8221;257&#8243;]<\/p>\n<h3 data-start=\"0\" data-end=\"114\"><strong data-start=\"4\" data-end=\"112\">Day 02: Discrete Mathematics for Computer Science (GATE) \u2013 Irreflexive Relation with Basic Understanding<\/strong><\/h3>\n<h4 data-start=\"116\" data-end=\"173\"><strong data-start=\"121\" data-end=\"171\">\u00a0What is a Relation in Discrete Mathematics?<\/strong><\/h4>\n<p data-start=\"174\" data-end=\"374\">In Discrete Mathematics, a <strong data-start=\"201\" data-end=\"213\">relation<\/strong> is a set of ordered pairs that define a connection between elements of two sets. If a relation is defined on a single set, it is called a <strong data-start=\"352\" data-end=\"371\">binary relation<\/strong>.<\/p>\n<h3 data-start=\"381\" data-end=\"426\"><strong data-start=\"385\" data-end=\"424\">\u00a0What is an Irreflexive Relation?<\/strong><\/h3>\n<p data-start=\"427\" data-end=\"580\">A <strong data-start=\"429\" data-end=\"454\">relation R on a set A<\/strong> is called <strong data-start=\"465\" data-end=\"480\">irreflexive<\/strong> if <strong data-start=\"484\" data-end=\"498\">no element<\/strong> in the set is related to itself. That is, for every element <span class=\"katex\"><span class=\"katex-mathml\">aa<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">a<\/span><\/span><\/span><\/span> in <span class=\"katex\"><span class=\"katex-mathml\">AA<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">A<\/span><\/span><\/span><\/span>:<\/p>\n<p><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">(a,a)\u2209R(a, a) \\notin R<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mclose\">)<\/span><span class=\"mrel\"><span class=\"mord\">\u2208<\/span><span class=\"mord vbox\"><span class=\"thinbox\"><span class=\"llap\"><span class=\"inner\"><span class=\"mord\">\/<\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"base\"><span class=\"mord mathnormal\">R<\/span><\/span><\/span><\/span><\/span><\/p>\n<p data-start=\"605\" data-end=\"681\">This means that <strong data-start=\"621\" data-end=\"651\">self-loops are not allowed<\/strong> in an irreflexive relation.<\/p>\n<h4 data-start=\"683\" data-end=\"705\"><strong data-start=\"688\" data-end=\"703\">\u00a0Example:<\/strong><\/h4>\n<p data-start=\"706\" data-end=\"763\">Let <strong data-start=\"710\" data-end=\"727\">A = {1, 2, 3}<\/strong> and let <strong data-start=\"736\" data-end=\"741\">R<\/strong> be a relation on A:<\/p>\n<p><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">R={(1,2),(2,3),(3,1)}R = \\{(1,2), (2,3), (3,1)\\}<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">R<\/span><span class=\"mrel\">=<\/span><\/span><span class=\"base\"><span class=\"mopen\">{(<\/span><span class=\"mord\">1<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">2<\/span><span class=\"mclose\">)<\/span><span class=\"mpunct\">,<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">2<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">3<\/span><span class=\"mclose\">)<\/span><span class=\"mpunct\">,<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">3<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)}<\/span><\/span><\/span><\/span><\/span><\/p>\n<p data-start=\"800\" data-end=\"890\">Since <strong data-start=\"806\" data-end=\"854\">(1,1), (2,2), and (3,3) are NOT present in R<\/strong>, the relation is <strong data-start=\"872\" data-end=\"887\">irreflexive<\/strong>.<\/p>\n<h3 data-start=\"897\" data-end=\"964\"><strong data-start=\"901\" data-end=\"962\">\u00a0Difference Between Reflexive and Irreflexive Relations<\/strong><\/h3>\n<table data-start=\"965\" data-end=\"1351\">\n<thead data-start=\"965\" data-end=\"1021\">\n<tr data-start=\"965\" data-end=\"1021\">\n<th data-start=\"965\" data-end=\"976\">Property<\/th>\n<th data-start=\"976\" data-end=\"997\">Reflexive Relation<\/th>\n<th data-start=\"997\" data-end=\"1021\">Irreflexive Relation<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"1078\" data-end=\"1351\">\n<tr data-start=\"1078\" data-end=\"1157\">\n<td>Definition<\/td>\n<td>Every element relates to itself<\/td>\n<td>No element relates to itself<\/td>\n<\/tr>\n<tr data-start=\"1158\" data-end=\"1260\">\n<td>Condition<\/td>\n<td><span class=\"katex\"><span class=\"katex-mathml\">(a,a)\u2208R(a, a) \\in R<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mclose\">)<\/span><span class=\"mrel\">\u2208<\/span><\/span><span class=\"base\"><span class=\"mord mathnormal\">R<\/span><\/span><\/span><\/span> for all <span class=\"katex\"><span class=\"katex-mathml\">a\u2208Aa \\in A<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">a<\/span><span class=\"mrel\">\u2208<\/span><\/span><span class=\"base\"><span class=\"mord mathnormal\">A<\/span><\/span><\/span><\/span><\/td>\n<td><span class=\"katex\"><span class=\"katex-mathml\">(a,a)\u2209R(a, a) \\notin R<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">a<\/span><span class=\"mclose\">)<\/span><span class=\"mrel\"><span class=\"mord\">\u2208<\/span><span class=\"mord vbox\"><span class=\"thinbox\"><span class=\"llap\"><span class=\"inner\"><span class=\"mord\">\/<\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"base\"><span class=\"mord mathnormal\">R<\/span><\/span><\/span><\/span> for all <span class=\"katex\"><span class=\"katex-mathml\">a\u2208Aa \\in A<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">a<\/span><span class=\"mrel\">\u2208<\/span><\/span><span class=\"base\"><span class=\"mord mathnormal\">A<\/span><\/span><\/span><\/span><\/td>\n<\/tr>\n<tr data-start=\"1261\" data-end=\"1351\">\n<td>Example<\/td>\n<td><span class=\"katex\"><span class=\"katex-mathml\">R={(1,1),(2,2),(3,3),(1,2)}R = \\{(1,1), (2,2), (3,3), (1,2)\\}<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">R<\/span><span class=\"mrel\">=<\/span><\/span><span class=\"base\"><span class=\"mopen\">{(<\/span><span class=\"mord\">1<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)<\/span><span class=\"mpunct\">,<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">2<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">2<\/span><span class=\"mclose\">)<\/span><span class=\"mpunct\">,<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">3<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">3<\/span><span class=\"mclose\">)<\/span><span class=\"mpunct\">,<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">1<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">2<\/span><span class=\"mclose\">)}<\/span><\/span><\/span><\/span><\/td>\n<td><span class=\"katex\"><span class=\"katex-mathml\">R={(1,2),(2,3),(3,1)}R = \\{(1,2), (2,3), (3,1)\\}<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">R<\/span><span class=\"mrel\">=<\/span><\/span><span class=\"base\"><span class=\"mopen\">{(<\/span><span class=\"mord\">1<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">2<\/span><span class=\"mclose\">)<\/span><span class=\"mpunct\">,<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">2<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">3<\/span><span class=\"mclose\">)<\/span><span class=\"mpunct\">,<\/span><span class=\"mopen\">(<\/span><span class=\"mord\">3<\/span><span class=\"mpunct\">,<\/span><span class=\"mord\">1<\/span><span class=\"mclose\">)}<\/span><\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 data-start=\"1358\" data-end=\"1383\"><strong data-start=\"1362\" data-end=\"1383\">\u00a0Special Cases:<\/strong><\/h3>\n<p data-start=\"1384\" data-end=\"1583\"><strong data-start=\"1388\" data-end=\"1443\">A relation can be neither reflexive nor irreflexive<\/strong> if some but not all elements relate to themselves.<br data-start=\"1494\" data-end=\"1497\" \/><strong data-start=\"1501\" data-end=\"1522\">An empty relation<\/strong> is always irreflexive because it contains no pairs at all.<\/p>\n<h3 data-start=\"1590\" data-end=\"1658\"><strong data-start=\"1594\" data-end=\"1656\">\u00a0Importance of Irreflexive Relations in Computer Science<\/strong><\/h3>\n<p data-start=\"1659\" data-end=\"1950\">\u00a0Used in <strong data-start=\"1669\" data-end=\"1685\">graph theory<\/strong> for modeling <strong data-start=\"1699\" data-end=\"1718\">directed graphs<\/strong> without self-loops.<br data-start=\"1738\" data-end=\"1741\" \/>\u00a0Important in <strong data-start=\"1756\" data-end=\"1775\">order relations<\/strong> like <strong data-start=\"1781\" data-end=\"1805\">strict partial order<\/strong> and <strong data-start=\"1810\" data-end=\"1841\">strict preference relations<\/strong>.<br data-start=\"1842\" data-end=\"1845\" \/>\u00a0Helps in <strong data-start=\"1856\" data-end=\"1899\">programming languages &amp; automata theory<\/strong> for defining <strong data-start=\"1913\" data-end=\"1947\">transitions without self-loops<\/strong>.<\/p>\n<p data-start=\"1952\" data-end=\"2009\" data-is-last-node=\"\" data-is-only-node=\"\">Would you like <strong data-start=\"1967\" data-end=\"2005\">practice problems or more examples<\/strong>?<\/p>\n<h3 data-start=\"1952\" data-end=\"2009\"><a href=\"https:\/\/www2.cs.uh.edu\/~arjun\/courses\/ds\/DiscMaths4CompSc.pdf\" target=\"_blank\" rel=\"noopener\">Day 02- Discrete mathematics for computer science gate-Ir-reflexive Relation with basic understanding<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.cs.yale.edu\/homes\/aspnes\/classes\/202\/notes.pdf\" target=\"_blank\" rel=\"noopener\">Notes on Discrete Mathematics<\/a><\/h3>\n<p>Here is a clear and beginner-friendly explanation of <strong>Day 02 \u2013 Discrete Mathematics for Computer Science (GATE)<\/strong>, focused on <strong>Irreflexive Relation<\/strong>, with basic understanding.<\/p>\n<hr \/>\n<h2>\ud83d\udcd8 <strong>Discrete Mathematics \u2013 Day 02 Topic: Irreflexive Relations<\/strong><\/h2>\n<hr \/>\n<h3>\ud83d\udd0d <strong>What is a Relation? (Quick Recap)<\/strong><\/h3>\n<p>In set theory, a <strong>relation<\/strong> is a subset of a <strong>Cartesian product<\/strong> of a set with itself.<\/p>\n<p>For a set <strong>A<\/strong>, a <strong>relation R<\/strong> is a subset of <span class=\"katex\">A\u00d7AA \\times A<\/span>, meaning:<\/p>\n<p><span class=\"katex\">R\u2286A\u00d7AR \\subseteq A \\times A<\/span><\/p>\n<hr \/>\n<h2>\ud83d\udd01 <strong>Reflexive vs Irreflexive Relation<\/strong><\/h2>\n<h3>\u2705 <strong>Reflexive Relation:<\/strong><\/h3>\n<p>A relation <span class=\"katex\">RR<\/span> on set <span class=\"katex\">AA<\/span> is <strong>reflexive<\/strong> if:<\/p>\n<p><span class=\"katex\">\u2200a\u2208A,\u00a0(a,a)\u2208R\\forall a \\in A,\\ (a, a) \\in R<\/span><\/p>\n<blockquote><p>That means <strong>every element is related to itself<\/strong>.<\/p><\/blockquote>\n<hr \/>\n<h3>\ud83d\udeab <strong>Irreflexive Relation:<\/strong><\/h3>\n<p>A relation <span class=\"katex\">RR<\/span> on set <span class=\"katex\">AA<\/span> is <strong>irreflexive<\/strong> if:<\/p>\n<p><span class=\"katex\">\u2200a\u2208A,\u00a0(a,a)\u2209R\\forall a \\in A,\\ (a, a) \\notin R<\/span><\/p>\n<blockquote><p>That means <strong>no element is related to itself<\/strong>.<\/p><\/blockquote>\n<hr \/>\n<h3>\ud83d\udd01\ud83c\udd9a\ud83d\udeab Summary:<\/h3>\n<table>\n<thead>\n<tr>\n<th>Property<\/th>\n<th>Condition<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Reflexive<\/td>\n<td>Every element maps to itself<\/td>\n<td>(a, a) \u2208 R for all a \u2208 A<\/td>\n<\/tr>\n<tr>\n<td>Irreflexive<\/td>\n<td>No element maps to itself<\/td>\n<td>(a, a) \u2209 R for all a \u2208 A<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\ud83d\udcda <strong>Example of Irreflexive Relation<\/strong><\/h2>\n<p>Let <span class=\"katex\">A={1,2,3}A = \\{1, 2, 3\\}<\/span><\/p>\n<p>Let <span class=\"katex\">R={(1,2),(2,3),(3,1)}R = \\{(1, 2), (2, 3), (3, 1)\\}<\/span><\/p>\n<p>Now, check:<\/p>\n<ul>\n<li>(1,1) \u2209 R<\/li>\n<li>(2,2) \u2209 R<\/li>\n<li>(3,3) \u2209 R<\/li>\n<\/ul>\n<p>\u2705 So this is an <strong>irreflexive<\/strong> relation.<\/p>\n<hr \/>\n<h2>\u274c Not Irreflexive Example<\/h2>\n<p>Let <span class=\"katex\">R={(1,1),(1,2),(2,3)}R = \\{(1,1), (1,2), (2,3)\\}<\/span><\/p>\n<p>Here, (1,1) \u2208 R \u2192 so it&#8217;s <strong>not irreflexive<\/strong> because <strong>at least one<\/strong> reflexive pair exists.<\/p>\n<hr \/>\n<h2>\ud83d\udca1 Key Points to Remember<\/h2>\n<ul>\n<li>A relation <strong>can be neither reflexive nor irreflexive<\/strong>.<\/li>\n<li>A relation <strong>cannot be both reflexive and irreflexive<\/strong> at the same time.<\/li>\n<li>Reflexive \u2192 All diagonal elements included<\/li>\n<li>Irreflexive \u2192 No diagonal elements allowed<\/li>\n<\/ul>\n<hr \/>\n<h2>\ud83c\udfaf GATE\/CS Exam Tip:<\/h2>\n<p>For multiple-choice questions:<\/p>\n<ul>\n<li>Always check for all <span class=\"katex\">(a,a)(a,a)<\/span> for reflexivity<\/li>\n<li>If even one <span class=\"katex\">(a,a)\u2208R(a,a) \\in R<\/span>, then <strong>not<\/strong> irreflexive<\/li>\n<li>Use matrix or digraph methods if needed<\/li>\n<\/ul>\n<hr \/>\n<h2>\ud83e\udde0 Summary Table:<\/h2>\n<table>\n<thead>\n<tr>\n<th>Property<\/th>\n<th>Meaning<\/th>\n<th>Condition<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Reflexive<\/td>\n<td>All elements relate to themselves<\/td>\n<td>\u2200 a \u2208 A: (a, a) \u2208 R<\/td>\n<\/tr>\n<tr>\n<td>Irreflexive<\/td>\n<td>No element relates to itself<\/td>\n<td>\u2200 a \u2208 A: (a, a) \u2209 R<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p>Would you like:<\/p>\n<ul>\n<li>A <strong>PDF note or practice sheet<\/strong>?<\/li>\n<li><strong>MCQs with answers<\/strong> for GATE prep?<\/li>\n<li>A <strong>Hindi explanation<\/strong> for this topic?<\/li>\n<\/ul>\n<p>Let me know and I\u2019ll provide it!<\/p>\n<h3><a href=\"https:\/\/niamt.ac.in\/WriteReadData\/Mathematics%20(Discrete%20Structure).pdf\" target=\"_blank\" rel=\"noopener\">Day 02- Discrete mathematics for computer science gate-Ir-reflexive Relation with basic understanding<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.cl.cam.ac.uk\/~gw104\/DiscMath2012.pdf\" target=\"_blank\" rel=\"noopener\">Discrete Mathematics Using a Computer<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Day 02- Discrete mathematics for computer science gate-Ir-reflexive Relation with basic understanding [fvplayer id=&#8221;257&#8243;] Day 02: Discrete Mathematics for Computer Science (GATE) \u2013 Irreflexive Relation with Basic Understanding \u00a0What is a Relation in Discrete Mathematics? In Discrete Mathematics, a relation is a set of ordered pairs that define a connection between elements of two sets. [&hellip;]<\/p>\n","protected":false},"author":71,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-3109","post","type-post","status-publish","format-standard","hentry","category-discrete-mathematics"],"_links":{"self":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/comments?post=3109"}],"version-history":[{"count":0,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/3109\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/media?parent=3109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/categories?post=3109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/tags?post=3109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}