Sets CSLU 1100.003 Fall 2007 Cameron McInally Fordham University.

Slides:



Advertisements
Similar presentations
Set and Set Operations Section 2.1.
Advertisements

Lesson 1.3 Unit 1, Lesson 3. Set:A collection of distinct objects Elements:All of the objects that make up a set.
Lecture 2 Introduction To Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
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.
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.
Set Theory.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
CSCI 1900 Discrete Structures
MATHEMATICS XI SETS.
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
Understanding Set Notation
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?
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.
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Set Notation Subset Element Union Intersection Not a Subset
Module Code MA1032N: Logic Lecture for Week Autumn.
Sets of Numbers Unions, Intersections, and Venn Diagrams
SAT MATH Lesson 10.
Sets & venn diagrams; probability
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.
(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.
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.
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.
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.
Set. Outline Universal Set Venn Diagram Operations on Sets.
CISC1100: Sets Fall 2014 Xiaolan Zhang
Applied Discrete Mathematics Week 1: Logic and Sets
Set & Interval Notation
Sets Page 746.
Sets Finite 7-1.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Sets CSLU Fall 2007 Cameron McInally
The Basic Concepts of Set Theory
Sets Section 2.1.
SETS & FUNCTIONS NOTATION & TERMINOLOGY
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
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.
Introduction A set is a collection of objects.
Section 3.2 More set operations.
Presentation transcript:

Sets CSLU Fall 2007 Cameron McInally 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: – 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 2 major rules: 1.Don’t list any object more than once in a set 2.The order of a set does not matter

Sets 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 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 – 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 What is the cardinality? – A = {alpha, beta, gamma} – B = {-5,0,5,10} – C = {{a,{b}},{c,d}} – D = {{},{},10,11} – E = {} |A| = |B| + |C| = |D| + |E| - |A| = |B| + |D| =

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 – mer06/cseu1100/flash/ch3/sec3_1/setNotation.ht ml

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

Sets

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

Sets

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

Sets

Practice – Set Operations Set Operations 6/cseu1100/flash/ch3/sec3_1/setoperations.html

Sets Power Set (2 S ) – 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 2 S – Power Sets can also be written as P(S)

Sets Power Set For A = {1,2,3} 2 a = P(A)= {{},{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}} For B = {a,b,c,d} 2 B = 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) – 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

Always Due in One Week Homework (Always Due in One Week) Read Section Complete Section 2.5 pages : 1, 2(a-d), 3, 4, 5, 6, 7, 8 Sets