Denoting the beginning

Slides:



Advertisements
Similar presentations
Discrete Structures Chapter 6: Set Theory
Advertisements

Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Instructor: Hayk Melikya
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.
Sets DISCRETE STRUCTURE ABDUL BASIT TAHIR, KAMRAN ALI, FAIZAN ILLAHI, NOMAN AHMAD, ARSALAN MUBASHIR.
1 Section 1.7 Set Operations. 2 Union The union of 2 sets A and B is the set containing elements found either in A, or in B, or in both The denotation.
Analytical Methods in CS (CIS 505)
Sets Definition of a Set: NAME = {list of elements or description of elements} i.e. B = {1,2,3} or C = {x  Z + | -4 < x < 4} Axiom of Extension: A set.
Discrete Mathematics Lecture 4 Harper Langston New York University.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
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,
Chapter 3 – Set Theory  .
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?
Discrete Structure Sets. 2 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.
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.
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
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,
CompSci 102 Discrete Math for Computer Science
Section 2.2 Subsets and Set Operations Math in Our World.
Week 6 - Friday.  What did we talk about last time?  Solving recurrence relations.
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.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
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.
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.
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.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Wed, Mar 8, 2006.
ITD1111 Discrete Mathematics & Statistics STDTLP
Discrete Mathematics Set.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Mon, Feb 21, 2005.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Fr: Discrete Mathematics by Washburn, Marlowe, and Ryan.
MATH 2311 Section 2.2. Sets and Venn Diagrams A set is a collection of objects. Two sets are equal if they contain the same elements. Set A is a subset.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
Boolean Algebras Lecture 24 Section 5.3 Wed, Mar 22, 2006.
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.
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)
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.
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, Permutations, and Combinations. Lecture 4-1: Sets Sets: Powerful tool in computer science to solve real world problems. A set is a collection of.
Dr. Ameria Eldosoky Discrete mathematics
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
CSNB 143 Discrete Mathematical Structures
Set, Combinatorics, Probability & Number Theory
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
Algebra 1 Section 1.1.
2.1 Sets Dr. Halimah Alshehri.
Discrete Mathematics CS 2610
Discrete Mathematics R. Johnsonbaugh
2.1 – Symbols and Terminology
Presentation transcript:

Denoting the beginning SET THEORY What is a set? A set is a collection of distinct objects. The objects in a set are called the elements or the members of the set. The name of the set is written in upper case and the elements of the set are written in lower case. If x is an element of a set A, we say that x belongs to or is a member of A, and is expressed symbolically as x A. If y is not a member of A, then this is symbolically denoted as y A Let V be the set of all vowels. Then V is written as V= {a, e, i, o, u} Name of the set The curly brackets Denoting the beginning And end The definition of a set should be such that given an element, you can unambiguously judge whether that Kavita Hatwal Fall 2002

The order in which elements appear do not matter, so {a,o,i,e, u}, {u, e, o, a, i}, {o, e, a, i,u} are all V a {a} a is an element whereas {a} is a set whose element is a. {} makes all the difference in set notation. Page 242, #6-c, d Page 266, #6-c, d Sets given by defining property. {x R | -2 < x < 5 } Is read as (from left to right) the set of all x such that x is a real number and also x is greater than –2 and less than 5. Can you list some of the members of this set? Page 242, #4-b Page 266, #4-b Finite and infinite sets. Sets whose elements can be listed are called finite sets, like H={seasons in a year} Which of the above sets are finite and which are infinite? Kavita Hatwal Fall 2002

Can you find any x which satisfies the above condition? SUBSETS If A and B are sets , A is called the subset of B, written as A B, if and only if, every element of A is also an element of B. Symbolically, A B , x, if x A then x B. Also A is contained in B or B contains A are ways of saying that A is a subset of B. Page 242, #6-g, h Page 266, #6-g, h EMPTY SET Consider the set X= Can you find any x which satisfies the above condition? A = {set of all animals} P={x A| x is a pink elephant} What could possibly be the elements of P? A set with no elements is called an empty set denoted as . An empty Set is a subset of every set. A, where A is any set. Kavita Hatwal Fall 2002

Is in B but there is at least one element of B that is not in A because is the set with no elements {}, whereas { } is the set with one element, the empty set. Subsets revisited Let A and B be sets. A is a proper subset of B if, and only if, every element of A Is in B but there is at least one element of B that is not in A For every set A A A, i.e. each set is its own subset And A, i.e. the empty set is subset of every set U is the universal set or universe of discourse. It is considered the all encompassing set. Every set is a subset of U. Kavita Hatwal Fall 2002

For example, if A and B are sets and Venn Diagrams What is a Venn Diagram? A Venn Diagram is a pictorial representation of sets. U is the universal set which is represented as a rectangle. Other sets are represented as circles. For example, if A and B are sets and A B, that is B contains A, then this situation is represented as More on Venn Diagrams later Z = set of integers Q = set of rational numbers. R= set of real numbers Can you show the subset relation between Z, Q and R using notation and Venn Diagram notation ? A B Kavita Hatwal Fall 2002

