CHAPTER 2 Set Theory A B C.

Slides:



Advertisements
Similar presentations
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Advertisements

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
Introduction to Sets. A set is just a collection of stuff But the stuff must be written inside curly braces Each item in the curly braces is separated.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
5.1 Sets Sets and Elements Union and Intersection Subset and Empty Set
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
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.
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)
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
Discrete Structure Sets. 2 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.
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
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.
Set theory Neha Barve Lecturer Bioinformatics
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 2/10/121. What is a Set? Informally, a collection of objects, determined by its members, treated as a single mathematical object Not a real definition:
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.
1 Chapter Two Basic Concepts of Set Theory –Symbols and Terminology –Venn Diagrams and Subsets.
Discrete Mathematics Set.
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.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
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.
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.
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.
Dr. Ameria Eldosoky Discrete mathematics
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Chapter 2 Sets and Functions.
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
CSNB 143 Discrete Mathematical Structures
1.1: Objectives Properties of Real Numbers
Set, Combinatorics, Probability & Number Theory
The Basic Concepts of Set Theory
Sets Section 2.1.
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 and Set Operations Grab a sheet from front.
Algebra 1 Section 1.1.
The Basic Concepts of Set Theory
Precalculus Mathematics for Calculus Fifth Edition
Review of Sets and Set Operations
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.
Chapter 2 The Basic Concepts of Set Theory
Chapter 7 Logic, Sets, and Counting
Classifying Real Numbers
Chapter 2 The Basic Concepts of Set Theory
Copyright © Cengage Learning. All rights reserved.
ICOM 5016 – Introduction to Database Systems
Introduction A set is a collection of objects.
books WARM-uP Lesson 1 Independent work Exit card
Set – collection of objects
Sets, Unions, Intersections, and Complements
Section 3.2 More set operations.
Presentation transcript:

CHAPTER 2 Set Theory A B C

Basic Set Theory A set is just a collection of things. Here is some of the notation we use to talk about sets. The simplest example of a set is Ø, the empty set, which has no members or elements belonging to it. x ∈ X means “x is a member of X”. {x, y} means “the set whose members are x and y”.

Basic Set Theory {x | P} means “the set of all values of x that have the property P”. For example, { x | x is an even integer } is the set of all even integers. X = Y means “X and Y have the same members”. We abbreviate “if and only if” by “iff”.

Some Familiar Sets Ø is the smallest set, with no members. We say that the cardinality of Ø is zero, written | Ø | = 0. Much bigger are the number sets, which have infinitely many members (too many to write down). ℕ is the set of positive integers 1, 2, 3,… (Warning: Other textbooks often use ℕ as the name for the set of non-negative integers 0, 1, 2, 3,…).

Some Familiar Sets ℤ is the set of all integers …-2, -1, 0, 1, 2,… ℝ is the set of all real numbers, consisting of all decimal numbers including the integers, rational numbers like -3/4 and 22/7 , and irrational numbers like √2 and π. We can build new sets from these familiar sets by forming subsets, powersets, unions, intersections, complements, and ordered pairs.

Subsets We write X ⊆ Y to say “X is a subset of Y ”, by which we mean that every member of X also belongs to Y . Ø ⊆ Y since every member of Ø is a member of Y . How do we know this? Since Ø has no members, we can say anything we like about its members, for example that they are all pink, and no-one can refute our claim by giving a counterexample.

Subsets If X ⊆ Y and Y ⊆ X then X and Y must have exactly the same members, so that X = Y . Sometimes all the sets of interest to us are subsets of some big set U, which we call our universal set for that situation. To describe subsets of U we give some property the elements have to satisfy, for example if U = ℝ we could use the property x > 0 to form the subset of positive real numbers {x | x > 0}.

Powersets Let X = {2, 3}. The subsets of X are Ø, {2}, {3} , and { 2, 3}. If we collect these subsets of X as the elements of one big set we form the powerset P(X) = {Ø, {2}, {3}, { 2, 3} }. A set like {2} can itself be a member of another set.

Powersets But there is a difference between the relations ⊆ and ∈, for example {2} ⊆ X but {2} ∉ X while {2} ∈ P(X) but {2} ⊈ P(X). The powerset P(X) is bigger than the original set X, leading to the questions: Is P(X) always bigger than X? Can we predict the size of P(X) if we know the size of X?

Unions The union of X and Y is the set X ∪ Y where z ∈ X ∪ Y iff z belongs to at least one of X and Y . Example: {2, 3} ∪ {3, 4, 5 } = { 2, 3, 4, 5 }. Note that the union does not get two copies of the element 3, even though 3 belongs to { 2, 3} and also to { 3, 4, 5 }. We put (a single copy of) 3 into the union of X = { 2, 3} and Y = { 3, 4, 5 } because 3 belongs to at least one of X and Y .

Unions Notice that the union in our example is bigger than either of the two original sets. This invites two questions: Is X ∪ Y always bigger than (have more elements than) X and bigger than Y ? Can we predict the size of X ∪ Y if we know the sizes of X and of Y ? Notice that X ⊆ X ∪ Y since every member of X belongs to X ∪ Y . Is Y also a subset of X ∪ Y ?

Intersections The intersection of X and Y is the set X∩ Y where z ∈ X ∩ Y iff z belongs to both X and Y . Example: {2, 3} ∩ { 3, 4, 5 } = { 3 }. Note that although 3 belongs to both X = { 2, 3 } and Y = { 3, 4, 5 }, only one copy of 3 is put into the intersection. Example: { 2, 3} ∩ { 6, 7, 8 } = Ø, since there are no elements common to X ={ 2, 3 } and Y = { 6, 7, 8}. If X ∩ Y = Ø, we say that the sets X and Y are disjoint.

Intersections Two questions to ponder are: Must X ∩ Y always be smaller (have fewer elements than) than X and smaller than Y ? Can we predict the size of X ∩ Y if we know the sizes of X and of Y ? Notice that X ∩ Y ⊆ X since every member of X ∩ Y belongs to X as well as to Y . Is X∩ Y also a subset of Y ? Is X∩ Y a subset of X∪ Y ?

Complements The complement of Y relative to X is the set X-Y where z ∈ X - Y iff z belongs to X but not to Y . Example: {2, 3} - { 3, 4, 5 } = { 2 }. If we have a universal set U, then U - Y is abbreviated to Y’ and we call Y’ simply “the complement of Y ”.

Complements Example: Suppose our universal set is U = ℝ. Let Y = {x | x ≥ 0}. Then Y’ = { x | x < 0}. Questions: Suppose we take any subset X of some universal set U. What is X ∩ X’ equal to? What is X ∪ X’ equal to?

Ordered Pairs In the set {2, 3}, the order in which we list the members 2 and 3 is not important: {2, 3} = {3,2} since the two descriptions single out the same elements. But if the order of elements is important, we may change the braces { and } to parentheses and write (2, 3). We read (2, 3) as “the ordered pair with 2 as first co-ordinate and 3 as second co-ordinate”.

Ordered Pairs Although {2, 3} = {3,2}, since the members are the same, (2, 3) ≠ (3, 2) since the order of coordinates is different. We write X ⨉ Y to say “the Cartesian product of X and Y ”. X ⨉ Y is the set of all ordered pairs (x, y) such that x ∈ X and y ∈ Y . Example: {2, 3} ⨉ { 5, 6 } = {(2, 5), (2, 6), (3, 5), (3, 6) }.