Copyright © 2014 Curt Hill Sets Introduction to Set Theory.

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.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Denoting the beginning
Analytical Methods in CS (CIS 505)
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.
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.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets. Copyright © Peter Cappello Definition Visualize a dictionary as a directed graph. Nodes represent words If word w is defined in terms of word.
Set Theory.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Discrete Math 6A Max Welling. Recap 1. Proposition: statement that is true or false. 2. Logical operators: NOT, AND, OR, XOR, ,  3. Compound proposition:
Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities , Semester 2, Set Basics 1.
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)
Chapter P Prerequisites: Fundamental Concepts of Algebra 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. 1 P.9 Linear Inequalities and Absolute.
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.
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
CompSci 102 Discrete Math for Computer Science
1 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 1-1 Basic Concepts Chapter 1.
Slide Chapter 2 Sets. Slide Set Concepts.
Chapter 2 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
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.
ELEMENTARY SET THEORY.
Module Code MA1032N: Logic Lecture for Week Autumn.
Sets Goal: Introduce the basic terminology of set theory.
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.
Discrete Mathematics Lecture # 10. Set Theory  A well defined collection of {distinct} objects is called a set.  The objects are called the elements.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Wed, Mar 8, 2006.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Mon, Feb 21, 2005.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
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.
Introduction to Sets Definition, Basic and Properties of Sets
Section 2.1. Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 1 The Foundations: Logic, Sets,
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.
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)
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.
Copyright © 2015, 2011, 2007 Pearson Education, Inc. Section 2.2, Slide 1 CHAPTER 2 Set Theory.
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
Sets.
Sets Page 746.
CHAPTER 2 Set Theory A B C.
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Set, Combinatorics, Probability & Number Theory
The Basic Concepts of Set Theory
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
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.
The Basic Concepts of Set Theory
Set-Builder Notation.
2.1 Sets Dr. Halimah Alshehri.
CHAPTER 1 - Sets and Intervals
Chapter 2 The Basic Concepts of Set Theory
CHAPTER 1 - Sets and Intervals
Discrete Mathematics CS 2610
Chapter 2 The Basic Concepts of Set Theory
Lecture Sets 2.2 Set Operations.
CHAPTER 2 Set Theory.
Introduction A set is a collection of objects.
CHAPTER 2 Set Theory.
Presentation transcript:

Copyright © 2014 Curt Hill Sets Introduction to Set Theory

Introduction Fundamental discrete structure A set is a collection of distinct items A set has no order No duplications An item is in the set or not –Just as a proposition has two truth values Set variables are usually denoted by capital letters and the items by lower case Copyright © 2014 Curt Hill

Terminolgy Set: –A collection of distinct items. –Set variable is usually a capital letter. –Braces contain the elements Element: aka member –One of the items in a set. –Usually denoted by lower case letters. –Symbol x  A, x is member of A. Copyright © 2014 Curt Hill

Terminology 2 Empty set: –A set with zero members –Symbol is  or { } Disjoint set: –Two sets with no members in common Cardinality: –The number of elements in a set Universe of discourse: –The set of all those elements that under consideration –Often the integers or real numbers. Copyright © 2014 Curt Hill

Subset: A set whose members are all contained in another set The empty set is the subset of every set Opposite of superset A proper subset has at least one element that is present in the superset and not present in the subset An improper subset is the set itself Copyright © 2014 Curt Hill

Notation A is a (proper) subset of B (A  B) A is a (proper or improper) subset of B (A  B) A is proper superset of B (A  B) A is superset of B (A  B) Copyright © 2014 Curt Hill

Defining a Set There are typically three ways to define a set Enumeration Set builder Construction using operators Copyright © 2014 Curt Hill

Enumeration Lists each element in the set –A={1,2,3,4,5} AKA Roster method May use an ellipsis to show a large or infinite set –A={2,4,6,8,…} –A={2,4,6,8,…98,100} Copyright © 2014 Curt Hill

Set Builder Notation Uses a rule that defines the members that are present in the set –{x|x  I and x>0 and x<5} or {x|x  I and 0 < x <5} –The | is read such that –I is the set of integers The expression to the right should give a Boolean value as to whether this is a member or not Copyright © 2014 Curt Hill

Open and Closed If the type of number is left out, reals should be assumed –{x|0 < x < 5} We cannot say which is the highest and lowest element of this set –We term of this is open –Interval notation is (0,5) However the following is closed –{x|0  x  5} –Interval notation is [0,5] Copyright © 2014 Curt Hill

Construction The third way is to define a set in terms of others sets using set operations, eg union, intersection, etc We will see this as we investigate the operators –Section 1.2 and a different presentation Copyright © 2014 Curt Hill

Power Sets A power set is the set of all subsets –Useful for testing all combinations of subsets Consider A = { 1, 2, 3} The power set would then be: P(A) = { , {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3} } Copyright © 2014 Curt Hill

Tuples The order of sets is irrelevant –{1, 2, 3} = {3, 1, 2} = {2, 1, 3} In many cases we create ordered tuples For example, we use Cartesian Coordinates to indicate a point in two space Here order is important –(2,3) is not the same point as (3,2) –This is an ordered pair Three space would use an ordered triple Copyright © 2014 Curt Hill

Cartesian Product A Cartesian Product creates a set of ordered pairs Denoted by A ⨯ B The resulting set of ordered pairs has all possible combinations where the first element is from A and the second from B Copyright © 2014 Curt Hill

Example Suppose: –A = {1, 2, 3} –B = {x, y} Then A B = { {1,x}, {1,y}, {2,x}, {2,y}, {3,x}, {3,y} } Notice that the two sets do not need the same type of elements This can be extended to create n- tuples of any size Copyright © 2014 Curt Hill

Connections In the previous chapter we used the “is an element of” symbol  to show the domain of quantified expressions –  x (P(x)  x    x>0) This is re-introduced in 2.1 with an addition –  x   (x>0) (P(x)) The first part restricts the domain to integers greater than zero Copyright © 2014 Curt Hill

Truth Sets Rosen defines a truth set in a way similar to a solution set from the Algebra of Real Numbers More formally: –Given a predicate P and a domain D –The truth set of P is the set of elements from D that makes P to be true Copyright © 2014 Curt Hill

Exercises From 2.1 –3, 9,19, 23,27,43 Copyright © 2014 Curt Hill