{"id":2894,"date":"2025-06-05T03:14:43","date_gmt":"2025-06-05T03:14:43","guid":{"rendered":"https:\/\/diznr.com\/?p=2894"},"modified":"2025-06-05T03:14:43","modified_gmt":"2025-06-05T03:14:43","slug":"day-05part-03-discrete-mathematics-for-computer-science-nested-quantifiers-and-application-its","status":"publish","type":"post","link":"https:\/\/www.reilsolar.com\/pdf\/day-05part-03-discrete-mathematics-for-computer-science-nested-quantifiers-and-application-its\/","title":{"rendered":"Day 05Part 03- Discrete Mathematics for computer science- Nested Quantifiers and its Application"},"content":{"rendered":"<p>Day 05Part 03- Discrete Mathematics for computer science- Nested Quantifiers and its Application<\/p>\n<p>[fvplayer id=&#8221;162&#8243;]<\/p>\n<h3 data-start=\"0\" data-end=\"73\"><strong data-start=\"4\" data-end=\"71\">\u00a0Day 05 | Part 03 &#8211; Discrete Mathematics for Computer Science<\/strong><\/h3>\n<h3 data-start=\"74\" data-end=\"122\"><strong data-start=\"77\" data-end=\"120\">Nested Quantifiers and Its Applications<\/strong><\/h3>\n<p data-start=\"124\" data-end=\"334\">In <strong data-start=\"127\" data-end=\"151\">Discrete Mathematics<\/strong>, <strong data-start=\"153\" data-end=\"168\">quantifiers<\/strong> are used to express logical statements involving variables. When <strong data-start=\"234\" data-end=\"294\">one quantifier is inside the scope of another quantifier<\/strong>, we call them <strong data-start=\"309\" data-end=\"331\">Nested Quantifiers<\/strong>.<\/p>\n<h3 data-start=\"341\" data-end=\"384\"><strong data-start=\"344\" data-end=\"382\">\u00a01. What Are Nested Quantifiers?<\/strong><\/h3>\n<p data-start=\"385\" data-end=\"499\">A <strong data-start=\"387\" data-end=\"408\">nested quantifier<\/strong> is when a logical expression contains <strong data-start=\"447\" data-end=\"478\">multiple quantifiers (\u2203, \u2200)<\/strong> within each other.<\/p>\n<p data-start=\"501\" data-end=\"714\"><strong data-start=\"504\" data-end=\"540\">Two types of nested quantifiers:<\/strong><br data-start=\"540\" data-end=\"543\" \/><strong data-start=\"547\" data-end=\"577\">Same type (\u2200&#8230;\u2200 or \u2203&#8230;\u2203)<\/strong> \u2013 Multiple universal or existential quantifiers.<br data-start=\"626\" data-end=\"629\" \/><strong data-start=\"633\" data-end=\"664\">Mixed type (\u2200&#8230;\u2203 or \u2203&#8230;\u2200)<\/strong> \u2013 One universal and one existential quantifier.<\/p>\n<h3 data-start=\"716\" data-end=\"757\"><strong data-start=\"720\" data-end=\"755\">Examples of Nested Quantifiers:<\/strong><\/h3>\n<h4 data-start=\"758\" data-end=\"806\"><strong data-start=\"763\" data-end=\"806\">(i) Universal Universal (\u2200x \u2200y P(x, y))<\/strong><\/h4>\n<ul data-start=\"807\" data-end=\"1014\">\n<li data-start=\"807\" data-end=\"902\"><strong data-start=\"809\" data-end=\"823\">Statement:<\/strong> &#8220;For all students and for all subjects, every student passes every subject.&#8221;<\/li>\n<li data-start=\"903\" data-end=\"1014\"><strong data-start=\"905\" data-end=\"927\">Mathematical Form:<\/strong> <span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u2200x\u2200yP(x,y)\u2200x \u2200y P(x, y)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">\u2200<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mord\">\u2200<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mord mathnormal\">P<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span> (Where <strong data-start=\"965\" data-end=\"976\">P(x, y)<\/strong> means &#8220;Student x passes subject y&#8221;)<\/li>\n<\/ul>\n<h4 data-start=\"1016\" data-end=\"1069\"><strong data-start=\"1021\" data-end=\"1069\">(ii) Existential Existential (\u2203x \u2203y P(x, y))<\/strong><\/h4>\n<ul data-start=\"1070\" data-end=\"1222\">\n<li data-start=\"1070\" data-end=\"1169\"><strong data-start=\"1072\" data-end=\"1086\">Statement:<\/strong> &#8220;There exists a student and a subject such that the student passes the subject.&#8221;<\/li>\n<li data-start=\"1170\" data-end=\"1222\"><strong data-start=\"1172\" data-end=\"1194\">Mathematical Form:<\/strong> <span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u2203x\u2203yP(x,y)\u2203x \u2203y P(x, y)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">\u2203<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mord\">\u2203<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mord mathnormal\">P<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<h4 data-start=\"1224\" data-end=\"1276\"><strong data-start=\"1229\" data-end=\"1276\">(iii) Universal Existential (\u2200x \u2203y P(x, y))<\/strong><\/h4>\n<ul data-start=\"1277\" data-end=\"1476\">\n<li data-start=\"1277\" data-end=\"1355\"><strong data-start=\"1279\" data-end=\"1293\">Statement:<\/strong> &#8220;For every student, there exists a subject that they pass.&#8221;<\/li>\n<li data-start=\"1356\" data-end=\"1408\"><strong data-start=\"1358\" data-end=\"1380\">Mathematical Form:<\/strong> <span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u2200x\u2203yP(x,y)\u2200x \u2203y P(x, y)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">\u2200<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mord\">\u2203<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mord mathnormal\">P<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li data-start=\"1409\" data-end=\"1476\"><strong data-start=\"1411\" data-end=\"1436\">Example in Real Life:<\/strong> Every person has at least one friend.<\/li>\n<\/ul>\n<h4 data-start=\"1478\" data-end=\"1529\"><strong data-start=\"1483\" data-end=\"1529\">(iv) Existential Universal (\u2203x \u2200y P(x, y))<\/strong><\/h4>\n<ul data-start=\"1530\" data-end=\"1730\">\n<li data-start=\"1530\" data-end=\"1599\"><strong data-start=\"1532\" data-end=\"1546\">Statement:<\/strong> &#8220;There exists a student who passes every subject.&#8221;<\/li>\n<li data-start=\"1600\" data-end=\"1652\"><strong data-start=\"1602\" data-end=\"1624\">Mathematical Form:<\/strong> <span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u2203x\u2200yP(x,y)\u2203x \u2200y P(x, y)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">\u2203<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mord\">\u2200<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mord mathnormal\">P<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/li>\n<li data-start=\"1653\" data-end=\"1730\"><strong data-start=\"1655\" data-end=\"1680\">Example in Real Life:<\/strong> &#8220;There is a doctor who can treat all patients.&#8221;<\/li>\n<\/ul>\n<h3 data-start=\"1737\" data-end=\"1786\"><strong data-start=\"1740\" data-end=\"1784\">\u00a02. Applications of Nested Quantifiers<\/strong><\/h3>\n<h3 data-start=\"1788\" data-end=\"1831\"><strong data-start=\"1792\" data-end=\"1829\">\u00a0Computer Science Applications<\/strong><\/h3>\n<p data-start=\"1832\" data-end=\"2163\"><strong data-start=\"1834\" data-end=\"1855\">Database Queries:<\/strong> Nested quantifiers are used in SQL for conditions like <em data-start=\"1911\" data-end=\"1956\">&#8220;For all customers, there exists an order.&#8221;<\/em><br data-start=\"1956\" data-end=\"1959\" \/><strong data-start=\"1961\" data-end=\"1982\">Algorithm Design:<\/strong> Used in defining properties of sorting, searching, and optimization problems.<br data-start=\"2060\" data-end=\"2063\" \/><strong data-start=\"2065\" data-end=\"2093\">Artificial Intelligence:<\/strong> Logical statements in AI systems use <strong data-start=\"2131\" data-end=\"2146\">quantifiers<\/strong> for reasoning.<\/p>\n<h3 data-start=\"2165\" data-end=\"2209\"><strong data-start=\"2169\" data-end=\"2207\">\u00a0Mathematical Theorems &amp; Proofs<\/strong><\/h3>\n<p data-start=\"2210\" data-end=\"2382\"><strong data-start=\"2212\" data-end=\"2230\">Prime Numbers:<\/strong> \u2200n (n is prime \u2192 \u2200d (if d divides n, then d = 1 or d = n))<br data-start=\"2289\" data-end=\"2292\" \/><strong data-start=\"2294\" data-end=\"2311\">Graph Theory:<\/strong> \u2203 a Hamiltonian path in a graph G such that \u2200 nodes v, v is visited.<\/p>\n<h3 data-start=\"2384\" data-end=\"2421\"><strong data-start=\"2388\" data-end=\"2419\">\u00a0Real-World Applications<\/strong><\/h3>\n<p data-start=\"2422\" data-end=\"2572\"><strong data-start=\"2424\" data-end=\"2442\">Cybersecurity:<\/strong> Every user has at least one authentication method.<br data-start=\"2493\" data-end=\"2496\" \/><strong data-start=\"2498\" data-end=\"2513\">Networking:<\/strong> Every device in a network can reach at least one server.<\/p>\n<h3 data-start=\"2579\" data-end=\"2645\"><strong data-start=\"2582\" data-end=\"2643\">\u00a03. Translating English Sentences to Logical Statements<\/strong><\/h3>\n<p data-start=\"2646\" data-end=\"2703\"><strong data-start=\"2648\" data-end=\"2701\">&#8220;Every website has at least one registered user.&#8221;<\/strong><\/p>\n<p><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u2200w\u2203u(R(w,u))\u2200 w \u2203 u (R(w, u))<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">\u2200<\/span><span class=\"mord mathnormal\">w<\/span><span class=\"mord\">\u2203<\/span><span class=\"mord mathnormal\">u<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">R<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">w<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">u<\/span><span class=\"mclose\">))<\/span><\/span><\/span><\/span><\/span><\/p>\n<p data-start=\"2736\" data-end=\"2800\"><strong data-start=\"2738\" data-end=\"2798\">&#8220;There exists a person who knows everyone in the group.&#8221;<\/strong><\/p>\n<p><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">\u2203p\u2200g(K(p,g))\u2203 p \u2200 g (K(p, g))<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord\">\u2203<\/span><span class=\"mord mathnormal\">p<\/span><span class=\"mord\">\u2200<\/span><span class=\"mord mathnormal\">g<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">K<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">p<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">g<\/span><span class=\"mclose\">))<\/span><\/span><\/span><\/span><\/span><\/p>\n<h3 data-start=\"2839\" data-end=\"2858\"><strong data-start=\"2842\" data-end=\"2856\">\u00a0Summary<\/strong><\/h3>\n<p data-start=\"2859\" data-end=\"3123\"><strong data-start=\"2861\" data-end=\"2883\">Nested quantifiers<\/strong> help in defining logical relations between multiple variables.<br data-start=\"2946\" data-end=\"2949\" \/><strong data-start=\"2951\" data-end=\"3028\">They are essential in databases, algorithms, AI, and mathematical proofs.<\/strong><br data-start=\"3028\" data-end=\"3031\" \/><strong data-start=\"3033\" data-end=\"3121\">Understanding quantifier order is important as it changes the meaning of statements.<\/strong><\/p>\n<p data-start=\"3125\" data-end=\"3192\" data-is-last-node=\"\" data-is-only-node=\"\">Would you like more examples or explanations on specific topics?<\/p>\n<h3 data-start=\"3125\" data-end=\"3192\"><a href=\"https:\/\/www2.cs.uh.edu\/~arjun\/courses\/ds\/DiscMaths4CompSc.pdf\" target=\"_blank\" rel=\"noopener\">Day 05Part 03- Discrete Mathematics for computer science- Nested Quantifiers and its Application<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.eecs.yorku.ca\/course_archive\/2008-09\/S\/1019\/Website_files\/06-nested-quantifiers.pdf\" target=\"_blank\" rel=\"noopener\">Nested Quantifiers<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.math.uh.edu\/~irina\/MATH3336\/3336Notes\/3336S15.pdf\" target=\"_blank\" rel=\"noopener\">Nested Quantifiers<\/a><\/h3>\n<h3 data-start=\"0\" data-end=\"72\">\ud83d\udcd8 <strong data-start=\"7\" data-end=\"70\">Day 05 \u2013 Part 03: Discrete Mathematics for Computer Science<\/strong><\/h3>\n<h2 data-start=\"73\" data-end=\"129\">\ud83d\udccdTopic: <strong data-start=\"85\" data-end=\"127\">Nested Quantifiers and Its Application<\/strong><\/h2>\n<p data-start=\"130\" data-end=\"178\"><em data-start=\"130\" data-end=\"178\">(For Class \/ GATE \/ Computer Science Students)<\/em><\/p>\n<hr data-start=\"180\" data-end=\"183\" \/>\n<h2 data-start=\"185\" data-end=\"214\">\u2705 <strong data-start=\"190\" data-end=\"214\">1. Quantifiers Recap<\/strong><\/h2>\n<p data-start=\"216\" data-end=\"316\">In predicate logic (first-order logic), <strong data-start=\"256\" data-end=\"271\">quantifiers<\/strong> are used to express statements over domains.<\/p>\n<h3 data-start=\"318\" data-end=\"346\">\ud83d\udd39 Two Main Quantifiers:<\/h3>\n<ul data-start=\"347\" data-end=\"556\">\n<li data-start=\"347\" data-end=\"439\">\n<p data-start=\"349\" data-end=\"389\"><strong data-start=\"349\" data-end=\"377\">Universal Quantifier (\u2200)<\/strong> \u2013 &#8220;For all&#8221;<\/p>\n<ul data-start=\"392\" data-end=\"439\">\n<li data-start=\"392\" data-end=\"439\">\n<p data-start=\"394\" data-end=\"439\">Example: <code data-start=\"403\" data-end=\"412\">\u2200x P(x)<\/code> \u2192 For all x, P(x) is true.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"440\" data-end=\"556\">\n<p data-start=\"442\" data-end=\"489\"><strong data-start=\"442\" data-end=\"472\">Existential Quantifier (\u2203)<\/strong> \u2013 &#8220;There exists&#8221;<\/p>\n<ul data-start=\"492\" data-end=\"556\">\n<li data-start=\"492\" data-end=\"556\">\n<p data-start=\"494\" data-end=\"556\">Example: <code data-start=\"503\" data-end=\"512\">\u2203x P(x)<\/code> \u2192 There exists an x such that P(x) is true.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr data-start=\"558\" data-end=\"561\" \/>\n<h2 data-start=\"563\" data-end=\"604\">\ud83d\udd01 <strong data-start=\"569\" data-end=\"604\">2. What Are Nested Quantifiers?<\/strong><\/h2>\n<p data-start=\"606\" data-end=\"690\">When <strong data-start=\"611\" data-end=\"652\">quantifiers appear inside one another<\/strong>, we call them <strong data-start=\"667\" data-end=\"689\">nested quantifiers<\/strong>.<\/p>\n<h3 data-start=\"692\" data-end=\"712\">\ud83d\udd38 General Form:<\/h3>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]\">text<\/div>\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs\"><button class=\"flex gap-1 items-center select-none px-4 py-1\" aria-label=\"Copy\">Copy<\/button><span class=\"\" data-state=\"closed\"><button class=\"flex items-center gap-1 px-4 py-1 select-none\">Edit<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-text\">\u2200x \u2203y P(x, y)   or   \u2203x \u2200y P(x, y)<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"761\" data-end=\"798\">The <strong data-start=\"765\" data-end=\"797\">order of quantifiers matters<\/strong>!<\/p>\n<hr data-start=\"800\" data-end=\"803\" \/>\n<h2 data-start=\"805\" data-end=\"843\">\ud83d\udd04 <strong data-start=\"811\" data-end=\"843\">3. Examples &amp; Interpretation<\/strong><\/h2>\n<h3 data-start=\"845\" data-end=\"865\">\u27a4 <strong data-start=\"851\" data-end=\"865\">Example 1:<\/strong><\/h3>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]\">text<\/div>\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs\"><button class=\"flex gap-1 items-center select-none px-4 py-1\" aria-label=\"Copy\">Copy<\/button><span class=\"\" data-state=\"closed\"><button class=\"flex items-center gap-1 px-4 py-1 select-none\">Edit<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-text\">\u2200x \u2203y (x + y = 0)<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"896\" data-end=\"1000\"><strong data-start=\"896\" data-end=\"908\">Meaning:<\/strong> For every x, there exists a y such that their sum is 0.<br data-start=\"964\" data-end=\"967\" \/>\u2705 <strong data-start=\"969\" data-end=\"977\">True<\/strong> (Let y = -x for any x)<\/p>\n<hr data-start=\"1002\" data-end=\"1005\" \/>\n<h3 data-start=\"1007\" data-end=\"1027\">\u27a4 <strong data-start=\"1013\" data-end=\"1027\">Example 2:<\/strong><\/h3>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]\">text<\/div>\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs\"><button class=\"flex gap-1 items-center select-none px-4 py-1\" aria-label=\"Copy\">Copy<\/button><span class=\"\" data-state=\"closed\"><button class=\"flex items-center gap-1 px-4 py-1 select-none\">Edit<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-text\">\u2203y \u2200x (x + y = 0)<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"1058\" data-end=\"1172\"><strong data-start=\"1058\" data-end=\"1070\">Meaning:<\/strong> There exists a y such that for all x, x + y = 0.<br data-start=\"1119\" data-end=\"1122\" \/>\u274c <strong data-start=\"1124\" data-end=\"1133\">False<\/strong> (No single y satisfies this for all x)<\/p>\n<hr data-start=\"1174\" data-end=\"1177\" \/>\n<h3 data-start=\"1179\" data-end=\"1227\">\ud83d\udd01 <strong data-start=\"1186\" data-end=\"1227\">Order of Quantifiers \u2013 Why It Matters<\/strong><\/h3>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"1229\" data-end=\"1413\">\n<thead data-start=\"1229\" data-end=\"1265\">\n<tr data-start=\"1229\" data-end=\"1265\">\n<th data-start=\"1229\" data-end=\"1241\" data-col-size=\"sm\">Statement<\/th>\n<th data-start=\"1241\" data-end=\"1251\" data-col-size=\"sm\">Meaning<\/th>\n<th data-start=\"1251\" data-end=\"1265\" data-col-size=\"sm\">True\/False<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"1303\" data-end=\"1413\">\n<tr data-start=\"1303\" data-end=\"1358\">\n<td data-start=\"1303\" data-end=\"1319\" data-col-size=\"sm\">\u2200x \u2203y P(x, y)<\/td>\n<td data-col-size=\"sm\" data-start=\"1319\" data-end=\"1353\">For every x, some y satisfies P<\/td>\n<td data-col-size=\"sm\" data-start=\"1353\" data-end=\"1358\">\u2705<\/td>\n<\/tr>\n<tr data-start=\"1359\" data-end=\"1413\">\n<td data-start=\"1359\" data-end=\"1375\" data-col-size=\"sm\">\u2203y \u2200x P(x, y)<\/td>\n<td data-col-size=\"sm\" data-start=\"1375\" data-end=\"1408\">Some y satisfies P for every x<\/td>\n<td data-col-size=\"sm\" data-start=\"1408\" data-end=\"1413\">\u274c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr data-start=\"1415\" data-end=\"1418\" \/>\n<h2 data-start=\"1420\" data-end=\"1471\">\ud83e\udde0 <strong data-start=\"1426\" data-end=\"1471\">4. Nested Quantifiers in Computer Science<\/strong><\/h2>\n<h3 data-start=\"1473\" data-end=\"1490\">\ud83d\udd38 Use Cases:<\/h3>\n<h4 data-start=\"1492\" data-end=\"1527\">\u2705 <strong data-start=\"1499\" data-end=\"1527\">1. Algorithm Correctness<\/strong><\/h4>\n<ul data-start=\"1528\" data-end=\"1658\">\n<li data-start=\"1528\" data-end=\"1658\">\n<p data-start=\"1530\" data-end=\"1612\">Example: &#8220;For every input, there exists an output such that algorithm terminates.&#8221;<\/p>\n<ul data-start=\"1615\" data-end=\"1658\">\n<li data-start=\"1615\" data-end=\"1658\">\n<p data-start=\"1617\" data-end=\"1658\"><code data-start=\"1617\" data-end=\"1658\">\u2200input \u2203output (Correct(input, output))<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 data-start=\"1660\" data-end=\"1702\">\u2705 <strong data-start=\"1667\" data-end=\"1702\">2. Database Queries (SQL Logic)<\/strong><\/h4>\n<ul data-start=\"1703\" data-end=\"1753\">\n<li data-start=\"1703\" data-end=\"1753\">\n<p data-start=\"1705\" data-end=\"1753\">Nested SELECT queries map to nested quantifiers.<\/p>\n<\/li>\n<\/ul>\n<h4 data-start=\"1755\" data-end=\"1808\">\u2705 <strong data-start=\"1762\" data-end=\"1808\">3. Formal Verification \/ Logic Programming<\/strong><\/h4>\n<ul data-start=\"1809\" data-end=\"1888\">\n<li data-start=\"1809\" data-end=\"1888\">\n<p data-start=\"1811\" data-end=\"1888\">Proving properties about programs and logical inference (e.g., in <strong data-start=\"1877\" data-end=\"1887\">Prolog<\/strong>)<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1890\" data-end=\"1893\" \/>\n<h2 data-start=\"1895\" data-end=\"1933\">\ud83e\uddee <strong data-start=\"1901\" data-end=\"1933\">5. Truth Tables &amp; Evaluation<\/strong><\/h2>\n<p data-start=\"1935\" data-end=\"2014\">For finite domains, you can <strong data-start=\"1963\" data-end=\"2013\">evaluate nested quantifiers using truth tables<\/strong>:<\/p>\n<p data-start=\"2016\" data-end=\"2035\">Let domain = {1, 2}<\/p>\n<h3 data-start=\"2037\" data-end=\"2049\">Example:<\/h3>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]\">text<\/div>\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs\"><button class=\"flex gap-1 items-center select-none px-4 py-1\" aria-label=\"Copy\">Copy<\/button><span class=\"\" data-state=\"closed\"><button class=\"flex items-center gap-1 px-4 py-1 select-none\">Edit<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-text\">\u2200x \u2203y (x + y = 3)<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"2081\" data-end=\"2087\">Check:<\/p>\n<ul data-start=\"2088\" data-end=\"2157\">\n<li data-start=\"2088\" data-end=\"2123\">\n<p data-start=\"2090\" data-end=\"2123\">x = 1 \u2192 \u2203y: 1 + y = 3 \u2192 y = 2 \u2705<\/p>\n<\/li>\n<li data-start=\"2124\" data-end=\"2157\">\n<p data-start=\"2126\" data-end=\"2157\">x = 2 \u2192 \u2203y: 2 + y = 3 \u2192 y = 1 \u2705<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"2159\" data-end=\"2201\">\u2705 Statement is <strong data-start=\"2174\" data-end=\"2182\">true<\/strong> for all x in {1,2}<\/p>\n<hr data-start=\"2203\" data-end=\"2206\" \/>\n<h2 data-start=\"2208\" data-end=\"2239\">\ud83c\udfaf <strong data-start=\"2214\" data-end=\"2239\">6. Practice Questions<\/strong><\/h2>\n<ol data-start=\"2241\" data-end=\"2495\">\n<li data-start=\"2241\" data-end=\"2307\">\n<p data-start=\"2244\" data-end=\"2270\">Determine the truth value:<\/p>\n<ul data-start=\"2274\" data-end=\"2307\">\n<li data-start=\"2274\" data-end=\"2307\">\n<p data-start=\"2276\" data-end=\"2307\"><code data-start=\"2276\" data-end=\"2295\">\u2200x \u2203y (x \u00d7 y = 1)<\/code> in integers<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"2309\" data-end=\"2356\">\n<p data-start=\"2312\" data-end=\"2335\">Translate into English:<\/p>\n<ul data-start=\"2339\" data-end=\"2356\">\n<li data-start=\"2339\" data-end=\"2356\">\n<p data-start=\"2341\" data-end=\"2356\"><code data-start=\"2341\" data-end=\"2356\">\u2203x \u2200y (x \u2265 y)<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"2358\" data-end=\"2414\">\n<p data-start=\"2361\" data-end=\"2381\">Rewrite using logic:<\/p>\n<ul data-start=\"2385\" data-end=\"2414\">\n<li data-start=\"2385\" data-end=\"2414\">\n<p data-start=\"2387\" data-end=\"2414\">&#8220;Every person has a friend&#8221;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"2416\" data-end=\"2495\">\n<p data-start=\"2419\" data-end=\"2455\">Change quantifier order and analyze:<\/p>\n<ul data-start=\"2459\" data-end=\"2495\">\n<li data-start=\"2459\" data-end=\"2495\">\n<p data-start=\"2461\" data-end=\"2495\"><code data-start=\"2461\" data-end=\"2476\">\u2203x \u2200y P(x, y)<\/code> vs <code data-start=\"2480\" data-end=\"2495\">\u2200y \u2203x P(x, y)<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr data-start=\"2497\" data-end=\"2500\" \/>\n<h2 data-start=\"2502\" data-end=\"2528\">\ud83d\udcdd <strong data-start=\"2508\" data-end=\"2528\">7. Summary Chart<\/strong><\/h2>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"2530\" data-end=\"2868\">\n<thead data-start=\"2530\" data-end=\"2569\">\n<tr data-start=\"2530\" data-end=\"2569\">\n<th data-start=\"2530\" data-end=\"2543\" data-col-size=\"sm\">Expression<\/th>\n<th data-start=\"2543\" data-end=\"2553\" data-col-size=\"sm\">Meaning<\/th>\n<th data-start=\"2553\" data-end=\"2569\" data-col-size=\"sm\">Common Usage<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"2610\" data-end=\"2868\">\n<tr data-start=\"2610\" data-end=\"2677\">\n<td data-start=\"2610\" data-end=\"2626\" data-col-size=\"sm\">\u2200x \u2203y P(x, y)<\/td>\n<td data-col-size=\"sm\" data-start=\"2626\" data-end=\"2656\">For each x, there is some y<\/td>\n<td data-col-size=\"sm\" data-start=\"2656\" data-end=\"2677\">Ensuring coverage<\/td>\n<\/tr>\n<tr data-start=\"2678\" data-end=\"2750\">\n<td data-start=\"2678\" data-end=\"2694\" data-col-size=\"sm\">\u2203x \u2200y P(x, y)<\/td>\n<td data-col-size=\"sm\" data-start=\"2694\" data-end=\"2718\">One x works for all y<\/td>\n<td data-col-size=\"sm\" data-start=\"2718\" data-end=\"2750\">Finding a universal solution<\/td>\n<\/tr>\n<tr data-start=\"2751\" data-end=\"2810\">\n<td data-start=\"2751\" data-end=\"2767\" data-col-size=\"sm\">\u2203x \u2203y P(x, y)<\/td>\n<td data-col-size=\"sm\" data-start=\"2767\" data-end=\"2787\">Some x and some y<\/td>\n<td data-col-size=\"sm\" data-start=\"2787\" data-end=\"2810\">Searching existence<\/td>\n<\/tr>\n<tr data-start=\"2811\" data-end=\"2868\">\n<td data-start=\"2811\" data-end=\"2827\" data-col-size=\"sm\">\u2200x \u2200y P(x, y)<\/td>\n<td data-col-size=\"sm\" data-start=\"2827\" data-end=\"2845\">All x and all y<\/td>\n<td data-col-size=\"sm\" data-start=\"2845\" data-end=\"2868\">Full generalization<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr data-start=\"2870\" data-end=\"2873\" \/>\n<p data-start=\"2875\" data-end=\"2890\">Would you like:<\/p>\n<ul data-start=\"2891\" data-end=\"2973\">\n<li data-start=\"2891\" data-end=\"2906\">\n<p data-start=\"2893\" data-end=\"2906\">\ud83d\udcc4 PDF Notes?<\/p>\n<\/li>\n<li data-start=\"2907\" data-end=\"2939\">\n<p data-start=\"2909\" data-end=\"2939\">\ud83d\udcfd\ufe0f Video Lecture suggestions?<\/p>\n<\/li>\n<li data-start=\"2940\" data-end=\"2973\">\n<p data-start=\"2942\" data-end=\"2973\">\ud83e\udde9 Practice quiz on this topic?<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"2975\" data-end=\"3016\" data-is-last-node=\"\" data-is-only-node=\"\">Let me know, and I\u2019ll prepare it for you.<\/p>\n<h3 data-start=\"2975\" data-end=\"3016\"><a href=\"https:\/\/fsw01.bcc.cuny.edu\/jorge.pineiro\/Lecture%205%20Nested%20quantifiers.pdf\" target=\"_blank\" rel=\"noopener\">Day 05Part 03- Discrete Mathematics for computer science- Nested Quantifiers and its Application<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/mrce.in\/ebooks\/Maths-Discrete%20Mathematics%20&amp;%20its%20Applications%208th%20Ed.pdf\" target=\"_blank\" rel=\"noopener\">Discrete Mathematics and Its Applications, Eighth Edition<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Day 05Part 03- Discrete Mathematics for computer science- Nested Quantifiers and its Application [fvplayer id=&#8221;162&#8243;] \u00a0Day 05 | Part 03 &#8211; Discrete Mathematics for Computer Science Nested Quantifiers and Its Applications In Discrete Mathematics, quantifiers are used to express logical statements involving variables. When one quantifier is inside the scope of another quantifier, we call [&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-2894","post","type-post","status-publish","format-standard","hentry","category-discrete-mathematics"],"_links":{"self":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/2894","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=2894"}],"version-history":[{"count":0,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/2894\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/media?parent=2894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/categories?post=2894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/tags?post=2894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}