22 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.

Slides:



Advertisements
Similar presentations
Lecture 2 Introduction To Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Advertisements

13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Section 1.6: Sets Sets are the most basic of discrete structures and also the most general. Several of the discrete structures we will study are built.
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.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Mathematics.
2.1 – Symbols and Terminology Definitions: Set: A collection of objects. Elements: The objects that belong to the set. Set Designations (3 types): Word.
CSCI 1900 Discrete Structures
SET Miss.Namthip Meemag Wattanothaipayap School. Definition of Set Set is a collection of objects, things or symbols. There is no precise definition for.
Set Notation.
This section will discuss the symbolism and concepts of set theory
22 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Formal.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
SET THEORY. BASIC CONCEPTS IN SET THEORY Definition: A set is a collection of well-defined objects, called elements Examples: The following are examples.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Chapter 7 Logic, Sets, and Counting Section 2 Sets.
1 April 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Formal.
03 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
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)
Sets and Sentences Open Sentences Foundations of Real Analysis.
CompSci 102 Discrete Math for Computer Science
2.1 Symbols and Terminology. Designating Sets A set is a collection of objects (in math, usually numbers). The objects belonging to the set are called.
Slide Section 2-1 Symbols and Terminology. SYMBOLS AND TERMINOLOGY Designating Sets Sets of Numbers and Cardinality Finite and Infinite Sets Equality.
Copyright © Cengage Learning. All rights reserved.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
1 Introduction to Abstract Mathematics Sets Section 2.1 Basic Notions of Sets Section 2.2 Operations with sets Section 2.3 Indexed Sets Instructor: Hayk.
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Module Code MA1032N: Logic Lecture for Week Autumn.
Sets Goal: Introduce the basic terminology of set theory.
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.
1 Chapter Two Basic Concepts of Set Theory –Symbols and Terminology –Venn Diagrams and Subsets.
Discrete Mathematics Lecture # 10. Set Theory  A well defined collection of {distinct} objects is called a set.  The objects are called the elements.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
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.
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.
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.
Lecture 5 Set Theory. Plan of lecture Why set theory? Sets and their properties Membership and definition of sets “Famous” sets Types of variables and.
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. Outline Set and Set Elements Set Representation Subset, Proper Subset, Set Equality, and Null Set.
Dr. Ameria Eldosoky Discrete mathematics
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
CSNB 143 Discrete Mathematical Structures
Set, Combinatorics, Probability & Number Theory
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.
The Basic Concepts of Set Theory
2.1 Sets Dr. Halimah Alshehri.
Chapter 2 The Basic Concepts of Set Theory
Discrete Mathematics CS 2610
Chapter 2 The Basic Concepts of Set Theory
Chapter 7 Logic, Sets, and Counting
Presentation transcript:

22 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction to Discrete Mathematics Sets Part1

22 March 2009Instructor: Tasneem Darwish2 Outlines Sets and Membership. Subsets. Operations on Sets.

22 March 2009Instructor: Tasneem Darwish3 a set is to be thought of as any collection of objects whatsoever. The objects can also be anything and they are called elements of the set. The elements contained in a given set need not have anything in common. we should be able to decide whether an element belongs to the set. Example 3.1: 1.A set could be defined to contain Picasso, the Eiffel Tower and the number π. 2.The set containing all the positive, even integers is clearly an infinite set. 3. Consider the ‘set’ containing the 10 best songs of all time. This is not allowed unless we give a precise definition of ‘best’. Sets and Membership

22 March 2009Instructor: Tasneem Darwish4 upper-case letters are used to denote sets lower-case letters are used to to denote elements. The symbol ∈ denotes ‘belongs to’ or ‘is an element of’. The simplest set definition is by listing the elements enclosed between curly brackets or ‘braces’ { } D = { }, the empty set (or null set), which contains no elements. This set is denoted. Sets and Membership

