Sets. Outline Set and Set Elements Set Representation Subset, Proper Subset, Set Equality, and Null Set.

Slides:



Advertisements
Similar presentations
Sets and its element A set is a collection of well-defined and well-distinguished objects. The objects that make up a set are called the members or elements.
Advertisements

22 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Lecture 2 Introduction To Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Sets DISCRETE STRUCTURE ABDUL BASIT TAHIR, KAMRAN ALI, FAIZAN ILLAHI, NOMAN AHMAD, ARSALAN MUBASHIR.
Analytical Methods in CS (CIS 505)
Chapter 2 The Basic Concepts of Set Theory
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
Set Theory.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Mathematics.
2.1 – Symbols and Terminology Definitions: Set: A collection of objects. Elements: The objects that belong to the set. Set Designations (3 types): Word.
MATHEMATICS XI SETS.
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,
Objectives: By the end of class, I will be able to:  Identify sets  Understand subsets, intersections, unions, empty sets, finite and infinite sets,
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
SET THEORY. BASIC CONCEPTS IN SET THEORY Definition: A set is a collection of well-defined objects, called elements Examples: The following are examples.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Chapter 7 Logic, Sets, and Counting Section 2 Sets.
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
2.1 Symbols and Terminology. Designating Sets A set is a collection of objects (in math, usually numbers). The objects belonging to the set are called.
Slide Section 2-1 Symbols and Terminology. SYMBOLS AND TERMINOLOGY Designating Sets Sets of Numbers and Cardinality Finite and Infinite Sets Equality.
Copyright © Cengage Learning. All rights reserved.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Copyright © 2010 Pearson Education, Inc. All rights reserved Sec
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.
Module Code MA1032N: Logic Lecture for Week Autumn.
Sets Goal: Introduce the basic terminology of set theory.
SAT MATH Lesson 10.
1 Chapter Two Basic Concepts of Set Theory –Symbols and Terminology –Venn Diagrams and Subsets.
Discrete Mathematics Lecture # 10. Set Theory  A well defined collection of {distinct} objects is called a set.  The objects are called the elements.
Section 1Chapter 1. 1 Copyright © 2012, 2008, 2004 Pearson Education, Inc. Objectives Basic Concepts Write sets using set notation. Use number.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
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.
1.1 – SETS AND SYMBOLS. Goals SWBAT understand basic set notation and set symbols SWBAT solve simple sentences with a given domain SWBAT graph sets of.
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.
CSE15 Discrete Mathematics 02/13/17
Math in Our World Section 2.1 The Nature of Sets.
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Set, Combinatorics, Probability & Number Theory
The Basic Concepts of Set Theory
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
1-1 Sets of Numbers Warm Up Lesson Presentation Lesson Quiz
Discrete Structure II: Introduction
CS100: Discrete structures
        { } Sets and Venn Diagrams Prime Numbers Even Numbers
Algebra 1 Section 1.1.
1-1 Sets of Numbers Warm Up Lesson Presentation Lesson Quiz
The Basic Concepts of Set Theory
Chapter 1 Section 1.
Set-Builder Notation.
2.1 Sets Dr. Halimah Alshehri.
CHAPTER 1 - Sets and Intervals
Chapter 2 The Basic Concepts of Set Theory
Subsets of the Real Numbers
CHAPTER 1 - Sets and Intervals
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics CS 2610
The aim of education is to teach students how to think rather than what to think. Sets The set is the fundamental discrete structure on which all other.
2 Chapter Numeration Systems and Sets
Chapter 2 The Basic Concepts of Set Theory
1-1 Sets of Numbers Warm Up Lesson Presentation Lesson Quiz
Chapter 7 Logic, Sets, and Counting
1-1 Sets of Numbers Warm Up Lesson Presentation Lesson Quiz
Presentation transcript:

Sets

Outline Set and Set Elements Set Representation Subset, Proper Subset, Set Equality, and Null Set

Set and Set Elements The words set and element are undefined terms of set theory just as sentence, true, and false are undefined terms of logic. A set is a collection of objects called elements or members of the set.

Set and Set Elements The elements of a set must be distinct, unordered and well-defined. It means that a set should not contain duplicates; the ordering of elements is insignificant; and you should be able to determine whether or not a certain element belongs to the set.