element of A is in B and every element of B is in A. Symbolically, Set Equality Venn Diagram Page 243, #10-a, c Page 266, #10-a, c Given two sets A and B, A equals B, written A = B, if, and only if, every element of A is in B and every element of B is in A. Symbolically, A=B Kavita Hatwal Fall 2002

Let A and B be subsets of the universal set U. Set Operations. Let A and B be subsets of the universal set U. The Union of A and B , denoted , is the set of all elements x in U such that x is either in A or in B. 2. The Intersection of A and B , denoted , is the set of all elements x in U such that x is in both A and B. 3. The Difference of B minus A , denoted B-A, is the set of all elements x in U such that x is in B, but not in A. The complement of a set A, denoted as is the set of all elements x in U such that x is not in A. Symbolically Kavita Hatwal Fall 2002

Show the facts of previous slides using Venn Diagrams Class Activity Draw the rest on your own Page 242, #7 Page 266, #7 Kavita Hatwal Fall 2002

A  B = B  A. A  B = B  A. c = U. Uc = . Complement A  Ac = . A  Ac = U. Distributivity A  (B  C) = (A  B)  (A  C). A  (B  C) = (A  B)  (A  C). Identity A  U = A. A   = A. Commutativity A  B = B  A. A  B = B  A. Kavita Hatwal Fall 2002

Associativity (A  B)  C = A  (B  C). (A  B)  C = A  (B  C). Idempotent A  A = A. A  A = A. Universal Bounds A   = . A  U = U. Two sets A and B are called disjoint if they have no elements in common, i.e. A  B =  Page 267, #6-a, 8 Page 268, #19-a, 290 #4 Kavita Hatwal Fall 2002

Given 2 sets A and B, the Cartesian Product of A and B , denoted , is the set of all ordered pairs(a,b), where a is in A and b is in B. Given sets the Cartesian Product of denoted by is the set of all ordered n-tuples where Symbolically, Page 238, example 5.1.10 Page 265, example 5.1.15 Given a set A, the power set of A, denoted P (A), is the set of all subsets of A. For all sets A and B, then 1. 2. Page 268, #40 Page 268, #26 Kavita Hatwal Fall 2002

Two sets A and B are disjoint if A  B = . Sets A1, …, An are pairwise disjoint if Ai  Aj =  for all i, j  {1, …, n}, with i  j. A collection of sets {A1, …, An} is a partition of a set A if A1  …  An = A, and A1, …, An are pairwise disjoint. Kavita Hatwal Fall 2002

Then {A0, A1, A2} is a partition of Z. Let A0 = {n  Z | n = 3k for some k  Z}. A1 = {n  Z | n = 3k + 1 for some k  Z}. A2 = {n  Z | n = 3k + 2 for some k  Z}. Then {A0, A1, A2} is a partition of Z. Kavita Hatwal Fall 2002

Set Identities Kavita Hatwal Fall 2002

A Boolean algebra is a set S that includes two elements 0 and 1, Boolean Algebras A Boolean algebra is a set S that includes two elements 0 and 1, has two binary operations + and , has one unary operation , which satisfy the following properties for all a, b, c in S: Kavita Hatwal Fall 2002

Boolean Algebras Commutativity a + b = b + a. a  b = b  a. Associativity (a + b) + c = a + (b + c). (a  b)  c = a  (b  c). Kavita Hatwal Fall 2002

Boolean Algebras Distributivity a  (b + c) = (a  b) + (a  c) Identity a + 0 = a. a  1 = a. Kavita Hatwal Fall 2002

Boolean Algebras Complementation a + a = 1. a  a = 0. Kavita Hatwal Fall 2002

Examples: Boolean Algebras Let U be a nonempty universal set. Let 0 be  and 1 be U. Let + be  and  be . Let  be complementation. Then U is a Boolean algebra. Let U be a nonempty universal set. Let 0 be U and 1 be . Let + be  and  be . Let  be complementation. Then U is a Boolean algebra. Kavita Hatwal Fall 2002

Examples: Boolean Algebras Let S be the set of all statements. Let 0 be F and 1 be T. Let + be  and  be . Let  be negation. Let = be . Then S is a Boolean algebra. Let S be the set of all statements. Let 0 be T and 1 be F. Let + be  and  be . Let  be negation. Let = be . Then S is a Boolean algebra. Kavita Hatwal Fall 2002

Theorem: Let S be a Boolean algebra and let a, b in S. Then a  a = a. Derived Properties Theorem: Let S be a Boolean algebra and let a, b in S. Then a  a = a. a + a = a. a  0 = 0. a + 1 = 1. a  b = a if and only if a + b = b. a  b = a + b if and only if a = b. Kavita Hatwal Fall 2002

Derived Properties, continued a  b = 0 and a + b = 1 if and only if a = b. 0 = 1. 1 = 0. (a) = a. (a  b) = a + b. (a + b) = a  b. Kavita Hatwal Fall 2002

Example: Boolean Algebra Let S = {1, 2, 3, 5, 6, 10, 15, 30}. Define a + b = gcd(a, b). a  b = lcm(a, b). a = 30/a. 1 is U, 30 is 0 Verify the 10 basic properties. http://en.wikipedia.org/wiki/Greatest_common_divisor Kavita Hatwal Fall 2002