What is a set? Sets. Specifying a Set. Notes. The Universal Set. Specifying a Set 10/29/13



Similar documents
Check Skills You ll Need. New Vocabulary union intersection disjoint sets. Union of Sets

A Little Set Theory (Never Hurt Anybody)

THE LANGUAGE OF SETS AND SET NOTATION

Discrete Mathematics

Mathematics Review for MS Finance Students

Lecture 1. Basic Concepts of Set Theory, Functions and Relations

Automata Theory. Şubat 2006 Tuğrul Yılmaz Ankara Üniversitesi

INTRODUCTORY SET THEORY

Math/Stats 425 Introduction to Probability. 1. Uncertainty and the axioms of probability

Lecture 1 Introduction Properties of Probability Methods of Enumeration Asrat Temesgen Stockholm University

Lecture Note 1 Set and Probability Theory. MIT Spring 2006 Herman Bennett

Automata and Formal Languages

Set Theory Basic Concepts and Definitions

Basic Concepts of Set Theory, Functions and Relations

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Section 1.1 Real Numbers

Set operations and Venn Diagrams. COPYRIGHT 2006 by LAVON B. PAGE

All of mathematics can be described with sets. This becomes more and

Lecture 17 : Equivalence and Order Relations DRAFT

Course Syllabus. MATH 1350-Mathematics for Teachers I. Revision Date: 8/15/2016

Discrete Maths. Philippa Gardner. These lecture notes are based on previous notes by Iain Phillips.

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Elements of probability theory

Pantone Matching System Color Chart PMS Colors Used For Printing

Mathematical Conventions Large Print (18 point) Edition

How To Understand And Solve A Linear Programming Problem

How To Color Print

Lecture 16 : Relations and Functions DRAFT

Probabilistic Strategies: Solutions

7 Relations and Functions

Matrix Representations of Linear Transformations and Changes of Coordinates

Cartesian Products and Relations

1.4 Compound Inequalities

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

Basic Probability Concepts

Basic Concepts of Point Set Topology Notes for OU course Math 4853 Spring 2011

Math Week in Review #4. A proposition, or statement, is a declarative sentence that can be classified as either true or false, but not both.

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

Regular Languages and Finite State Machines

Mathematical Conventions. for the Quantitative Reasoning Measure of the GRE revised General Test

Chapter 8 Integers 8.1 Addition and Subtraction

Automata on Infinite Words and Trees

6.3 Conditional Probability and Independence

Statistics 100A Homework 1 Solutions

Pigeonhole Principle Solutions

Opposites are all around us. If you move forward two spaces in a board game

CS 3719 (Theory of Computation and Algorithms) Lecture 4

Incenter Circumcenter

Probability. Sample space: all the possible outcomes of a probability experiment, i.e., the population of outcomes

E3: PROBABILITY AND STATISTICS lecture notes

Access The Mathematics of Internet Search Engines

Useful Mathematical Symbols

Greatest Common Factors and Least Common Multiples with Venn Diagrams

GIS Tutorial 1. Lecture 2 Map design

Multiplication. Year 1 multiply with concrete objects, arrays and pictorial representations

Solving Rational Equations and Inequalities

Set Theory: Shading Venn Diagrams

The Set Data Model CHAPTER What This Chapter Is About

Vocabulary Words and Definitions for Algebra

Relational Databases

Basics of Dimensional Modeling

Follow links for Class Use and other Permissions. For more information send to:

Fundamentele Informatica II

Sudoku puzzles and how to solve them

Module1. x y 800.

STAT 319 Probability and Statistics For Engineers PROBABILITY. Engineering College, Hail University, Saudi Arabia

5 Systems of Equations

Book of Proof. Richard Hammack Virginia Commonwealth University

Georg Cantor ( ):

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Absolute Value Equations and Inequalities

Handout #1: Mathematical Reasoning

1. Prove that the empty set is a subset of every set.

Accentuate the Negative: Homework Examples from ACE

2. How many ways can the letters in PHOENIX be rearranged? 7! = 5,040 ways.

Method To Solve Linear, Polynomial, or Absolute Value Inequalities:

5.1 Radical Notation and Rational Exponents

Teori Himpunan. Bagian III

