CSNB 143 Discrete Mathematical Structures

Slides:



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

Instructor: Hayk Melikya
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Denoting the beginning
Analytical Methods in CS (CIS 505)
Operations on Sets Union Intersection: Two sets are disjoint if their intersection is the null set. Difference A - B. Complement of a set A.
Set Theory.
Mathematics.
Survey of Mathematical Ideas Math 100 Chapter 2
Survey of Mathematical Ideas Math 100 Chapter 2 John Rosson Thursday January 25, 2007.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
MATHEMATICS XI SETS.
Discrete Mathematics Unit - I. Set Theory Sets and Subsets A well-defined collection of objects (the set of outstanding people, outstanding is very subjective)
Venn Diagrams/Set Theory   Venn Diagram- A picture that illustrates the relationships between two or more sets { } are often used to denote members of.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Sets --- A set is a collection of objects. Sets are denoted by A, B, C, … --- The objects in the set are called the elements of the set. The elements are.
CompSci 102 Discrete Math for Computer Science
Thinking Mathematically Chapter 2 Set Theory 2.1 Basic Set Concepts.
Sets Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Definition of Set A set is a collection of objects called elements.
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?
CSNB143 – Discrete Structure Topic 1 - Set. Topic 1 - Sets Learning Outcomes – Student should be able to identify sets and its important components. –
Chapter 2 With Question/Answer Animations. Section 2.1.
Introduction to Set theory. Ways of Describing Sets.
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.
Discrete Mathematics Set.
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.
Discrete Mathematics Lecture # 10 Venn Diagram. Union  Let A and B be subsets of a universal set U. The union of sets A and B is the set of all elements.
 Union Symbol ∪ If A and B are sets, their union is equal to all elements in both A & B A = {1,2,3,4} B = {2,4,5,6,7,8} A ∪ B = {1,2,3,4,5,6,7,8}
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.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
Thinking Mathematically Venn Diagrams and Set Operations.
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.
Sets and Operations TSWBAT apply Venn diagrams in problem solving; use roster and set-builder notation; find the complement of a set; apply the set operations.
CPCS 222 Discrete Structures I
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.
Dr. Ameria Eldosoky Discrete mathematics
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Sets Page 746.
Chapter two Theory of sets
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Discrete Mathematical The Set Theory
Set, Combinatorics, Probability & Number Theory
Sets Section 2.1.
CS 2210:0001 Discrete Structures Sets and Functions
(є: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.
CS100: Discrete structures
Set and Set Operations Grab a sheet from front.
Set Operations Section 2.2.
        { } Sets and Venn Diagrams Prime Numbers Even Numbers
Algebra 1 Section 1.1.
Session – 2 SETS & Operations of SETS
2.1 Sets Dr. Halimah Alshehri.
Chapter Sets &Venn Diagrams.
SETS Sets are denoted by Capital letters Sets use “curly” brackets
Discrete Mathematics CS 2610
Discrete Mathematics R. Johnsonbaugh
Sets & Set Operations.
Introduction A set is a collection of objects.
Sets, Unions, Intersections, and Complements
Presentation transcript:

CSNB 143 Discrete Mathematical Structures Chapter 2 - Sets

Sets OBJECTIVES Student should be able to identify sets and its important components. Students should be able to apply set in daily lives. Students should know how to use set in its operations.

What, which, where, when 1. Basics of set (Clear / Not Clear ) 2.Terms used in set Equal sets (Clear / Not Clear) Empty (Clear / Not Clear) Disjoint / Joint (Clear / Not Clear) Finite / Infinite (Clear / Not Clear) Cardinality (Clear / Not Clear) Subset (Clear / Not Clear) Power set (Clear / Not Clear)

3. Operations on sets Union (Clear / Not Clear) Intersection (Clear / Not Clear) Complement (Clear / Not Clear) Symmetric Difference (Clear / Not Clear) 4. Venn Diagram Information Searching (Clear / Not Clear)

Set A collection of data or objects. Each entity is called element or member, defined by symbol . Order is not important. Repeated element is not important. One way to describe set is to listing all the elements, in curly bracket.

Ex 1: A = {1, 2, 3, 4, 5} B = {2, 3, 1, 4, 5) C = {1, 2, 1, 3, 4, 5} Thus we said, sets A and B are equal. A = B 1  A, 2  A, but 7  A How about A and C? How about B and C?

Ex 2: P = {p, q, r} Q = {p, q, r, s} R = {q, r, s} So, p  P, q  P, r  P, q  Q, r  R

Other way to describe set: A = {x| 1  x  5} A = {x| x is an integer from 1 to 5, both included} A = {x| x + 1 ; 0  x < 5} If the set has no element, it is called the empty set, denoted by {} or . Let D = {6, 7, 8} So, A and D are called Disjoint Sets. Why? What is the example of joined set?

A set A is called finite if it has n distinct elements, where n  N (nonnegative number). Ex 3: A = {x| 1  x  5} The number of its elements, n is called the cardinality of A, denoted by |A|= 5. A set that is not finite is called infinite. Ex 4: A = {x| x ≥ 1}

Subset If every element of A is also an element of B, that is, if whatever x  A then x  B, we say that A is a subset of B or that A is contained in B, written as A  B (some books use symbol ). Sets that all its elements are part or overall of other set. Ex 5: A = {1, 2, 3, 4, 5} B = {1, 3, 5} C = {1, 2, 4, 6}, Thus, B  A, but C  A B  A but A  B

Consider Ex 1. A = {1, 2, 3, 4, 5} B = {2, 3, 1, 4, 5) C = {1, 2, 1, 3, 4, 5} Is A  B? Is B  A? Is A  C? Is B  C?

Power Set If A is a set, then the set of all subsets of A is called the power set of A, denoted by P (A). A set that contains all its subset as its element. Ex 6: A = {1, 2} P (A) = {{1}, {2}, {1, 2}, } |P (A)| = 4

Operation on sets Union Let say A and B are sets. Their union is a set consisting of all elements that belong to A OR B and denoted by A  B. A  B = {x|x  A or x  B} Intersections Let say A and B are sets. Their intersection is a set consisting of all elements that belong to both A AND B and denoted by A  B. A  B = {x|x  A and x  B}

Operation on sets Complement Let say set U is a universal set. U – A is called the complement of A, denoted by A’ (some book use A) A’ = { x|x  A} If A and B are two sets, the complement of B with respect to A is a set that contain all elements that belong to A but not to B, denoted by A – B. Try Ex 5. Find A – B, A – C, C – A, C – B.

Symmetric Difference Let say A and B are two sets. Their symmetric difference is a set that contain all elements that belong to A OR B but not to both A and B, denoted by A  B. A  B = {x|(x  A and x  B) or (x  B and x  A)} Try Ex 2. Find P  R.

Venn Diagram Exercise : A  B A  B A  B  C A  B  C A – B B – A

Theorems Commutative A B = B  A A  B = B  A Associative A  (B  C) = (A  B)  C A  (B  C) = (A  B)  C Distributive A  (B  C) = (A  B)  (A  C) A  (B  C) = (A  B)  (A  C) Idempotent A  A = A A  A = A

Complement A’’ = A A  A’ = U A  A’ =  ’ = U U’ =  (A  B)’ = A’  B’ (A  B)’ = A’  B’ Universal Set A  U = U A  U = A Empty Set A   = A A   = 

2 disjoint sets |A  B| = |A| + |B| 2 joint sets |A  B| = |A| + |B| - |A  B| 3 disjoint sets |A  B  C| = |A| + |B| + |C| 3 joint sets |A  B  C| = |A| + |B| +|C| - |A  B| - |A  C| - |B  C| + |A  B  C|