ITD1111 Discrete Mathematics & Statistics STDTLP

Slides:



Advertisements
Similar presentations
Learning Objectives for Section 7.2 Sets
Advertisements

Introduction to Set Theory
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Instructor: Hayk Melikya
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
2.1 Sets. DEFINITION 1 A set is an unordered collection of objects. DEFINITION 2 The objects in a set are called the elements, or members, of the set.
Sets DISCRETE STRUCTURE ABDUL BASIT TAHIR, KAMRAN ALI, FAIZAN ILLAHI, NOMAN AHMAD, ARSALAN MUBASHIR.
Denoting the beginning
1 Section 1.7 Set Operations. 2 Union The union of 2 sets A and B is the set containing elements found either in A, or in B, or in both The denotation.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Chapter 2 The Basic Concepts of Set Theory
Sets 1.
Sets 1.
1 Learning Objectives for Section 7.2 Sets After today’s lesson, you should be able to Identify and use set properties and set notation. Perform set operations.
Mathematics.
Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities , Semester 2, Set Basics 1.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
MATHEMATICS XI SETS.
Set Notation.
This section will discuss the symbolism and concepts of set theory
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
Chapter 3 – Set Theory  .
MTH 231 Section 2.1 Sets and Operations on Sets. Overview The notion of a set (a collection of objects) is introduced in this chapter as the primary way.
Definition and Representation A set is a well-defined collection of objects; The objects are called elements or members of the set; A set can be represented.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Chapter 7 Logic, Sets, and Counting Section 2 Sets.
Set Theory Dr. Ahmed Elmoasry. Contents Ch I: Experiments, Models, and Probabilities. Ch II: Discrete Random Variables Ch III: Discrete Random Variables.
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
CompSci 102 Discrete Math for Computer Science
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Definition of a Set DM is study of discrete structures. Fundamental discrete structure upon which most of other discrete structures are built is the sets.
Chapter 2 With Question/Answer Animations. Section 2.1.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Introduction to Set theory. Ways of Describing Sets.
Chapter P Prerequisites: Fundamental Concepts of Algebra 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. 1 P.1 Algebraic Expressions, Mathematical.
Discrete Mathematics Lecture # 10. Set Theory  A well defined collection of {distinct} objects is called a set.  The objects are called the elements.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Unit :1 Set Theory Prof. A.J. SHAKADWIPI. Sets and Subsets A well-defined collection of objects. finite sets, infinite sets, subset A={1,3,5,7,9} B={x|x.
Discrete Mathematics Set.
Welcome to Form 4 Mathematics Topic for the day SETS.
College Algebra: Section 8.1 Sets and Counting Objectives of this Section Find All the Subsets of a Set Find All the Subsets of a Set Find the Intersection.
1 Section 1.2 Sets A set is a collection of things. If S is a set and x is a member or element of S we write x  S. Othewise we write x  S. The set with.
Set Operations Section 2.2.
Notions & Notations (2) - 1ICOM 4075 (Spring 2010) UPRM Department of Electrical and Computer Engineering University of Puerto Rico at Mayagüez Spring.
Discrete Mathematics Lecture # 10 Venn Diagram. Union  Let A and B be subsets of a universal set U. The union of sets A and B is the set of all elements.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Sets and Operations TSWBAT apply Venn diagrams in problem solving; use roster and set-builder notation; find the complement of a set; apply the set operations.
CPCS 222 Discrete Structures I
Section 6.1 Set and Set Operations. Set: A set is a collection of objects/elements. Ex. A = {w, a, r, d} Sets are often named with capital letters. Order.
Dr. Ameria Eldosoky Discrete mathematics
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
CSNB 143 Discrete Mathematical Structures
Lecture 04 Set Theory Profs. Koike and Yukita
Sets Section 2.1.
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
(є:belongs to , є:does not belongs to)
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
CS100: Discrete structures
Set Theory A B C.
        { } Sets and Venn Diagrams Prime Numbers Even Numbers
Operations with Sets A = { 1, 2, 3 ,4, 5} B = { 2, 4, 6, 8, 10}
CHAPTER 1 - Sets and Intervals
CHAPTER 1 - Sets and Intervals
ALGEBRA I - SETS : UNION and INTERSECTION
Chapter 7 Logic, Sets, and Counting
Introduction A set is a collection of objects.
Presentation transcript:

