




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Discrete Mathematics & Numerical Techniques
Typology: Study notes
1 / 129
This page cannot be seen from the preview
Don't miss anything!





























































































Contents
Unit 1 Set Theory Unit 2 Boolean Algebra
Discrete Mathematics & Numerical Techniques
Notes
case letters. a, b, c, x, y, etc. The relationship of an object to a set, of which it is an element, is called a relation of belonging. Examples:
(vi) Set of all rational numbers: Any number of the form p / q , where p and q are integers and q ≠ 0 is called a rational numbers. The set of all rational numbers is denoted by Q. (vii) Set of all complex numbers: Any number of the form a + ib where i = − 1. Types of Sets
Set Theory
Notes
Q +^ = the set of positive rational numbers = {r ∈ q | r > 0} R = the set of real nos. R+^ = the set of positive real numbers R‰^ = the set of non zero real numbers C = the set of complex numbers = {x + iy|x, y ∈ R, i^2 = –1} C+^ = the set of non zero complex numbers. For each n ∈ Z+^ , Zn = {0, 1, 2, ⁄⁄⁄., n – 1} For real nos a, b with a > b, [a, b] = {x ε R|a ≤ x ≤ b} [a, b] = {x ε R|a < x < b} [a, b] = {x ε R|a ≤ x < b} [a, b] = {x ε R|a < x ≤ b} The first set is called a closed interval, the seemed set an open interval, and the other two sets help open intervals.
Example: Which of the following are valid set definitions? A = {4, 5, 8} B = {a, b, a, c} C = {a, b} D = {1, 2, 3, 4, 5, 6} S: A is a valid set, containing three elements 4, 5, and 8. B looks to be equally valid except for the occurring of two aÊs. We can certainly check for inclusion within the set and this is surely the most important element. Hence we might regard this as valid and equal to {a, b, c}. However, there are problems that original definition of B and remove one of the aÊs then we apparently have a ∈ B and a ∈ B. This conclusion is not allowed since it is inconsistent, hence we shall regard repetition within a set as referring to the same element and its duplication as being an oversight; the removal of duplicates forms the basis of several mathematical arguments later on. C is a valid set, containing two elements, a and b. D is a valid set, containing 6 elements 1, 2, 3, 4, 5 and 6.
The most common method of describing the sets is as follows: z Roster method or listing method or Tabular method. z Set Builder method or property method or Rule method.
Set Theory
Notes
Example 2: Let P = {a, b, c, d, e, f} and Q = {a, b, c, d, g, h, i, j}, then P ∪ Q = {a, b, c, d, e, f, g, h, i, j}
Discrete Mathematics & Numerical Techniques
Notes
D = {10, 11, 12}, E = {9, 10, 11} F = {6, 7, 9}, then Universal set, S = {1, 2, 3, 4, 5, 6 7, 8, 9, 10, 11, or any super set of S}
Some Symbols
Discrete Mathematics & Numerical Techniques
Notes
Example: P is a mustiest that has as its elements the types of computer equipment needed by one department of a university where the multiplicities are the number of items required. Q is the same type of multi-set but for a different department. P = {107 PCs, 44 routers, 6 servers} Q = {14 PCs, 6 routers, 2 Macs} Problem 1: What combination of P and Q represents that the university must buy if there is no sharing of equipment? Solution: Since no equipment is shared, each department needs to have its own version of the equipment. Thus, the combination of equipment needed is: P + Q = {121 PCÊs, 50 routers, 6 servers, 2 Macs} Problem 2: What combination of P and Q represents, what must be bought if the two departments share? Solution: If the two departments share, then the number of each item is simply the maximum of the needs of both departments. Thus, the combination of equipment needed is: P ∪ Q = {107 PCÊs, 44 routers, 6 × servers, 2 Macs} Problem 3: What combination of P and Q represents the actual equipment that both departments share? Solution: The combination of equipment shared by the two departments is simply the overlap in the equipment needed by each department. Thus, the combination of equipment shared is: P ∪ Q = {14 PCÊs, 6 routers}. Solved Examples Example 1: Find the smallest set X such as, X ∪ {1, 2} = {1, 2, 3, 5, 9} Solution: Since X ∪ {1, 2} = {1, 2, 3, 5, 9} So, Smallest set X contains all the elements except {1, 2} So, X = {3, 5, 9} Example 2: Let A = {1, 2}, B = {2, 4, 6, 8} and C = {3, 4, 5, 6} Find. A ∪ B, B ∩ C, A – B, B – A, A ∩ (B ∪ C), A ∪ (B ∩ C), and (A ∪ B ∪ C) Solution: Here given, A = {1, 2, 3}, B = {2, 4, 6, 8} and C = {3, 4, 5, 6} A ∪ B = {1, 2, 3, 4, 6, 8} B ∩ C = {4, 6} A – B = {1, 3} B – A = {4, 6, 8} A ∩ (B ∪ C) = {1, 2, 3} ∩ {2, 4, 6, 8} ∪ {3, 4, 5, 6} = {1, 2, 3} ∩ {2, 3, 4, 5, 6, 8} = {2, 3} A ∪ (B ∩ C) = {1, 2, 3} ∪ {2, 4, 6, 8} ∩ {3, 4, 5, 6} = {1, 2, 3} ∪ {4, 6} = {1, 2, 3, 4, 6}
Set Theory
Notes
Example 3: If U = {1, 2, 3, 4, 5, 6, 7, 8, 9} A = {1, 2, 3, 4}, B = {2, 4, 6, 8} and C = {3, 4, 5, 6}
Solution: Here given U = {1, 2, 3, 4, 5, 6, 7, 8, 9}, A = {1, 2, 3, 4}, B = {2, 4, 6, 8} and C = {3, 4, 5, 6} Now, A′ = U – A A′ = {5, 6, 7, 8, 9} A ∪ B = {1, 2, 3, 4, 6, 8} (A ∪ B)′ = ∪ – (A ∪ B) = {5, 7, 9} (A ∩ C) = {3, 4} (A ∩ C)′ = U – (A ∩ C) = {1, 2, 5, 6, 7, 8, 9} B – C = {2, 8} (B – C)′ = U – (B – C) = {1, 3, 4, 5, 6, 7, 9} Example 4: Let U = R the set of all real numbers. If A = {x : x ∈ R, 0 < x < 2}, B = {x : x ∈ R, 1 < x 3} then, Find A′, B′, A ∪ B, A ∩ B. Solution: A′ = R – A = {x : x ∈ R and x ∉ A} = {x : (x ∈ R and x > 2) or (x ∈ R and x ª 0)} = {x : x ∈ R and x > R} ∪ {x : x ∈ R and x ≤ 0} B′ = {x : x ∈ R and x < 1} ∪ {x : x ∈ R and x > 3} Similarly: A ∪ B = {x : x ∈ R and 0 < x < 3} A ∩ B = {x : x ∈ R and 1 < x < 2} A – B = {x : x ∈ R and 0 < =1} Example 5 : If A = {2, 3, 4, 8, 10}, B = {1, 3, 4, 10, 12} and C = {4, 5, 6, 12, 14, 16} Find (A ∪ B) ∩ (A ∪ C) and (A ∩ B) ∪ (A ∩ C)? Solution: Here given A = {2, 3, 4, 8, 10}, B = {1, 3, 4, 10, 12} and C = {4, 5, 6, 12, 14, 16} then, A ∪ B = {1, 2, 3, 4, 8, 10, 12} A ∪ C = {2, 3, 4, 5, 6, 8, 10, 12, 14, 16} (A ∪ B) ∩ (A ∪ C) = {2, 3, 4, 8, 10, 12} A ∩ B = {3, 4, 10} A ∩ C = {4} (A ∩ B) ∪ (A ∩ C) = {3, 4, 10}
Set Theory
Notes
Discrete Mathematics & Numerical Techniques
Notes
⇒ x ∈ A ∪ B A A ∪ B ...(7) So by equations (6) and (7) we get, A B = A Now let A B = A i.e., x ∈ A or x ∈ B ⇒ x ∈ A x ∈ B ⇒ x ∈ A Hence, B ⊆ A i.e., A ∪ B = A ⇒ B ⊆ A or A ∪ B = A, Iff B ⊆ A (d) To prove A ∩ B = A, Iff A ⊆ B Let, A ⊆ B ∴ x ∈A ⇒ x ∈B ...(8) Now x ∈A ∩ B ⇒ x ∈A and x ∈B, ⇒ x ∈A i.e., A ∩ B ⊆ A ...(9) and x ∈A ⇒ x ∈ A and x ∈B by equation (8) ⇒ x ∈ A ∩ B A ⊆ A ∩ B ...(10) By equations (9) and (10) we get, A ∩ B = A ...(11) Now let A ∩ B = A i.e., x ∈A → x ∈A and x ∈B ∴ x ∈ A ⇒ x ∈ B i.e., A ⊆ B ...(12) By using equations (11) and (12) we get, A ∩ B = A iff A ⊆ B Properties of Intersection operation on sets:
Discrete Mathematics & Numerical Techniques
Notes
⇒ b ∈ A or b ∈ B or b ∈ C ⇒ b ∈ (A ∪ B) or b ∈ C ⇒ b ∈ (A ∪ B) or b ∈ C ⇒ b ∈ (A ∪ B) ∪ C ⇒ A ∪ (B ∪ C) ⊆ (A ∪ B)∪ C ...(2) By using equations (1) and (2) we get, A ∪ (B ∪ C) = (A ∪ B) ∪ C Properties of Union operation:
Set Theory
Notes
⇒ x ∈ A or x ∈ B or x ∈ C ⇒ x ∈ A or (x ∈ B or x ∈ C) ⇒ x ∈ A or x ∈ (B ∪ C) ⇒ x ∈ A ∪ (B ∪ C) ⇒ (A ∪ B) ∪ C ⊆ A ∪ (B ∪ C) ...(2) By using equations (1) and (2) we get, A ∪ (B ∪ C) = (A ∪ B) ∪ C