Lecture 6 2.1 Sets 2.2 Set Operations.

Slides:



Advertisements
Similar presentations
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,
Advertisements

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
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.
Analytical Methods in CS (CIS 505)
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.
Ch 9 Inequalities and Absolute Value
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:
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)
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
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
Developed by CSE Dept. cist Bhopal
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Sets Goal: Introduce the basic terminology of set theory.
Lecture 2.1: Sets and Set Operations CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
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.
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.
Based on slides by Patrice Belleville and Steve Wolfman CPSC 121: Models of Computation Unit 11: Sets.
Unit :1 Set Theory Prof. A.J. SHAKADWIPI. Sets and Subsets A well-defined collection of objects. finite sets, infinite sets, subset A={1,3,5,7,9} B={x|x.
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.
Fr: Discrete Mathematics by Washburn, Marlowe, and Ryan.
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.
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)
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.
CSE15 Discrete Mathematics 02/13/17
Sets.
Applied Discrete Mathematics Week 1: Logic and Sets
Set & Interval Notation
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
The Language of Sets If S is a set, then
Discrete Mathematical The Set Theory
Set, Combinatorics, Probability & Number Theory
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.
Intro to Set Theory The Math of Santa’s Bag.
Exercises Show that (P  Q)  (P)  (Q)
CS100: Discrete structures
        { } Sets and Venn Diagrams Prime Numbers Even Numbers
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
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
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.
Chapter 2 The Basic Concepts of Set Theory
ICOM 5016 – Introduction to Database Systems
2.1 – Symbols and Terminology
Sets & Set Operations.
Presentation transcript:

Lecture 6 2.1 Sets 2.2 Set Operations

Definition of Set and Set Theory

Describing Set Membership

Set Builder Notation

Sets and Set Operations Definition: A set is any collection of distinct things considered as a whole. A set is an unordered collection of objects. Discuss whether each of the following in a set: S = {1, 2, 3, 42} V = {x|x is a real number} T = {1, 1, 2, 3} W = {x|x is not in W} U = { } Z = {{1,2,3},{2,3,4},{3,4,5}} P = { { }, { { } }, { { { } } } } Q = {{1,2,3}, {2,3,4},{3,2,1}} Since the members of a set are in no particular order Q is not a set if its members are sets, but Q is a set if its members are 3-tuples, vectors or some other entity for which membership order is important. Since f = { } we can rewrite P = { f, {f}, {{f}} } so P is a set containing three elements, namely the empty set, a singleton containing the empty set and a singleton containing a singleton containing the empty set.

Definitions: Set Properties If A is a set containing n elements then |A| = n, and is called the cardinality of A. Given a set S, the power set of S is the set of all subsets of the set S. The power set is S is denoted by P(S). 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. Let A and B be sets. The Cartesian product of A and B, denoted by AxB, is the set of all ordered pairs (a,b) where a A and b B. Hence, AxB = {(a,b)|a A b B}.

Cartesian Product B 2 4 5 1 1,2 1,4 1,5 A = { 1,3,5,8 } 3 3,2 3,4 3,5 1 1,2 1,4 1,5 3 3,2 3,4 3,5 5 5,2 5,4 5,5 8 8,2 8,4 8,5 2 4 5 A = { 1,3,5,8 } B = { 2,4,5 } A = { s, pass, link, stock } B = { word, port, age, able}

Definition: Venn Diagrams

Set Notation with Quantifiers For all x, elements of the Reals, x2 is greater than or equal to 0. There exists an x, element of the Integers, such that x2 equals 1. For every x, element of the Reals, there exists a y, element of the Reals, such that x times y = 1. (give an exception to show this statement is false) For every x, element of the Integers, there exists ay, element of the Integers, such that x plus y = 0.

Truth Sets of Quantifiers

Combining Sets

Set Union

Set Intersection

Venn Diagrams A B U

Set Identities (This is why we had a separate test on first-order logic.)

Membership Table Show that 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 1 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0

Computer Representation of Sets

Satisfiability Set Enumeration An Example Satisfiability Set Enumeration =