Section 6-5 Sample Spaces and Probability

Chapter 4 Lecture Notes

Mathematical Methods of Engineering Analysis

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

Chapter 13 & 14 - Probability PART

Lecture Notes on Topology for MAT3500/4500 following J. R. Munkres textbook. John Rognes

CPS122 Lecture: State and Activity Diagrams in UML

Lecture I FINITE AUTOMATA

So let us begin our quest to find the holy grail of real analysis.

1 if 1 x 0 1 if 0 x 1

1 Determine whether an. 2 Solve systems of linear. 3 Solve systems of linear. 4 Solve systems of linear. 5 Select the most efficient

EXAM. Exam #3. Math 1430, Spring April 21, 2001 ANSWERS

Introduction to Topology

1 VECTOR SPACES AND SUBSPACES

MA651 Topology. Lecture 6. Separation Axioms.

Students will be able to simplify and evaluate numerical and variable expressions using appropriate properties and order of operations.

Basic Set Theory. 1. Motivation. Fido Sue. Fred Aristotle Bob. LX Semantics I September 11, 2008

(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems.

CBA Fractions Student Sheet 1

Transcription:

What is a set? Sets CS 231 Dianna Xu set is a group of objects People: {lice, ob, Clara} Colors of a rainbow: {red, orange, yellow, green, blue, purple} States in the S: {labama, laska, Virginia, } ll positive numbers less than or equal to 5: {1, 2, 3, 4, 5} nrelated elements: {3, a, red, Virginia} 1 2 Notes Order does not matter We often write them in order because it is easier for humans to understand it that way {1, 2, 3, 4, 5} is equivalent to {3, 5, 2, 4, 1} Sets are notated with curly brackets No duplicate elements Note that a list is like a set, but order does matter and duplicate elements are allowed Specifying a Set List all the elements: = {1, 2, 3, 4, 5} Not always feasible for large or infinite sets Set-builder notation D = {x x is prime and x > 2} all elements x such that x is prime and x is greater than 2 E = {x Z x > 2} all integers x such that x is greater than 2 3 4 Specifying a Set set is said to contain the various members or elements that make up the set If an element a is a member of (or an element of) a set S, we use then notation a S 4 {1, 2, 3, 4} If an element is not a member of (or an element of) a set S, we use the notation a S 7 {1, 2, 3, 4} Virginia {1, 2, 3, 4} 5 The niversal Set is the universal set the set of all of elements (or the universe ) from which given any set is drawn For the set {-2, 0.4, 2}, would be the real numbers For the set {0, 1, 2}, could be the natural numbers (zero and up), the integers, the rational numbers, or the real numbers, depending on the context 6 1

Venn diagrams Sets of sets Represents sets graphically The box represents the universal set Circles represent the set(s) Consider set S, which is the set of all vowels in the g h j alphabet k l m The individual elements are usually not written in a Venn diagram n r v p s w q t x b c d f S a e i o u Sets can contain other sets S = { {1}, {2}, {3} } T = { {1}, {{2}}, {{{3}}} } V = { {{1}, {{2}}}, {{{3}}}, { {1}, {{2}}, {{{3}}}} } V has only 3 elements! Note that 1 {1} {{1}} {{{1}}} They are all different y z 7 8 The Empty Set If a set has zero elements, it is called the empty (or null) set Written using the symbol Thus, = { } s the empty set is a set, it can be a element of other sets {, 1, 2, 3, x } is a valid set The Empty Set Note that { } The first is a set of zero elements The second is a set of 1 element (that one element being the empty set) Replace by { }, and you get: { } { { } } It s easier to see that they are not equal that way 9 10 Set Equality Subsets Two sets are equal iff they have the same elements {1, 2, 3, 4, 5} = {5, 4, 3, 2, 1} {1, 2, 3, 2, 4, 3, 2, 1} = {4, 3, 2, 1} {1, 2, 3, 4, 5} {1, 2, 3, 4} 11 If all the elements of a set S are also elements of a set T, then S is a subset of T S = {2, 4, 6} and T = {1, 2, 3, 4, 5, 6, 7} This is specified by S T If S is not a subset of T, it is written as such: S T For example, {1, 2, 8} {1, 2, 3, 4, 5, 6, 7} 12 2

Subsets ny set is a subset of itself! Since all the elements of S are elements of S, S S The empty set is a subset of all sets (including itself!) ll sets are subsets of the universal set Proper Subsets If S is a subset of T, and S is not equal to T, then S is a proper subset of T denoted as S T The empty set is a proper subset of all sets other than the empty set (as it is equal to the empty set) 13 14 Proper Subsets: Venn Diagram Set Cardinality S R R S 15 The cardinality of a set is the number of elements in a set Written as Examples Let R = {1, 2, 3, 4, 5}. Then R = 5 = 0 Let S = {, {a}, {b}, {a, b}}. Then S = 4 set with one element is sometimes called a singleton set 16 Power Sets Power Sets Given the set S = {0, 1}. What are all the possible subsets of S? They are:, {0}, {1}, and {0, 1} The power set of S (written as P(S)) is the set of all the subsets of S P(S) = {, {0}, {1}, {0,1} } Note that S = 2 and P(S) = 4 Let T = {0, 1, 2}. The P(T) = {, {0}, {1}, {2}, {0,1}, {0,2}, {1,2}, {0,1,2} } Note that T = 3 and P(T) = 8 P( ) = { } Note that = 0 and P( ) = 1 If a set has n elements, then the power set will have 2 n elements 17 18 3

Tuples In 2-dimensional space, it is an ordered pair of numbers (for example, to specify a location) In n-dimensional space, it is a n-tuple of ordered numbers +y (2,3) 19 +x Cartesian Product Cartesian product is a set of all ordered 2- tuples where each part is from a given set: x = { (a,b) a and b } Given = {a, b} and = {0, 1}, what is their Cartesian product? C = x = {(a,0), (a,1), (b,0), (b,1)} 2-D Cartesian coordinates are the set of all ordered pairs ZxZ (or RxR) 3-D coordinate is an element from the Cartesian product of ZxZxZ (or RxRxR) 20 c c 21 22 of a set: c = { x x } lso written as (assuming = Z) {1, 2, 3} c = {, -2, -1, 0, 4, 5, 6, } Properties of complement sets ( c ) c = Double c = law c = law 23 24 4

nion nion nion of two sets: = { x x x } {1, 2, 3} {3, 4, 5} = {1, 2, 3, 4, 5} {New York, Washington} {3, 4} = {New York, Washington, 3, 4} {1, 2} = {1, 2} 25 26 nion Properties Properties of the union operation = Identity law = niversal ound = Idempotent law = Commutative law ( C) = ( ) C ssociative law Intersection 27 28 Intersection Intersection of two sets: = { x x x } {1, 2, 3} {3, 4, 5} = {3} {New York, Washington} {3, 4} = No elements in common {1, 2} = ny set intersection with the empty set yields the empty set 29 Intersection Properties Properties of the intersection operation = Identity law = niversal ound = Idempotent law = Commutative law ( C) = ( ) C ssociative law 30 5

Disjoint Sets Disjoint sets Disjoint sets: two sets are disjoint if their intersection is the empty set {1, 2, 3} and {3, 4, 5} are not disjoint {New York, Washington} and {3, 4} are disjoint {1, 2} and are disjoint Their intersection is the empty set and are disjoint! Their intersection is the empty set 31 32 Mutually Disjoint Sets 1, 2,, n are mutually disjoint iff no two distinct sets i and j have any elements in common, in other words, i j =. collection of nonempty sets { 1, 2, 3 } is as partition of a set iff, Difference - is the union of all i 1, 2, 3, are mutually disjoint 33 34 Difference Symmetric Difference Difference of two sets: - = { x x x } - = c ß Important! {1, 2, 3} - {3, 4, 5} = {1, 2} {New York, Washington} - {3, 4} = {New York, Washington} {1, 2} - = {1, 2} The difference of any set S with is S 35 Symmetric difference of two sets: = { x (x x ) x } = ( ) ( ) ß Important! {1, 2, 3} {3, 4, 5} = {1, 2, 4, 5} {New York, Washington} {3, 4} = {New York, Washington, 3, 4} {1, 2} = {1, 2} The symmetric difference of any set S with is S 36 6