Set and Set Elements Examples of a Set –Letters = {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z} –Vowels = {a, e, i, o, u} –Bits = {0, 1} –Students = {John, Don, Liza, Peter, Kathy}

Set and Set Elements The founder of set theory, Georg Cantor, suggested imagining a set as a –“collection into a whole M of definite and separate objects of our intuition or our thought. These objects are called the elements of M.” Cantor used the letter M because it is the first letter of the German word for set: Menge.

Set and Set Elements Sets are denoted by capital letters A, B, C, …, X, Y, Z. A={1, 1, 2, 3} B={1, 2, 3, 3} X={2, 3, 1, 3} Since set should not contain duplicates, the sample sets stated above can be simply written as set with three elements, {1, 2, 3}

Set and Set Elements If the elements can be counted or enumerated, then the set is said to be finite otherwise it is finite. Finite set –A={1, 1, 2, 3} –B={1, 2, 3, 3} Infinite Set - The symbol “…”,ellipsis, is a short for “and so forth.” –A={1, 2, …} –B={1, 2, 3, 3…}

Exercise Determine whether each of these sets is finite or infinite. 1.Negative integers 2.Even Integers greater than 50 3.Positive integers less than Odd integers less than 50 5.ASCII characters

Solution to Exercise Determine whether each of these sets is finite or infinite. 1.Negative integersInfinite 2.Even Integers greater than 50Infinite 3.Positive integers less than 1000 Finite 4.Odd integers less than 50 Finite 5.ASCII charactersFinite

Set Representation Tabular Form Descriptive Form Set Builder Form

Tabular Form Listing all the elements of a set, separated by commas and enclosed within braces or curly brackets{}. Example A = {1, 2, 3, 4, 5} –is the set of first five Natural Numbers. B = {2, 4, 6, 8, …, 50} –is the set of Even numbers up to 50. C = {1, 3, 5, 7, 9, …} –is the set of positive odd numbers.

Descriptive Form Stating in words the elements of a set. A = set of first five Natural Numbers. B = set of positive even integers less or equal to fifty. C = set of positive odd integers.

Set Builder Form We characterize all those elements in the set by stating the property or properties they must have to be members. Example –A = {x | x is an odd positive integer less than 10} or –A = { x| 1< x < 10 and x is a counting number}

Exercise List the members of the set 1.{x | x is a positive integer less than 100} 2.{x | x is a square of integers and x < 50} 3.{x | x is an even integer less than 100 and x can be factored by 3} 4.{x | x is an odd integer less than 50 and x is a prime number} 5.{x | x is a composite number less than 50}

Solution to Exercise List the members of the set 1.{1,2,3,…,99} 2.{1,4,9,16,25,36,49} 3.{6,12,18,24,30,36,42,48,54,60,…,98} 4.{3,5,7,11,13,17,19,23,29,31,37,41,43,47} 5.{2,4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46, 48,49}

Exercise Represent the following Tabular Form using Set Builder Form 1.{2, 4, 6, 8, 10, …, 50} 2.{a, e, i, o, u} 3.{MSWord, MSExcel, MSPowerpoint} 4.{Phyton, Java, C++} 5.{Fred, Dan, Tim, Stefen, Paul}

Solution to Exercise Represent the following Tabular Form using Set Builder Form 1.{x | x is an even integer less than or equal to 50} 2.{x | x is a vowel character} 3.{x | x is a Microsoft Office Application} 4.{x | x is a Programming Language} or {x | x is an Object Oriented Programming Language} 5.{x | x is a male name} or {x | x is a boy name}

Set Representation Not all sets can be represented using both methods. For instance, suppose you’re to represent the set of all real numbers between 0 and 1. It’s impossible to list down all the elements of this set, and thus you can only use the rule method to describe this set.

Set Representation N – Set of Natural Numbers –N = {1, 2, 3, … } W – Set of Whole Numbers –W = {0, 1, 2, 3, … } Z – Set of Integers –Z = {…, -3, -2, -1, 0, +1, +2, +3, …} –Z = {0, ±1, ± 2, ± 3, …} –{“Z” stands for the first letter of the German word for integer: Zahlen.}

Set Representation E – Set of Even Integers –E = {0, ±2, ± 4, ± 6, …} O – Set of Odd Integers –O = {±1, ±3, ±5, …} P – Set of Prime Numbers –P = {2, 3, 5, 7, 11, 13, 17, 19, …} Q – Set of Rational Numbers (or Quotient of Integers) –Q = {x | x = p/q ; p, q  Z, q  0}

