CSCI 1900 Discrete Structures

Slides:



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

Lecture 2 Introduction To Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
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.
Denoting the beginning
Analytical Methods in CS (CIS 505)
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Chapter 2 The Basic Concepts of Set Theory
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Set Theory.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Chapter 2 The Basic Concepts of Set Theory
Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities , Semester 2, Set Basics 1.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
MATHEMATICS XI SETS.
Sets.
This section will discuss the symbolism and concepts of set theory
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  .
Sequences – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Sequences Reading: Kolman, Section 1.3.
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)
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)
Slide Section 2-1 Symbols and Terminology. SYMBOLS AND TERMINOLOGY Designating Sets Sets of Numbers and Cardinality Finite and Infinite Sets Equality.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
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.
Definition of a Set DM is study of discrete structures. Fundamental discrete structure upon which most of other discrete structures are built is the sets.
Module Code MA1032N: Logic Lecture for Week Autumn.
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.
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.
Welcome to Form 4 Mathematics Topic for the day SETS.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
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.
Set Theorem By Derek Mok, Alex Yau, Henry Tsang and Tommy Lee.
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.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
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.
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
Dr. Ameria Eldosoky Discrete mathematics
Sets Finite 7-1.
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
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.
CS100: Discrete structures
Algebra 1 Section 1.1.
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
Applied Discrete Mathematics Week 2: Proofs
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.
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
Presentation transcript:

CSCI 1900 Discrete Structures Sets and Subsets Reading: Kolman, Section 1.1

Definitions of sets A set is any well-defined collection of objects The elements or members of a set are the objects contained in the set Well-defined means that it is possible to decide if a given object belongs to the collection or not.

Set notation Enumeration of sets are represented with a list of elements in curly brackets – example: {1, 2, 3} Set labels are uppercase letters in italics – example: A, B, C Element labels are lowercase letters – example: a, b, c  is the label for the empty set, i.e.,  = { }

Membership  -- “is an element of” (Note that it is shaped like an “E” as in element)  -- “is not an element of” Example: If A = {1, 3, 5, 7}, then 1  A, but 2  A.

Specifying sets with their properties: A set can be represented or defined by the rules classifying whether an object belongs to a collection or not. A = {a | a is __________} The above notation translates to “the set A is comprised of elements a where a satisfies _________.”

Examples of Common Sets Z+ = {x | x is a positive integer} N = {x | x is a positive integer or zero} Z = {x | x is an integer} Q = {x | x is a rational number} Q consists of the numbers that can be written a/b, where a and b are integers and b ≠ 0. R = {x | x is a real number}

Examples of sets used in programming unsigned int int float enum

Subsets If every element of A is also an element of B, that is, if whenever x  A, then x  B, we say that A is a subset of B or that A is contained in B. A is a subset of B if for every x, x  A means that x  B.

Subset Notation  -- “is contained in” (Note that it is shaped like a “C” as in contained in)  -- “is not contained in” “Is not contained in” does not mean that there aren’t some elements that can be in both sets. It just means that not all of the elements of A are in B

Subset Examples vowels  alphabet letters that spell “see”  letters that spell “yes” letters that spell “yes”  letters that spell “easy” letters that spell “say”  letters that spell “easy” positive integers  integers odd integers  integers integers  floating point values (real numbers)

Venn Diagrams Named after British logician John Venn Graphical depiction of the relationship of sets. Does not represent the individual elements of the sets, rather it implies their existence

Venn Diagram Examples A  B B A B A B A or

More Venn Diagram Examples a  A, b  B, and c  A and c  B B A c a b

Theorems on Sets Example: A  B and B  C implies A  C A = {x | letters that spell “see”} = {e, s} B = {x | letters that spell “yes”} = {e, s, y} C = {x | letters that spell “easy”} = {a, e, s, y}

Theorems on Sets (continued) If A  B and B  C, then A  C. If A  B and C  B, that doesn’t mean we can say anything at all about the relationship between A and C. It could be any of the following three cases: A C B

Theorems on Sets (continued) If A is any set, then A  A. That is, every set is a subset of itself. Since  contains no elements, then every element of  is contained in every set. Therefore, if A is any set, the statement   A is always true. If A  B and B  A, then A = B

Universal Set There must be some all-encompassing group of elements from which the elements of each set are considered to be members of or not. For example, to create the set of integers, we must take elements from the universal set of all numbers.

Universal Set (continued) It’s desirable for the all-encompassing set to make sense. Example: Although it is true that students enrolled in this class can be taken from the universal set of all mammals that roam the earth, it makes more sense for the universal set to be people enrolled at ETSU or at least limit the universal set to humans.

Universal Set (continued) The Universal Set U is the set containing all objects for which the discussion is meaningful. (e.g., examining whether a sock is an integer is a meaningless exercise.) Any set is a subset of the universal set from which it derives its meaning In Venn diagrams, the universal set is denoted with a rectangle. U A

Final set of terms Finite – A set A is called finite if it has n distinct elements, where n  N. n is called the cardinality of A and is denoted by |A|, e.g., n = |A| Infinite – A set that is not finite is called infinite. The power set of A is the set of all subsets of A including  and is denoted P(A)