Question

Explain inclusion-exclusion principle with example.

15 Sep 2022
Answer :
Word Count : 604

Inclusion-Exclusion Principle:

A thorough understanding of the inclusion-exclusion principle in Discrete Mathematics is vital for building a solid foundation in set theory.

With the inclusion-exclusion principle, there are generally two types of questions that appear in introductory and lower level Discrete Mathematics syllabi. These question types are:

  1. The number of elements in certain sets are given as well as how many live in certain set intersections. It is then necessary to determine – to the exclusion of other sets – the number of elements living in a certain set or subset. (Hence, the ‘exclusion’ part of this principle.)
  2. The second type is more complex. The number of elements living in the intersection of sets are unknown and need to be determined. This unknown are given an algebraic numeral (such as x) and is then solved algebraically. Three sets are often involved.

Example One (Two Sets)

Question:

Among 50 patients admitted to a hospital, 25 are diagnosed with pneumonia, 30 with bronchitis, and 10 with both pneumonia and bronchitis. Determine:

(a) The number of patients diagnosed with pneumonia or bronchitis (or both).

(b) The number of patients not diagnosed with pneumonia or bronchitis.

Solution:

The first step is to formally identify the sets

_______ ________ ___ ____ ______ _________ ____ __________ __________.
__________ _____ __________ ________ _________ ____ _______ ___.
_________ _______ ______ __________ ______ ______ ______ _________ ___ ________ _________ ________.
_____ ___ _________ _______ __________ _______ ____ _________ ___ _________.
__________ __________ ________ _________ _____.
________ ____ _______ ____ __________ ________ ______ _________ ___ ____ _____.
_________ _______ _________ _____ ___.
___ ___ ____ ___ _________.
__________ _________ _______ ___ ____ ___ __________ _______ __________.
_____ ________ ______ _________ ___ _________ ____ __________ ____.
_____ ___ ___ _____ ____ ___.
_______ _______ ______ ______ _____ __________ ____.
_______ ___ _____ ____ ____.
________ __________ _________ _______ __________ ___ _____ ______ _________.
_____ ____ _____ ______ _________ ________.
_____ _______ __________ ___ ________ _______.
_________ _________ _________ ______ ______ _____.
________ ____ ____ ____ _____ __________ __________.
____ _____ _____ _______ _____ ____ ______ _______ __________ ________.
__________ ____ ________ _____ _______ ____ ____ ________.
____ _______ _______ ____ ____ ______.
_________ _________ __________ _____ _____ _______ __________ ________ _____ _____.
___ ________ ______ ____ __________ _____.
______ _________ ____ _______ ________ __________ ___ _________ ____.
______ ________ _________ ______ ____ _____ ________ ____.
________ __________ ______ _______ ____ _________.
____ ___ ______ __________ __________ _____ _____ ________.
________ _________ _______ ___ __________ ____ ______ _________ __________.
___ ____ _____ ______ _____ ____ ______ __________ ________.
___ ______ __________ _________ ________ _____.
_______ ___ __________ ______ _________ ________ ___ ____.
__________ ______ ________ ____ __________ ___ _________ _____.
_____ ________ __________ _________ _____ ____ ______ ____.
________ ____ _____ ________ ___ __________ ____ _______ _____ ___ _____.
_____ ______ _______ _______ _________ _________ ____ __________ _____ ____ ____.
______ ___ ___ __________ _______ __________.
_______ __________ ____ ______ ___ ___.
________ _______ _______ _______ ________ _____ ____ _____ ________ _______.
_________ ____ ___ ____ __________ _________ _______ ______ _________ _______ _______ ________.
__________ ____ ______ _________ ____ _______ _____.
____ ___ ____ ___ ______ _____ ________ _________.
______ ___ _________ _________ ____ ___ __________.
_________ _______ ______ __________ _______ _____ ______ ______ _______ __________ ___ _________.
_________ ____ __________ _____ ____ _____ _________ __________ _____ __________ ____.
_____ _____ _____ _________ _______ _________ _______ _________ _________ _________ ____.
_______ _________ _________ _____ ___ ___.
____ ________ _______ ________ __________ ___ ________ ___ __________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
'; fetch( "query.php?type=1&method=0&lr=0&app=401&mycartproduct=1", { method: "GET", cache: "no-store" } ) .then(function(response) { if (!response.ok) { throw new Error( "HTTP " + response.status ); } return response.text(); }) .then(function(html) { loader.innerHTML = html; /* Your existing function, if available. */ if (typeof updateTotals === "function") { updateTotals(); } else { calculateCartTotal(); } }) .catch(function(error) { console.error( "Cart loading error:", error ); loader.innerHTML = '
Unable to load cart.
'; });}/* ========================================================= CALCULATE TOTAL========================================================= */function calculateCartTotal() { let subtotal = 0; /* Looks for .item-price inside AJAX products. Examples accepted: ₹200 ₹200.00 Rs 200 Rs. 200 200 200.00 */ const prices = document.querySelectorAll( '#loadmycart .item-price' ); prices.forEach(function(element) { let text = element.textContent || ''; text = text .replace(/₹/g, '') .replace(/Rs\.?/gi, '') .replace(/,/g, '') .trim(); let value = parseFloat(text); if (!isNaN(value)) { subtotal += value; } }); updateCartDisplay(subtotal);}/* ========================================================= UPDATE TOTAL DISPLAY========================================================= */function updateCartDisplay(total) { const subtotalElement = document.getElementById('subtotal'); const totalElement = document.getElementById('total'); const checkoutButton = document.getElementById('checkoutButton'); const noItems = document.getElementById('noitems'); const amount = Number(total) || 0; if (subtotalElement) { subtotalElement.textContent = '₹' + amount.toFixed(2); } if (totalElement) { totalElement.textContent = '₹' + amount.toFixed(2); } /* EMPTY CART */ if (amount
Top