ITD1111 Discrete Mathematics & Statistics STDTLP Unit 1 Sets and Numbers IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1. Sets and Numbers 1.1 Introduction Sets are used to group objects together. Often the objects in a set have similar properties. The set is a fundamental discrete structure on which all other discrete structures are built, such as graphs, combinations etc. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Discrete structures are used in modelling and problem solving. There are many applications on the use of discrete structures in data storage, data communication and manipulation of data. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2 Sets, subsets and elements 1.2.1 Sets A set is a collection of objects called “elements” or “members”. We usually use: uppercase letters A, B, C, ......, to denote sets, and lowercase letters a, b, c, ......, to denote the elements of a set. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.2 - 1 A = {a, e, i, o, u} is a set and the list of all its elements is given. Example 1.2 - 2 B = {x : x is an integer, x > 0} Consider the set C = {1, 3, 5, 7, 9}. We write 3  C to mean that 3 belongs to the set C, and –5  C to mean that -5 does not belong to C. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2.2 Notation There are two ways to specify a particular set : 1) To list all its elements if it is possible. 2) To state the property which characterises the elements in the set. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2.3 Equality of sets Two sets A and B are equal if and only if they have exactly the same elements i.e. if every element belonging to A also belongs to B and if every element belonging to B also belongs to A. Example 1.2 - 3 Let A = {a, e, i, o, u}, B = {u, o, i, e, a} and C = {a, a, e, i, i, o, u} then A = B = C IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2.4 Universal set A universal set U is a set that contains all the objects under consideration. Example 1.2 - 4 U = the set of all students on this campus A = the set all full-time students on this campus B = the set of all students in this lecture theatre IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2.5 Empty set A set which contains no element is called the empty set or null set and is denoted by . Example 1.2 - 5 Let X = { y : , y is odd } then X is the empty set and we write X = . IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2.6 Subsets The set A is said to be a subset of B if every element of A is also an element of B. In symbols, A  B which is read as “A is a subset of B” or B  A which is read as “B contains A”. If A is not a subset of B then it is denoted by A  B. Example 1.2 - 6 Let A = {1, 3, 5} and B = {1, 2, 3, 4, 5} then A  B and B  A IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2.7 Disjoint sets If sets A and B have no elements in common, then we say that A and B are disjoint i.e. no element of A is in B and no element of B is in A. Example 1.2 - 7 Let A = {1, 3, 5, 7} and B = {2, 4, 6, 7} then A and B are not disjoint because 7 is in both sets: 7  A and 7  B IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.2.8 Sets of numbers Some sets of numbers occur often and special symbols are used for them. Z = the set of all integers For example, a subset of Z could be { 0, -2, 5, 3, -6, 12, …… } Z + = the set of positive integers (or natural nos.) = {x : x  Z and x > 0} For example, a subset of Z + could be { 1, 3, 5, 7, 9, …… } IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP N = set of non-negative integers = {x : x  Z and x  0} = { 0, 1, 2, 3, 4, …… } Q = set of rational numbers = { : x, y  Z and y  0} e.g. { 1/3, 7/4, –5/9, …… } is a subset of Q IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP R = set of real numbers e.g. { -2/3, -4, 0, 5, 4/9, …… } is a subset of R The above sets are related as follows: Z +  N  Z  Q  R IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.3 Venn diagrams A Venn diagram is a pictorial representation of sets by sets of points in the plane. In the diagram shown in the following page, the universal set U is represented by the interior of a rectangle, and the other sets are represented by disks lying inside the rectangle. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Figure 1 represents A  B and A  B. Figure 2 shows that A and B are disjoint. Figure 3 shows that A and B are not disjoint. U A B U B A U A B Figure 1 Figure 2 Figure 3 IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.4 Set operations 1.4.1 Union  The union of two sets A and B, denoted by A  B, is the set of all elements which belong to A or B or both i.e. A  B = { x : x  A or x  B } Figure 4 A  B is shaded. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.4 - 1 Let A = { a, b, c }, B = { 1, 2, 3 } and C = { a, c, e, 1, 3, 5 }. then A  B = { a, b, c, 1, 2, 3 } B  C = { 1, 2, 3, a, c, e, 5 } C  A = { a, c, e, 1, 3, 5, b } IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.4.2 Intersection  The intersection of two sets A and B, denoted by A  B, is the set of elements common to both A and B, i.e. A  B = { x : x  A and x  B } A B U Figure 5 A  B is shaded. Note : If A  B =  then A and B are disjoint. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.4 - 2 Let A = { a, b, c, d, e }, B = { c, d, e, f, g } and C = { a, e, i, o, u }. then A  B = { c, d, e } B  C = { e } C  A = { a, e } IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.4.3 Difference \ The difference of set A and B, denoted by A \ B is the set of elements which belong to A but not to B, i.e. A \ B = { x : x  A , x  B }. A \ B is also called the complement of B with respect to A. Figure 6 A \ B is shaded. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.4 - 3 Let S = { a, b, c, d } and T = { c, d, e, f }, then S \ T = { a, b } T \ S = { e, f } IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.4.4 Complement The complement of a set A, denoted by , is the set of elements which do not belong to A. It is the same as the difference of the universal set U and A i.e. Figure 7 is shaded. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.4 - 4 Let the universal set U be the set containing letters of the English alphabet and A = { a, b, c, x, y, z }. then = { d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w } IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.4 - 5 Use Venn diagrams to represent the following set expressions. (a) B C A A C B B C A IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP (b) A B C IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP 1.5 Algebra of sets Sets, under the operations of union, intersection and complement, satisfy the laws listed in the following table. We can use these laws of algebra of sets to simplify complicated set expressions. The following identities can be verified by drawing Venn diagrams. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Set identities IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.5 - 1 Let A, B and C be sets. Use laws of algebra of sets to simplify the following set expressions. (a) Commutative law Distributive law Note: only two operations are needed. IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP (b) Commutative law Distributive law Inverse law Identity law Absorption law IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

1.6 Application of Venn diagrams in counting Example 1.6 - 1 In a class of 50 college students, 30 study Pascal, 25 study C and 10 study both computer languages. How many students do not study computer language ? IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP No. of students who do not study computer language is 50 – 20 – 10 – 15 = 5 students U=50 Pascal C 10 20 15 IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP Example 1.6 - 2 In a survey of 160 passengers, an airline found that 48 preferred wine with their meals, 78 preferred mixed drinks, and 66 preferred ice tea. In addition, 12 enjoyed wine and mixed drinks, 18 enjoyed mixed drinks and ice tea, and 16 enjoyed ice tea and wine, and 4 passengers enjoyed them all. a) How many passengers want only iced tea with their meals? b) How many passengers do not like any of them? IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP

ITD1111 Discrete Mathematics & Statistics STDTLP a) No. of passengers = 36 No. of passengers = 160 – 24 – 52 – 36 – 12 – 8 – 14 – 4 = 10 IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP