Sets CSLU Fall 2007 Cameron McInally

Slides:



Advertisements
Similar presentations
Lesson 1.3 Unit 1, Lesson 3. Set:A collection of distinct objects Elements:All of the objects that make up a set.
Advertisements

2.1 Sets. DEFINITION 1 A set is an unordered collection of objects. DEFINITION 2 The objects in a set are called the elements, or members, of the set.
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.
Set Theory.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Partially borrowed from Florida State University
SET THEORY. BASIC CONCEPTS IN SET THEORY Definition: A set is a collection of well-defined objects, called elements Examples: The following are examples.
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.
1. 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 of A” A = {a 1, a 2,
1 Section 1.6 Sets. 2 Set Fundamental discrete structure on which all other discrete structures are built Can be loosely defined as a collection of elements.
Chapter 2 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Slide Section 2-1 Symbols and Terminology. SYMBOLS AND TERMINOLOGY Designating Sets Sets of Numbers and Cardinality Finite and Infinite Sets Equality.
Sets CSLU Fall 2007 Cameron McInally Fordham University.
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 of Numbers Unions, Intersections, and Venn Diagrams
SAT MATH Lesson 10.
Sets & venn diagrams; probability
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.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
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.
Numbers and Sets. A set is a collection of objects. So, any collection of things, such as numbers, can be called a set. To show that we have a set, we.
Set Builder Notation. If you recall, a set is a collection of objects which we write using brackets and name using a capital letter. Remember also that:
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. Outline Set and Set Elements Set Representation Subset, Proper Subset, Set Equality, and Null Set.
Set. Outline Universal Set Venn Diagram Operations on Sets.
Sets CS 202, Spring 2007 Epp, chapter 5.
CISC1100: Sets Fall 2014 Xiaolan Zhang
Dr. Ameria Eldosoky Discrete mathematics
Applied Discrete Mathematics Week 1: Logic and Sets
Set & Interval Notation
Math in Our World Section 2.1 The Nature of Sets.
Sets Page 746.
Welcome to MATH225 Applications of Discrete Mathematics and Statistics.
Sets Finite 7-1.
CHAPTER 2 Set Theory A B C.
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Matrices CSLU Fall 2007 Cameron McInally
The Basic Concepts of Set Theory
Sets Section 2.1.
SETS & FUNCTIONS NOTATION & TERMINOLOGY
(є:belongs to , є:does not belongs to)
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Intro to Set Theory The Math of Santa’s Bag.
… and now for something completely different…
Set and Set Operations Grab a sheet from front.
        { } Sets and Venn Diagrams Prime Numbers Even Numbers
Algebra 1 Section 1.1.
The Basic Concepts of Set Theory
2.1 Sets Dr. Halimah Alshehri.
CHAPTER 1 - Sets and Intervals
Chapter 2 The Basic Concepts of Set Theory
CHAPTER 1 - Sets and Intervals
SETS Sets are denoted by Capital letters Sets use “curly” brackets
Discrete Mathematics CS 2610
Chapter 2 The Basic Concepts of Set Theory
More about Sets.
… and now for something completely different…
Lecture Sets 2.2 Set Operations.
Sets & Set Operations.
SETS, RELATIONS, FUNCTIONS
Introduction A set is a collection of objects.
Section 3.2 More set operations.
Presentation transcript:

Sets CSLU 1100.003 Fall 2007 Cameron McInally cameron.mcinally@nyu.edu Fordham University

Sets When Georg Cantor invented sets he described them as... “By a set we understand any collection S of definite, distinct objects s of our perception or of our thought into a whole.” What that means… “A set is a group of objects, with no duplicates.”

Sets {} Set basics: {a} {a,b,c,apple,e} {a,b,{joe,d},e} Sets are always enclosed in curly brackets. E.g. {a} Objects in sets are separated by commas. E.g. {a,b,c,apple,e} Sets can contain other sets. E.g. {a,b,{joe,d},e} Sets can be empty. E.g. {}

Sets Don’t list any object more than once in a set 2 major rules: Don’t list any object more than once in a set The order of a set does not matter

Sets {a,b,d,d,e} {a,b,c,d,e} {a,b,c,b,b} 1) Don’t list any object more than once: {a,b,d,d,e} {a,b,c,d,e} {a,b,c,b,b}

Sets {a,b,c,d,e} != {e,d,c,a,f} {a,b,c,d,e} == {e,d,c,b,a} 2) The order of a set does not matter: {a,b,c,d,e} != {e,d,c,a,f} {a,b,c,d,e} == {e,d,c,b,a} {a,b,c,d,e} == {b,e,d,a,c}

Sets To represent a set as a whole, we use capital letter names. E.g. A = {x,y,z} So, we can say that set A contains elements x, y and z.

Sets Cardinality |A| = 3 Cardinality is the size of a set. If set A contains 3 elements, we can write… |A| = 3

Sets What is the size of each of these sets? A = {a,b,c,d,e,f,g} B = {x,y,z} C = {{},{},10,11} D = {} E = {{a,b},{c,d}} |A| = 7 |B| = 3 |C| = Not a Set!! |D| = 0 |E| = 2

Sets Infinite Sets “N” is the natural numbers {0, 1, 2, 3, 4, 5, …} “Z” is the set of integers {…-2,-1,0,1,2,…} “Q” is the set of rational numbers (any number that can be written as a fraction “R” is the set of real numbers (all the numbers/fractions/decimals that you can imagine

Sets 7 What is the cardinality? A = {alpha, beta, gamma} C = {{a,{b}},{c,d}} D = {{},{},10,11} E = {} |A| = |B| + |C| = |D| + |E| - |A| = |B| + |D| = 3 6 1 7

Sets Set Builder Notation How do we represent the elements in a set, without specifically writing them out. This is read, “x, such that x is an element of N”. In general; “:” means “such that” “Є“ means “element of” Here, N is the set of Natural Numbers.

Sets Two symbols that we will need: Is a subset of: Is an element of:

Sets Element of and Subset of…

Sets Set builder notation: Everything before the “:” gives a description of what values we want to include in our set Everything after the “:” places constraints on which of the values mentioned in the first half we will actually use.

Sets Examples of Set Builder Notation

Sets Understanding Set Builder Notation http://storm.cis.fordham.edu/~kinley/classes/summer06/cseu1100/flash/ch3/sec3_1/setNotation.html

Sets Union ( ) This creates a new set from the elements in A and B. Duplicates are discarded.

Sets

Sets Intersection ( ) This creates a new set that contains the elements that both A and B have in common. Other elements are discarded.

Sets

Sets Difference (-) This creates a new set that contains the elements of set A without any element in set B.

Sets

Sets Practice Set Operations http://storm.cis.fordham.edu/~kinley/classes/summer06/cseu1100/flash/ch3/sec3_1/setoperations.html

Sets Power Set (2S) Given a set S, this creates a set which contains all the subsets of S. Power Sets include the empty set. Power Sets include the set S. Power Sets are represented by 2S Power Sets can also be written as P(S)

Sets Power Set For A = {1,2,3} 2a = P(A)= {{},{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}} For B = {a,b,c,d} 2B = P(B) = {{},a,b,c,d,{a,b}, {a,c}, {a,d}, {b,c}, {b,d}, {c,d},{a,b,c}, {a,b,d}, {a,c,d}, {b,c,d}, {a,b,c,d}}

Sets Cartesian Product (X) Coordinate Pairs from a Cartesian Product Creates a set consisting of all coordinate pairs. Coordinate Pairs from a Cartesian Product Every combination of one element from the first set with one element from the second set.

Sets Cartesian Product

Homework (Always Due in One Week) Sets Homework (Always Due in One Week) Read Section 3.1, 3.2 Complete Section 3.1 pages 193-195 : 1(a-e), 2(a-d)[super hard], 4(a-d), 11(b,d) Note: These homework problems are unusually hard. I will give you hints, if needed. Complete Section 3.2 pages 208-209 : 1(a-e), 3(a-c), 13(a-e) Hint: n(A) == |A|