Set Theory. What is a set?  Sets are used to define the concepts of relations and functions. The study of geometry, sequences, probability, etc. requires.

Slides:



Advertisements
Similar presentations
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Advertisements

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Denoting the beginning
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.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Chapter 2 The Basic Concepts of Set Theory
Sets 1.
Sets 1.
Set Theory.
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.
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.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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,
Partially borrowed from Florida State University
Objectives: By the end of class, I will be able to:  Identify sets  Understand subsets, intersections, unions, empty sets, finite and infinite sets,
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,
Introduction to Set Theory. Introduction to Sets – the basics A set is a collection of objects. Objects in the collection are called elements of the set.
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:
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.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
Mathematical Proofs. Chapter 1 Sets 1.1 Describing a Set 1.2 Subsets 1.3 Set Operations 1.4 Indexed Collections of Sets 1.5 Partitions of Sets.
CS201: Data Structures and Discrete Mathematics I
CompSci 102 Discrete Math for Computer Science
Thinking Mathematically Chapter 2 Set Theory 2.1 Basic Set Concepts.
Slide Chapter 2 Sets. Slide Set Concepts.
Chapter 2 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com ICOM 5016 – Introduction.
Unit 2 Sets.
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Module Code MA1032N: Logic Lecture for Week Autumn.
Sets and Set Notation What are sets? A set is a collection of things. The "things" in the set are called the "elements”. A set is represented by listing.
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.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com ICOM 5016 – Introduction.
Discrete Mathematics Set.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Fr: Discrete Mathematics by Washburn, Marlowe, and Ryan.
Chapter 7 Sets and Probability Section 7.1 Sets What is a Set? A set is a well-defined collection of objects in which it is possible to determine whether.
Thinking Mathematically Venn Diagrams and Set Operations.
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
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.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Thinking Mathematically Basic Set Concepts. A “set” is a collection of objects. Each object is called an “element” of the set. Often the objects in a.
Working WITH Sets Section 3-5. Goals Goal To write sets and identify subsets. To find the complement of a set. Rubric Level 1 – Know the goals. Level.
Introduction to Set Theory (§1.6) A set is a new type of structure, representing an unordered collection (group, plurality) of zero or more distinct (different)
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.
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.
Sets Page 746.
Chapter 2: SETS.
Lesson 2.1 Basic Set Concepts.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Set, Combinatorics, Probability & Number Theory
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
2 Chapter Numeration Systems and Sets
Chapter 7 Logic, Sets, and Counting
ICOM 5016 – Introduction to Database Systems
ICOM 5016 – Introduction to Database Systems
Section 2.1 Set Concepts.
Presentation transcript:

Set Theory

What is a set?  Sets are used to define the concepts of relations and functions. The study of geometry, sequences, probability, etc. requires the knowledge of sets.  The theory of sets was developed by German mathematician Georg Cantor ( ).  He first encountered sets while working on “problems on trigonometric series”.  Studying sets helps us categorize information. It allows us to make sense of a large amount of information by breaking it down into smaller groups. Georg Cantor ( )

Definition: A set is any collection of objects specified in such a way that we can determine whether a given object is or is not in the collection.  In other words A set is a collection of objects.  These objects are called elements or members of the set.  The symbol for element is .  For example, if you define the set as all the fruit found in my refrigerator, then apple and orange would be elements or members of that set.  The following points are noted while writing a set.  Sets are usually denoted by capital letters A, B, S, etc.  The elements of a set are usually denoted by small letters a, b, t, u, etc Examples:  A = {a, b, d, 2, 4}  B = {math, religion, literature, computer science}  C = {  }

Sets  Sets can be well defined.  A well defined set is a set whose contents are clearly determined. The set defined as “colors” would not be well defined while “the set of colors in a standard box of eight crayons” is well defined.  Other ways to denote sets  Ellipses  N = {0, 1, 2, 3, 4...} (set of natural numbers)  Z = {..., -3, -2, -1, 0, 1, 2, 3,...} (set of integers)  E = {0, 2, 4, 6...} (set of even natural numbers)

There are three methods used to indicate a set: 1.Description 2.Roster form 3.Set-builder notation  Description : Description means just that, words describing what is included in a set.  For example, Set M is the set of months that start with the letter J.  Roster Form : Roster form lists all of the elements in the set within braces {element 1, element 2, …}.  For example, Set M = { January, June, July}  Set-Builder Notation: Set-builder notation is frequently used in algebra.  For example, M = { x  x  is a month of the year and x starts with the letter J}  This is read, “Set M is the set of all the elements x such that x is a month of the year and x starts with the letter J”.

Subsets  A is a subset of B if every element of A is also contained in B. This is written A  B. For example, the set of integers { …-3, -2, -1, 0, 1, 2, 3, …} is a subset of the set of real numbers. Formal Definition: A  B means “if x  A, then x  B.” Empty set  Set with no elements  { } or Ø. Elements may be sets A = {1,2,{1,3,5},3,{4,6,8}} B = {{1,2,3},{4,5,6}} C = {Ø, 1, 3} = {{},1,3} D = {Ø} = {{}}  Ø

 Set size  Called cardinality  Number of elements in set  Denoted |A| is the size of set A  If A = {2,3,5,7,8}, then |A| = 5  If a set A has a finite number of elements, it is a finite set.  A set which is not finite is infinite. Set relations   - "is a member of"  x  A   - "subset"  A  B A is a subset of B  Every element in A is also in B   x: x  A  x  B

  - "proper subset"  A  B - A is a proper subset of B (A  B)  Every element in A is also in B and  A  B  (  x: x  A  x  B)  A  B   - "proper superset"  A  B - A is a proper superset of B (A  B)  Every element in B is also in A and  A  B  (  x: x  B  x  A)  A  B  Example: N  Z  Q  R   - "superset"  A  B  A is a superset of B  Every element in B is also in A   x: x  B  x  A

