More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,

Slides:



Advertisements
Similar presentations
Equivalence Relations
Advertisements

Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
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.
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.
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.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Sets 1.
What is the best way to start? 1.Plug in n = 1. 2.Factor 6n 2 + 5n Let n be an integer. 4.Let n be an odd integer. 5.Let 6n 2 + 5n + 4 be an odd.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/14/12 Ming-Hsuan Yang UC Merced 1.
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.
Mathematics.
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.
5.1 Sets Sets and Elements Union and Intersection Subset and Empty Set
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Sets.
ICS 253: Discrete Structures I
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (2)
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
A Universal Turing Machine
SECTION 2-3 Set Operations and Cartesian Products Slide
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
2.2 Set Operations. The Union DEFINITION 1 Let A and B be sets. The union of the sets A and B, denoted by A U B, is the set that contains those elements.
Mathematical Preliminaries
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 Basic Structure : Sets, Functions, Sequences, and Sums Sets Operations.
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:
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.
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.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
Discrete Mathematics CS 2610 January 27, part 2.
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.
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.
Set Operations Section 2.2.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
Sets and Basic Operations on Sets Notation A set will usually be denoted by a capital letter, such as, A,B,X, Y,..., whereas lower-case letters, a, b,
Introduction to Graph Theory & its Applications
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
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.
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.
ICS 253: Discrete Structures I
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
CSNB 143 Discrete Mathematical Structures
Overview of Sets an Functions for ICS 6D
Sets Section 2.1.
CSE15 Discrete Mathematics 02/15/17
The Basic Concepts of Set Theory
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Discrete Math (2) Haiming Chen Associate Professor, PhD
Set Operations Section 2.2.
The Basic Concepts of Set Theory
2.1 Sets Dr. Halimah Alshehri.
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.
Chapter Sets &Venn Diagrams.
Discrete Mathematics CS 2610
The aim of education is to teach students how to think rather than what to think. Sets The set is the fundamental discrete structure on which all other.
ICS 253: Discrete Structures I
Lecture Sets 2.2 Set Operations.
Terminology and Symbols
Presentation transcript:

More Set Definitions and Proofs 1.6, 1.7

Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element, a2 as its second element... And an as its nth element. 2-tuples are called ordered pairs.

Cartesian Product of A and B Let A and B be sets. The Cartesian product of A and B, denoted A x B is the set of all ordered pairs (a,b) where a  A and b  B. Hence A x B = {(a,b) | a  A  b  B} The Cartesian product of the sets A1,A2,.., An denoted by A1 x A2 x … x An is the set of ordered n-tuples (a1,a2,..,an) where ai belongs to Ai for I = 1,2,...,n. A1 x A2 x…x An = {(a1,a2,..,an) | ai  Ai for I=1,2…,n}

Generalized Unions and Intersections A1  A2 ...  An = A1  A2 ...  An =

Let Ai = {1,2,3…i}for i = 1,2,3,… (that is, A1=1; A2=1,2; A3=1,2,3; etc…) Find = 1,2,3,..., n = 1

Let Ai = {i,i+1,i+2…} Find = Z+ = n, n+1, n+2, …

Symmetric Difference Problem Prove(A  B)  B = A  A  B  elements in A or B but not in both.

Prove (A  B)  B = A ABA  B(A  B)  B

Prove (A  B)  B = A Proof: We must show that (A  B)  B  A and that A  (A  B)  B. First we will show that (A  B)  B  A. Let e  (A  B)  B. Then e  (A  B) or e  B but not both. If e  (A  B), then either e  A or e  B. If e  A and e  B then we are done. If e  B, and e  A, then e  (A  B) but can not be an element of (A  B)  B by definition so this case can not exist.

Proof of (A  B)  B = A, cont. Now we will show that A  (A  B)  B. Let e  A. Either e is also  B or e  B. If e  B, then e  (A  B) so e is an element of (A  B)  B. If e  B, e is an element of (A  B) and e must be an element of (A  B)  B. Thus (A  B)  B = A.

Computer Representation of Sets How to store the elements of sets and make computing the union, intersection, difference, etc., easier? Assume U is finite and of reasonable size. It has cardinality n. First, specify an arbitrary ordering of the elements of U. Represent a subset A of U with a bit string of length n, where the i’th bit is 1 if u i belongs to A and 0 if u i does not belong to A.

Using the Computer Representation Let U = {1,2,3,4,5,6,7,8,9,10}. Assume an ordering of the elements as written What bit string represents the subset of all odd integers? What bit string represents the set of all integers that do not exceed 5? What’s the complement of this set? General rule for complements?

Using the Computer Representation The bits strings of {1,2,3,4,5} and {1,3,5,7,9} are and , respectively What is the union of these sets?  = What is the intersection of these sets?  = What’s the general rules? bitwise OR for union; bitwise AND for intersection