22 March 2009Instructor: Tasneem Darwish5 Listing the elements of a set is impractical except for small sets An alternative is to define the elements of a set by a property or predicate if P(x) is a propositional function, we can form the set whose elements are all those objects a (and only those) for which P(a) is a true proposition. A set defined in this way is denoted Example 3.2: 1)The set B could be defined as B = {n : n is an even, positive integer}, or B = {n : n = 2m, where m > 0 and m is an integer} 2)The set {1, 2} could alternatively be defined as {x : x2−3x +2= 0}. 3) The empty set can be defined in this way Sets and Membership

22 March 2009Instructor: Tasneem Darwish6 Two sets are defined to be equal if and only if they contain the same elements Theses are equal sets: Sets with different definitions but same elements are equal Equality of Sets

22 March 2009Instructor: Tasneem Darwish7 If A is a finite set its cardinality, |A|, is the number of (distinct) elements which it contains. If A has an infinite number of elements, we say it has infinite cardinality, and write |A| = ∞. Other notations commonly used for the cardinality of A are n(A), #(A) and Examples 3.3 | | = 0 since contains no elements. |{π, 2, Attila the Hun}| = 3. If X = {0, 1,..., n} then |X| = n + 1. |{2, 4, 6, 8,...}| = ∞. |{{1,2}}|= 1 also |{ }|=1 Set cardinality

22 March 2009Instructor: Tasneem Darwish8 The set A is a subset of the set B, denoted A ⊆ B, if every element of A is also an element of B. Symbolically, A ⊆ B if ∀ x [x ∈ A → x ∈ B] is true. If A is a subset of B, we say that B is a superset of A, and write B ⊇ A Clearly every set B is a subset of itself, B ⊆ B. The notation A ⊂ B is used to denote ‘A is a proper subset of B’. Thus A ⊂ B if and only if A ⊆ B and A ≠ B. ⊆ A for every set A. The proposition x ∈ is false subsets

22 March 2009Instructor: Tasneem Darwish9 Examples {2, 4, 6,...} ⊆ {1, 2, 3,...} ⊆ {0, 1, 2,...}. Of course, we could have used the proper subset symbol ⊂ to link these three sets instead. 2.Let X = {1, {2, 3}}. Then {1} ⊆ X but {2, 3} is not a subset of X. {2, 3} is an element of X, so {{2, 3}} ⊆ X. To prove that two sets are equal, A = B, it is sufficient to show that each is a subset of the other, A ⊆ B and B ⊆ A subsets

22 March 2009Instructor: Tasneem Darwish10 Examples 3.6 (1) Show that Let and  We need to show that every element of A is an element of B  The equation 2x 2 + 5x − 3 = 0 has solutions x = ½ and x = −3, so A = {1/2,−3}.  When x = 1/2, 2x 2 + 7x + 2 = 1/2+ 7/2+ 2 = 6 = 3/x, so ½ ∈ B.  When x = −3, 2x 2 + 7x + 2 = 18 − = −1 = 3/x, so −3 ∈ B.  Therefore every element of A is an element of B, so A ⊆ B. subsets

22 March 2009Instructor: Tasneem Darwish11 Examples 3.6 (2) Let A = {{1}, {2}, {1, 2}} and let B be the set of all non-empty subsets of {1, 2}. Show that A = B. Solution  B={{1},{2},{1,2}}  Thus, A ⊆ B and B ⊆ A  We conclude that A=B subsets

22 March 2009Instructor: Tasneem Darwish12 The universal set is frequently denoted. The universal set is essentially the universe of discourse introduced in chapter 1. Some special sets of numbers which are frequently used as universal sets are the following: Also frequently used are and, the sets of positive integers, rational numbers and real numbers respectively. Note that is not equal to Universal sets

22 March 2009Instructor: Tasneem Darwish13 sometimes we use and to denote the sets of even and odd integers Universal sets

22 March 2009Instructor: Tasneem Darwish14