Numbers and Set  There are different types of numbers:  Cardinal numbers - answer the question “How many?”  Ordinal numbers - such as first, second, third...  Nominal numbers – which are used to name things. Examples of nominal numbers would be your driver’s license number or your student ID number.  The cardinal number of a set S, symbolized as n(S), is the number of elements in set S.  If S = { blue, red, green, yellow } then n(S) = 4.  Two sets are considered equal sets if they contain exactly the same elements.  Two sets are considered equivalent sets if they contain the same number of elements ( if n(A) = n(B) ).

 If E = { 1, 2, 3 } and F = { 3, 2, 1 }, then the sets are equal (since they have the same elements), and equivalent (since they both have 3 elements).  If G = { cat, dog, horse, fish } and H = { 2, 5, 7, 9 }, then the sets are not equal (since they do not have the same elements), but they are equivalent (since they both have 4 elements, n ( G ) = n ( H ) ). Power Sets  Given any set, we can form a set of all possible subsets.  This set is called the power set.  Notation: power set or set A denoted as P (A)  Ex: Let A = {a}  P (A) = {Ø, {a}}  Let A = {a, b}  P (A) = {Ø, {a}, {b}, { a, b}} Let B = {1, 2, 3} P (B)={Ø,{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}

Cartesain Product  Ordered pairs - A list of elements in which the order is significant.  Order is not significant for sets!  Notation: use round brackets. ( a, b ) { a,b } = { b,a } ( a,b )  ( b,a )  Cartesian Product : Given two sets A and B, the set of – all ordered pairs of the form (a, b) where a is any – element of A and b any element of B, is called the – Cartesian product of A and B.  Denoted as A x B A x B = {(a,b) | a  A and b  B} Ex: Let A = {1,2,3}; B = {x,y} – A x B = {(1,x),(1,y),(2,x),(2,y),(3,x),(3,y)} – B x A = {(x,1),(y,1),(x,2),(y,2),(x,3),(y,3)} – B x B = B 2 = {(x,x),(x,y),(y,x),(y,y)} (1, 2) (2, 1)

Set Operators  Union of two sets A and B is the set of all elements in either set A or B.  Written A  B.  A  B = { x | x  A or x  B}  Intersection of two sets A and B is the set of all elements in both sets A or B.  Written A  B.  A  B = { x | x  A and x  B}  Difference of two sets A and B is the set of all elements in set A which are not in set B. – Written A - B. – A - B = { x | x  A and x  B} – also called relative complement

 Complement of a set is the set of all elements not in the set. – Written A c – Need a universe of elements to draw from. – Set U is usually called the universal set. – A c = { x | x  U - A }  Sets with no common elements are called disjoint – If A  B = Ø, then A and B are disjoint.  If A 1, A 2,... A n are sets, and no two have a common element, then we say they are mutually disjoint. – A i  A j = Ø for all i,j  n and i  j – Consider M d = { x | x  MVNC students, d  MVNC dorm rooms} – Consider M n = { x  I | ( x MOD 5) = n }

 Partition - A collection of disjoint sets which collectively – Make up a larger set. – Ex: Let A = {a,b}; B = {c,d,e}; C = {f,g} and  D = {a,b,c,d,e,f,g}  Then sets A,B,C form a partition of set D  Let A be a nonempty set (A  Ø), and suppose that B 1, B 2, B 3,..., B n are subsets of A, such that : – None of sets B 1, B 2, B 3,..., B n are empty; – The sets B 1, B 2, B 3,..., B n are mutually disjoint. (They have no elements in common) – The union of sets B 1, B 2, B 3,..., B n is equal to A. e.g. B 1  B 2  B 3 ...  B n = A

 Then we say the sets B 1, B 2, B 3,..., B n form a partition of the set A.  The subsets B 1, B 2, B 3,..., B n are called blocks of the partition

Universal Set  A universal set is the super set of all sets under consideration and is denoted by U.  Example: If we consider the sets A, B and C as the cricketers of India, Australia and England respectively, then we can say that the universal set (U) of these sets contains all the cricketers of the world.  The union of two sets A and B is the set which contains all those elements which  are only in A, only in B and in both A and B, and this set is denoted by “A  B”.  A  B { x : x  A or x  B}  Example: If A = {a, 1, x, p} and B = {p, q, 2, x }, then A  B = {a, p, q, x, 1, 2}. Here, a and 1 are contained only in A; q and 2 are contained only in B; and p and x are contained in both A and B.

Set Properties  Property 1 (Properties of Ø and  ) – A  Ø = A, A  U = A – A  U = U, A  Ø = Ø  Property 2 ( The idempotent properties) – A   Property 3 (The commutative properties) – A    Property 4 (The associative properties) – A  C) = (A   C – A  C) = (A  B)  C  Property 5 (The distributive properties) – A  C) = (A  B)  C) – A   C) = (A  B)  (A  C)

 Property 6 (Properties of the complement) – Ø C = U,U C = Ø – A  C = U, A  A C = Ø – (A C ) C = A  Property 7 (De Morgan's laws) – (A  B) C = A C  B C – (A  B) C = A C  B C  Property 8 (Absortion laws) – A  (A  B) = A – A  (A  B) = A

The End