Session – 2 SETS & Operations of SETS

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

Set Operations and Venn Diagrams 2.2 – 2.3. The intersection of sets A and B, denoted by, is the set of all elements that are common to both. That is,.
Instructor: Hayk Melikya
The Engineering Design of Systems: Models and Methods
Sets DISCRETE STRUCTURE ABDUL BASIT TAHIR, KAMRAN ALI, FAIZAN ILLAHI, NOMAN AHMAD, ARSALAN MUBASHIR.
Sets Definition of a Set: NAME = {list of elements or description of elements} i.e. B = {1,2,3} or C = {x  Z + | -4 < x < 4} Axiom of Extension: A set.
SET.   A set is a collection of elements.   Sets are usually denoted by capital letters A, B, Ω, etc.   Elements are usually denoted by lower case.
Operations on Sets Union Intersection: Two sets are disjoint if their intersection is the null set. Difference A - B. Complement of a set A.
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.
1 Set Theory. 2 Set Properties Commutative Laws: Associative Laws: Distributive Laws:
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
Mathematics.
Discrete Mathematics Unit - I. Set Theory Sets and Subsets A well-defined collection of objects (the set of outstanding people, outstanding is very subjective)
This section will discuss the symbolism and concepts of set theory
1.2 Sample Space.
Logics for Data and Knowledge Representation Introduction to Algebra Chiara Ghidini, Luciano Serafini, Fausto Giunchiglia and Vincenzo Maltese.
Sets Defined A set is an object defined as a collection of other distinct objects, known as elements of the set The elements of a set can be anything:
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
1 Set Theory Chapter 3. 2 Chapter 3 Set Theory 3.1 Sets and Subsets A well-defined collection of objects (the set of outstanding people, outstanding is.
CS201: Data Structures and Discrete Mathematics I
Section 2.2 Subsets and Set Operations Math in Our World.
SECTION 2-3 Set Operations and Cartesian Products Slide
Sets Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Definition of Set A set is a collection of objects called elements.
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
2.1 Sets 2.2 Set Operations –Set Operations –Venn Diagrams –Set Identities –Union and Intersection of Indexed Collections 2.3 Functions 2.4 Sequences and.
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.
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.
Basic Definitions of Set Theory Lecture 24 Section 5.1 Fri, Mar 2, 2007.
Discrete Mathematics Set.
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.
1 Topic Sets (5.1, 5.2, 5.3). 2 Original author of the slides: Vadim Bulitko University of Alberta Modified by.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
Section 1.2 – 1.3 Outline Intersection  Disjoint Sets (A  B=  ) AND Union  OR Universe The set of items that are possible for membership Venn Diagrams.
MATH 2311 Section 2.2. Sets and Venn Diagrams A set is a collection of objects. Two sets are equal if they contain the same elements. Set A is a subset.
Thinking Mathematically Venn Diagrams and Subsets.
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.
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
Union and Intersection of Sets. Definition - intersection The intersection of two sets A and B is the set containing those elements which are and elements.
Venn Diagrams.
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.
Set. Outline Universal Set Venn Diagram Operations on Sets.
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Sets Finite 7-1.
Set Definition: A set is unordered collection of objects.
Set Theory.
Venn Diagrams and Set Operation
CSNB 143 Discrete Mathematical Structures
Sets Section 2.1.
CSE 2353 – September 22nd 2003 Sets.
Exercises Show that (P  Q)  (P)  (Q)
CS100: Discrete structures
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics CS 2610
Discrete Mathematics R. Johnsonbaugh
MATH 2311 Section 2.2.
2.1 – Symbols and Terminology
CHAPTER 2 Set Theory.
Lecture Sets 2.2 Set Operations.
Set Theoretic Operations
MATH 2311 Section 2.2.
Presentation transcript:

Session – 2 SETS & Operations of SETS

Subset and Proper Subset Subset : Let A and B be two sets. Then A is said to be a subset of B if every element of A is an element of B. It is represented by “ “ Proper Subset : A is said to be a proper subset of B if A is a subset of B and there is at least one element of B which is not in A. It is represented by “ “

Two sets A and B are equal iff Property : Two sets A and B are equal iff NULL SET Singleton Set We write A = B. A set containing no elements is called the empty set or null set, denoted by A set containing only one element is called Singleton set.

Exercise List all the subsets of { Java, C++, VB }. { Java } , { C++ }, { VB }, { Java, C++ },{ Java, VB }, { C++, VB },{ Java, C++, VB }, . List all the subsets of the set .  or {}

Exercise b. { 3 } Í S c. 2 Î S d. { 2 } Ï S e. { Æ } Î S f. Æ Î S Let S = { { 3 }, { 2 }, { 3, 2, 1 }, { Æ } } Which of the following are true. Be careful again, set of sets! a. { 3 } Î S b. { 3 } Í S c. 2 Î S d. { 2 } Ï S e. { Æ } Î S f. Æ Î S

Answers a True b False c False d False e True f False

Exercises 1. Which of the following statements are true? a. 5  { 3,1,2 } b. 1  { 3,1,2 } c. 5  { 3,1,2 } d. { 3 }  { 3,1,2} e. { 3,1,2 }  { 3,1,2 } f. { 2,1 }  { 3,1,2 } g. {}  { 3,1,2 } h. { 3 }  { 3,1,2 } i. { 3,1,2 }  { 3,1,2}

a False b True c True d False e True f True g True h True i False Solutions a False b True c True d False e True f True g True h True i False

Exercises 1. Which of the following statements are true? j. { 2,1 }  { 3,1,2 } k.   { 3,1,2 } l. { 3,1,2 } = { 3,1,2 } m. { a,b,a,c } = { a,b,c } n. { a,b,a,c } ≠ { c,a,b,b }

Solutions j True k True l True m True n False

Exercises 2. Let A = { 5, 2, 4, a, b, d }. Which of the following are true? a. d  A b. 3  A c. c  A d.   A e.   A f. A  A

Solutions a True b False c True d False e True f False

Exercises Which of the following statements are true and why or why not? 1. { b, a }  { c, a, b } 2. { b, d }  { c, a, b } 3. { b, a }  { c, a, b } 4. {} = { {} } 5. {}  {} 6. {}  {} 7. {}  {this set } 8. {}  { {} } 9. { {} }  {} 10. { a,b } = ( a,b ) 11. { { a,b } } = { (a,b) }

Answers : 1. is true as the first set contains elements a and b and so does the second. 2. is false as the first set contains an element d which the second set does not. 3 is true as the first set contains elements a and b and so does the second but the second also contains another element and so is larger. 4. is false as the empty set is not the same as the set that contains the empty set. 5. is true as the empty set is a subset of every set (even itself). 6. is false as no set can be a proper subset of itself. 7. is true for same reason as 5. is true for same reason as 5 and 7. 9. is false as the first set contains the empty set and will be a bigger set than the empty set. 10. is false as (a,b) is not the set {a,b}, it is in fact a pair (more about pairs later). 11. is false as the first set contains the set {a,b} and the second set contains the pair (a,b).

Operations on Sets Union Intersection Symmetric difference Complement

Union

Intersection

Symmetrical Difference

Complement of a Set

Basic properties of Union and Intersection of two sets.

Distributive Laws

Demorgan’s Laws

Disjoint

Venn Diagrams

Power Set