Sets Section 2.1.

Slides:



Advertisements
Similar presentations
Union Definition: The union of sets A and B, denoted by A B, contains those elements that are in A or B or both: Example: { 1, 2, 3} {3, 4, 5} = { 1,
Advertisements

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.
Chapter 5 Section 1 Sets Basics Set –Definition: Collection of objects –Specified by listing the elements of the set inside a pair of braces. –Denoted.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Sets 1.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/14/12 Ming-Hsuan Yang UC Merced 1.
CS 2210 (22C:019) Discrete Structures Sets and Functions Spring 2015 Sukumar Ghosh.
1 Discussion #21 Discussion #21 Sets & Set Operations; Tuples & Relations.
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.
2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples.
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)
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
1. Set Theory Set: Collection of objects (“elements”) a  A “a is an element of A” “a is a member of A” a  A “a is not an element of A” A = {a 1, a 2,
CompSci 102 Discrete Math for Computer Science
Section 2.2 Subsets and Set Operations Math in Our World.
ELEMENTARY SET THEORY.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 Basic Structure : Sets, Functions, Sequences, and Sums Sets Operations.
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.
Discrete Mathematics SETS. What is a set? ^A set is a unordered collection of “objects”  People in a class: {A yşe, B arış, C anan }  Cities in Turkey.
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.
Discrete Mathematics. Set Theory - Definitions and notation A set is an unordered collection of elements. Some examples: {1, 2, 3} is the set containing.
Discrete Mathematics CS 2610 January 27, part 2.
Discrete Mathematics Set.
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.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
Thinking Mathematically Venn Diagrams and Set Operations.
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.
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.
Sets, Permutations, and Combinations. Lecture 4-1: Sets Sets: Powerful tool in computer science to solve real world problems. A set is a collection of.
Set. Outline Universal Set Venn Diagram Operations on Sets.
Dr. Ameria Eldosoky Discrete mathematics
Applied Discrete Mathematics Week 1: Logic and Sets
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Set Definition: A set is unordered collection of objects.
Set Theory.
Discrete Structures – CNS 2300
Discrete Mathematical The Set Theory
CSNB 143 Discrete Mathematical Structures
Set, Combinatorics, Probability & Number Theory
CS 2210:0001 Discrete Structures Sets and Functions
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
… and now for something completely different…
Exercises Show that (P  Q)  (P)  (Q)
CS100: Discrete structures
Set Operations Section 2.2.
Session – 2 SETS & Operations of SETS
2.1 Sets Dr. Halimah Alshehri.
Sets. EXAMPLE 1 The set O of odd positive integers less than 10 can be expressed by O = { l, 3, 5, 7, 9}. * This way of describing a set is known as.
Discrete Mathematics CS 2610
Discrete Mathematics R. Johnsonbaugh
… and now for something completely different…
2.1 – Symbols and Terminology
Lecture Sets 2.2 Set Operations.
Sets & Set Operations.
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
Presentation transcript:

Sets Section 2.1

Sets Set - a collection of unordered objects Element /member - an object in a set Two ways of describing a Set: Specifying the elements explicitly V = {a, e, i, o, u} Specifying the property/properties of the elements (Set Builder notation) P = {x | x is a positive integer less than 10}

Set membership and common sets a  A a is an element of set A b  A b is not an element of set A Some notations: N Set of natural numbers Z Set of integers Z+ Set of positive integers Q Set of rational numbers R Set of real numbers

Set Definitions Equal sets Two sets are equal iff they have the same elements Order means nothing Listing an object more than once does not change the set

Set Definitions (Cont..) Empty set or Null set Set that has no elements Denoted by  or { } Singleton Set that has one element Example: A = {2}

Set Definitions (Cont..) The set A is a subset of B iff every element of A is also an element of B. A  B The null set is a subset of every set.   A Every set is a subset of itself. A  A A is a proper subset of B, if A is a subset of B and A is not equal to B. A  B

Set Definitions (Cont..) Cardinality The number of distinct elements in a set Denoted by |S|, for the set S

Power Set Power Set The set of all subsets of a set Denoted by P(S), for the set S If a set has n elements, then the power set has 2n elements, i.e., |P(S)| = 2|S|

Example Let L = {a, b, c, d} What is the cardinality of L? How many elements does the power set of L have? What is the power set of L?

Venn Diagram Universal set U is represented by rectangle Circles or other geometrical figures inside the rectangle represent sets B A U

Cartesian Product The Cartesian product of two sets A and B (denoted by A  B) is the set of all ordered pairs (a,b) where a is an element of A and b is an element of B. A  B = {(a,b) | aA  bB} Example: A = {x, y, z} B = {1, 2} A  B = {(x,1),(x,2),(y,1),(y,2),(z,1),(z,2)} B  A = {(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)}

Set Operations Section 2.2

Set Union Union of two sets A and B is denoted by AB AB contains elements that are either in A or in B or in both AB = {x | xA  xB} A = {1,3,5}, B = {2,3,4} A B A AB = {1,2,3,4,5}

Set Intersection Intersection of two sets A and B is denoted by AB AB contains elements that are in both A and B AB = {x | xA  xB} A = {1,3,5}, B = {1,2,3} A B AB = {1,3}

Disjoint Sets Two sets are called disjoint if their intersection is the empty set. A = {1,3,5}, B = {1,2,3}, C = {6,7,8} NO Are A and B disjoint? Are A and C are disjoint? YES A C

Cardinality of union of sets Exercise: How many elements does A U B have?? |AB| = |A|+|B|-|A  B|

Set Difference Difference of two sets A and B is denoted by AB AB contains elements that are in A but not in B. AB = {x | xA  xB} A = {1,3,5}, B = {1,2,3} A B A B AB = {5}

Complement of a Set U A Complement of a set A is denoted by Done with respect to a Universal set U contains elements that are not in A, but in U. U A = U  A = {x | xU  xA}

Set Identities A    A Identity A  U  A A  U  U Domination A  A  A Idempotent A  A  A = A Double Complement

Set Identities (Cont ..) A  B  B  A Commutative A  B  B  A A  (B  C)  (A  B)  C Associative A  (B  C)  (A  B)  C A  (B  C)  (A  B)  (A  C) Distributive A  (B  C)  (A  B)  (A  C) A  (A  B)  A Absorption A  (A  B)  A De Morgan's

Examples Use set builder notation to prove that Use set identities to prove that

More Exercises Describe the following sets using the set builder notation: 1. The set of all positive integers between 1 and 99. 2. 3. 4. 5. Use set builder notation to prove .