Set Representation Q – Set of Irrational Numbers –Q’ = {x | x is not rational numbers} R – Set of Real Numbers C – Set of Complex Numbers

Set Representation Superscript symbols such as +, -,  represent positive, negative and non negative(includes zero) values respectively. Example: – Z  denotes the set of all non-negative integers. –Z + denotes the set of all positive integers

Subset If A and B are two sets, A is called a subset of B, written A  B, if, and only if, any element of A is also an element of B. Symbolically A  B   x (x  A  x  B) For all elements of x, if x is an element of A then x is an element of B.

Subset The phrases A is contained in B and B contains A are alternative ways of saying that A is a subset of B. When A  B, then B is called a superset of A. When A is not subset of B, then there exist at least one x  A such that x  B. –A  B ⇔ ∃ x such that x ∈ A and x ∈ B. Every set is a subset of itself.

Example Let –A = {1, 3, 5} –B = {1, 2, 3, 4, 5} –C = {1, 2, 3, 4} –D = {3, 1, 5} Then –A  B ( Because every element of A is in B ) –C  B ( Because every element of C is also an element of B )

Example –A  D ( Because every element of A is also an element of D and also note that every element of D is in A so D  A ) –A  C ( Because there is an element 5 of A which is not in C )

Examples Let –A = {1} –B = {{1}} –C = { 1, {1} } A  C B  C A  B since 1  {{1}} Consider the set symbol as a box { }. Thus {1} is “a box holding 1”, while {{1}} is “a box holding a box holding {1}”. The only subsets of {1} are {1} and { }; the subsets of {{1}} are {{1}} and { }.

Exercise Suppose that A = {2, 4, 6}, B = {2, 6}, C = {4, 6}, and D = {4, 6, 8}. Determine which of these sets are subsets of which other of these sets.

Solution to Exercise Suppose that A = {2, 4, 6}, B = {2, 6}, C = {4, 6}, and D = {4, 6, 8}. Determine which of these sets are subsets of which other of these sets. –B  A –C  D –C  A

Proper Subset Let A and B be sets. A is a proper subset of B, if, and only if, every element of A is in B but there is at least one element of B that is not in A, and is denoted as A  B. Example Let –A = {1, 3, 5} –B = {1, 2, 3, 5} then A  B ( Because there is an element 2 of B which is not in A).

Set Equality Two sets A and B are equal if, and only if, every element of A is in B and every element of B is in A and is denoted A = B. Symbolically: A = B iff A  B and B  A

Set Equality Example Let –A = {1, 2, 3, 6} –B = the set of positive divisors of 6 –C = {3, 1, 6, 2} –D = {1, 2, 2, 3, 6, 6, 6} Then A, B, C, and D are all equal sets.

Null Set A set which contains no element is called a null set, or an empty set or a void set. It is denoted by the Greek letter  (phi) or { }. Example –B = {x | x 2 = 4, x is odd number} =  (there does not exist any odd number whose square is 4) –Z + = {x | x < 0 } =  ( there does not exist any positive integer whose values is less than 0)  is regarded as a subset of every set

Exercise Determine whether each of the following statements is true or false. 1. x  {x} 2. {x}  {x} 3. {x}  {x} 4.   {x} 5.   {x}

Solution to Exercise Determine whether each of the following statements is true or false. 1. x  {x}True 2. {x}  {x}True 3. {x}  {x}False 4.   {x}True 5.   {x}False

Summary A set is a collection of objects called elements or members of the set. The elements of a set must be distinct, unordered and well-defined If the elements can be counted or enumerated, then the set is said to be finite otherwise it is finite. Set can be represented using Tabular Form, Descriptive Form, and Set Builder Form

Summary Subset states that If A and B are two sets, A is called a subset of B, written A  B, if, and only if, any element of A is also an element of B. A is a proper subset of B, if, and only if, every element of A is in B but there is at least one element of B that is not in A, and is denoted as A  B. Two sets A and B are equal if, and only if, every element of A is in B and every element of B is in A and is denoted A = B.

Summary A set which contains no element is called a null set, or an empty set or a void set. It is denoted by the Greek letter  (phi) or { }.

Summary The Universal Set is represented by the interior of a rectangle, and the other sets are represented by circle within the rectangle.