Sets.

Slides:



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

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Section 1.6: Sets Sets are the most basic of discrete structures and also the most general. Several of the discrete structures we will study are built.
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.
Sets DISCRETE STRUCTURE ABDUL BASIT TAHIR, KAMRAN ALI, FAIZAN ILLAHI, NOMAN AHMAD, ARSALAN MUBASHIR.
Analytical Methods in CS (CIS 505)
Chapter 2 The Basic Concepts of Set Theory
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 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.
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:
Survey of Mathematical Ideas Math 100 Chapter 2 John Rosson Thursday January 25, 2007.
Sets.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
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.
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,
Sets and Sentences Open Sentences Foundations of Real Analysis.
CompSci 102 Discrete Math for Computer Science
Chapter 2 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
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.
Sets Goal: Introduce the basic terminology of set theory.
Chapter 2 With Question/Answer Animations. Section 2.1.
Basic Structures: Sets, Functions, Sequences, and Sums.
1 Chapter Two Basic Concepts of Set Theory –Symbols and Terminology –Venn Diagrams and Subsets.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Thinking Mathematically Venn Diagrams and Subsets.
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.
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.
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)
CSE15 Discrete Mathematics 02/13/17
Sets Finite 7-1.
Chapter 2 Sets and Functions.
Set Definition: A set is unordered collection of objects.
The Language of Sets If S is a set, then
Discrete Mathematical The Set Theory
Lecture 04 Set Theory Profs. Koike and Yukita
The Basic Concepts of Set Theory
Sets Section 2.1.
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
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
Applied Discrete Mathematics Week 2: Proofs
CHAPTER 1 - Sets and Intervals
Sets. EXAMPLE 1 The set O of odd positive integers less than 10 can be expressed by O = { l, 3, 5, 7, 9}. * This way of describing a set is known as.
Discrete Mathematics CS 2610
2 Chapter Numeration Systems and Sets
Chapter 2 The Basic Concepts of Set Theory
Discrete Mathematics Lecture 6: Set and Function
Terms Set S Set membership x  S Cardinality | S |
Which sets are equal? Which sets are equivalent?
2.1 – Symbols and Terminology
Lecture Sets 2.2 Set Operations.
Sets & Set Operations.
Introduction A set is a collection of objects.
Presentation transcript:

Sets

Copyright © Peter Cappello 2011 Definition Visualize a dictionary as a directed graph. Nodes represent words If word w is defined in terms of word u, draw an edge from w to u. Can the dictionary be infinite? Can the dictionary have cycles? Thus, some words are not formally defined. “Set” is a primitive concept in mathematics: It is not formally defined. A set intuitively is an unordered collection of elements. Copyright © Peter Cappello 2011

Preliminaries The universe of discourse, denoted U, intuitively is a set describing the context for the duration of a discussion. E. g., let U be the set of integers. (As far as I can tell, the purpose of the Universe is to ensure that the complement of a set is a set.) Copyright © Peter Cappello 2016

Copyright © Peter Cappello 2011 Preliminaries A set S is well-defined when we can decide whether any particular object in the universe of discourse is an element of S. S is the set of all even numbers S is the set of all human beings Do we have a rule that lets us decide whether some blob of protoplasm is a human being? Copyright © Peter Cappello 2011

Definitions & Conventions A set’s objects are called its members or elements. We can describe a set with set builder notation. O = { x | x is an odd positive integer < 10 }. O = { x  Z+ | x < 10 and x is odd }. By convention: N = { 0, 1, 2, 3, … } the set of natural numbers. Z = { …, -2, -1, 0, 1, 2, … } the set of integers. Z+ = { 1, 2, 3, … } the set of positive integers. Q = { p/q | p, q  Z and q  0 } the set of rationals. R = the set of real numbers. Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2011 Definitions Set A is a subset of set B, denoted A  B, when x ( x  A  x  B ). Set A equals set B when they have the same elements: A = B when x ( x  A  x  B ). We can show A = B via 2 implications: A  B  B  A x ( ( x  A  x  B )  ( x  B  x  A ) ). Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2011 The empty set, denoted , is the set with no elements. Let A be an arbitrary set. True, false, or maybe?   A.   A. A  A. A  A. If A  B  A  B then A is a proper subset of B, denoted A  B. Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2011 Venn Diagrams Venn diagram of A  B. U B A Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2011 Cardinality If S is a finite set with n elements, then its cardinality is n, denoted |S|. Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2016 The Power Set The power set of set S, denoted P(S), is { T | T  S }. What is P( { 0, 1 } )? What is P(  )? What is P( P(  ) )? Let P1( S ) = P( S ), Pn( S ) = P ( Pn-1( S ) ), for n > 1 | Pn (  ) | = ? Copyright © Peter Cappello 2016

Copyright © Peter Cappello 2016

Copyright © Peter Cappello 2016

Copyright © Peter Cappello 2011 | Pn (  ) | = 2| Pn-1 (  ) | Express | P5 (  ) | using only digits 2 & 0. Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2011 2n is the number of vertices in a n-dimensional cube. Are there any connections between: an n-dimensional cube the power set of a set with n elements? Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2011 Cartesian Products The Cartesian product of sets A and B, denoted A x B, is A x B = { ( a, b ) | a  A  b  B }. Let S = { small, medium, large } and C = { pink, lavender }. Enumerate the ordered pairs in S x C. Enumerate the ordered pairs in C x S. Enumerate the ordered pairs in  x S. | S x C | = ? Copyright © Peter Cappello 2011

Copyright © Peter Cappello 2011 Cartesian Products Generalizing Cartesian product to n sets: A1 x A2 x … x An = { ( a1, a2, …, an ) | a1  A1, a2  A2, …, an  An }. Describe | A1 x A2 x … x An | in terms of the cardinalities of the component sets. Using sets S and C as previously described, describe ( S x C ) x ( C x S ). | ( S x C ) x ( C x S ) | = ? Copyright © Peter Cappello 2011

Using Set Notation with Quantifiers A shorthand for x ( x  R  x2 ≥ 0 ) is x  R ( x2 ≥ 0 ) A shorthand for x ( x  Z  x2 = 1 ) is x  Z ( x2 = 1 ) The statements above are either true or false. What if you want the set of elements that make a proposition function true? Copyright © Peter Cappello 2011

Truth Sets of Proposition Functions Let P be a proposition function and D a domain. The truth set of P with respect to D is { x  D | P( x ) }. Enumerate the truth set { x  N | ( x < 20 )  ( x is prime ) }. Copyright © Peter Cappello 2016