Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities 242-213, Semester 2, 2014-2015 1. Set Basics 1.

Slides:



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

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/14/12 Ming-Hsuan Yang UC Merced 1.
Properties and Relationships of Set Theory. Properties and Relationships of Set Theory How are Venn Diagrams used to show relationships among sets? How.
1 Learning Objectives for Section 7.2 Sets After today’s lesson, you should be able to Identify and use set properties and set notation. Perform set operations.
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
Survey of Mathematical Ideas Math 100 Chapter 2
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
MATHEMATICS XI SETS.
Sets.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples.
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.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
CompSci 102 Discrete Math for Computer Science
SECTION 2-3 Set Operations and Cartesian Products Slide
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.
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Set Operations Chapter 2 Sec 3. Union What does the word mean to you? What does it mean in mathematics?
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.
Introduction to Set theory. Ways of Describing Sets.
Discrete Mathematics SETS. What is a set? ^A set is a unordered collection of “objects”  People in a class: {A yşe, B arış, C anan }  Cities in Turkey.
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.
ITD1111 Discrete Mathematics & Statistics STDTLP
Discrete Mathematics Set.
Welcome to Form 4 Mathematics Topic for the day SETS.
1 Section 1.2 Sets A set is a collection of things. If S is a set and x is a member or element of S we write x  S. Othewise we write x  S. The set with.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
Notions & Notations (2) - 1ICOM 4075 (Spring 2010) UPRM Department of Electrical and Computer Engineering University of Puerto Rico at Mayagüez Spring.
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.
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.
Thinking Mathematically Venn Diagrams and Set Operations.
Copyright © 2015, 2011, 2007 Pearson Education, Inc. Section 2.3, Slide 1 CHAPTER 2 Set Theory.
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)
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.
CSE15 Discrete Mathematics 02/13/17
Dr. Ameria Eldosoky Discrete mathematics
Applied Discrete Mathematics Week 1: Logic and Sets
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Discrete Structures – CNS 2300
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 Operations Section 2.2.
2.1 Sets Dr. Halimah Alshehri.
CHAPTER 1 - Sets and Intervals
CHAPTER 1 - Sets and Intervals
Chapter Sets &Venn Diagrams.
Discrete Mathematics CS 2610
Discrete Mathematics R. Johnsonbaugh
Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007
Sets & Set Operations.
Sets, Unions, Intersections, and Complements
Presentation transcript:

Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities , Semester 2, Set Basics 1

1. What are Sets? A set is an unordered collection of things, with no duplicates allowed e.g. the students in this class 2 a b t m h A b  A (b is a member or element of the set A) x  A (x is not a member of the set A)

Examples Set of all vowels in the English alphabet: V = {a,e,i,o,u} Set of all odd positive integers less than 10 : O = {1,3,5,7,9} Set of all positive integers less than 100 : S = {1,2,3,…….., 99} Set of all integers less than 0: S = {…., -3,-2,-1} 3

Some Important Sets N = natural numbers = {0,1,2,3….} Z = integers = {…,-3,-2,-1,0,1,2,3,…} Z⁺ = positive integers = {1,2,3,…..} // no 0 R = set of real numbers R + = set of positive real numbers C = set of complex numbers. Q = set of rational numbers (i.e. fractions: ½) 4

Set-Builder Notation Specify the property (or properties) that all members must satisfy: S = { x | x is a positive integer less than 100} O = { x ∈ Z⁺ | x is odd and x < 10} // {1,3,5,7,9} A predicate (boolean function) can be used: S = { x | P( x )} Example: S = { x | isPrime( x )} 5

Interval Notation [a,b] = {x | a ≤ x ≤ b} [a,b) = {x | a ≤ x < b} (a,b] = {x | a < x ≤ b} (a,b) = {x | a < x < b} Closed interval: [a,b] Open interval: (a,b) 6 e.g. [0, 5) = {0, 1, 2, 3, 4} A bit like array indicies in C, e.g. A[5]

Universal Set and Empty Set The universal set U contains everything in the domain. The empty set has no elements; written as ∅, or {} U Venn Diagram (the domain is the small letters) a e i o u John Venn ( ) 7 b c d f g...

Sets in Sets Sets can be elements of sets. {{1,2,3}, a, {b,c }} {N,Z,Q,R} The empty set is different from a set containing the empty set. ∅ ≠ { ∅ } 8 empty set ≠ b c a

Set Cardinality (size, | | ) The cardinality of a set A, |A|, is the number of elements in A. Examples: 1. |ø| = 0 2. |{ 1,2,3 }| = 3 3. |{ø}| = 1 4. The set of integers is infinite in size. 9

Subset (  ) The set A is a subset of B, iff every element of A is also an element of B. A ⊆ B means that A is a subset of the set B A is smaller (or the same size) as B Example: A = {jim, ben }, B = {jim, ben, andrew} 10 jim ben andrew A B

Proper Subset (  ) If A ⊆ B, but A ≠ B, then A is a proper subset of B written as A  B A is smaller than B 11

2. Set Operations Union Intersection Complement Difference Cardinality of Union 12

Union (  ) The union of the sets A and B is A ∪ B Example: What is { 1,2,3} ∪ {3, 4, 5} ? Solution: { 1,2,3,4,5} U A B A ∪ B 13

Intersection (  ) The intersection of sets A and B is A ∩ B If the intersection is empty, then A and B are called disjoint. Example: What is? {1,2,3} ∩ {3,4,5} ? {3} Example: What is {1,2,3} ∩ {4,5,6} ? Solution: ∅ (disjoint) U A B A ∩BA ∩B 14

Complement (not) The complement of the set A (with respect to U), is Ā, which is the set U - A It is also written as A c Example: If U is the positive integers less than 10, what is the complement of { x | x > 3} Solution: { 1, 2, 3 } A U Ā 15

Difference (-) The difference of the sets A and B is A – B the set containing the elements of A that are not in B Also called the complement of B with respect to A. A – B = A ∩  B U A B A − B 16

The Cardinality of the Union of Two Sets | A ∪ B | = | A | + | B | - | A ∩ B | U A B 17

18 3

One informal way of 'proving' an identity is to draw Venn diagrams for each side of the '=' and show they are the same. e.g. 2nd De Morgan Law: 19 A B U A B U = ?

4. More Information Discrete Mathematics and its Applications Kenneth H. Rosen McGraw Hill, 2007, 7th edition chapter 2, sections 2.1 –