Similar documents
CSC Discrete Math I, Spring Sets

This Lecture. We will first introduce some basic set theory before we do counting. Basic Definitions. Operations on Sets.

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

1.1 - Introduction to Sets

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

9.5 Equivalence Relations

1.2 Venn Diagrams and Partitions

2 Review of Set Theory

SETS. Sets are of two sorts: finite infinite A system of sets is a set, whose elements are again sets.

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16

2.1 Sets 2.2 Set Operations

Discrete Mathematics Lecture 4. Harper Langston New York University

Chapter 3. Set Theory. 3.1 What is a Set?

Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31

Set and Set Operations

c) the set of students at your school who either are sophomores or are taking discrete mathematics

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

11 Sets II Operations

CS100: DISCRETE STRUCTURES

CSE 215: Foundations of Computer Science Recitation Exercises Set #9 Stony Brook University. Name: ID#: Section #: Score: / 4

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Fall

SET DEFINITION 1 elements members

2.1 Symbols and Terminology

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

What Is A Relation? Example. is a relation from A to B.

What is Set? Set Theory. Notation. Venn Diagram

Sets. {1, 2, 3, Calvin}.

Discrete Mathematics

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example

Logic and Discrete Mathematics. Section 2.5 Equivalence relations and partitions

Relational Database: The Relational Data Model; Operations on Database Relations

Topology notes. Basic Definitions and Properties.

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say

Binary Relations McGraw-Hill Education

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

Introduction to Sets and Logic (MATH 1190)

Today s Topics. What is a set?

Sets. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

Sets and set operations

Introduction. Sets and the Real Number System

Slides for Faculty Oxford University Press All rights reserved.

1 Introduction CHAPTER ONE: SETS

CSC 501 Semantics of Programming Languages

Figure 1.1: This is an illustration of a generic set and its elements.

LECTURE NOTES ON SETS

Outline. CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 1 Sets. Sets. Enumerating the elements of a set

The word zero has had a long and interesting history so far. The word comes

CSE 20 DISCRETE MATH. Fall

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

Figure 1: From Left to Right, General Venn Diagrams for One, Two, and Three Sets

Algorithm. Algorithm Analysis. Algorithm. Algorithm. Analyzing Sorting Algorithms (Insertion Sort) Analyzing Algorithms 8/31/2017

DISCRETE MATHEMATICS

Summary of Course Coverage

Math Week in Review #5

CSE 20 DISCRETE MATH. Winter

Chapter 11. Topological Spaces: General Properties

Natural Numbers. We will use natural numbers to illustrate several ideas that will apply to Haskell data types in general.

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS

Power Set of a set and Relations

Math 395: Topology. Bret Benesh (College of Saint Benedict/Saint John s University)

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

LECTURE 8: SETS. Software Engineering Mike Wooldridge

10/11/2018. Partial Orderings. Partial Orderings. Partial Orderings. Partial Orderings. Partial Orderings. Partial Orderings

Lecture : Topological Space

Algebra of Sets. Aditya Ghosh. April 6, 2018 It is recommended that while reading it, sit with a pen and a paper.

Sets. Sets. Subset, universe. Specifying sets, membership. Examples: Specifying a set using a predicate. Examples

Sets and set operations. Lecture 5 ICOM 4075

TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3.

CS 1200 Discrete Math Math Preliminaries. A.R. Hurson 323 CS Building, Missouri S&T

Computer Science and Mathematics. Part I: Fundamental Mathematical Concepts Winfried Kurth

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

Sets. Margaret M. Fleck. 15 September 2010

Antisymmetric Relations. Definition A relation R on A is said to be antisymmetric

The Intersection of Two Sets

Math 110 FOUNDATIONS OF THE REAL NUMBER SYSTEM FOR ELEMENTARY AND MIDDLE SCHOOL TEACHERS

T. Background material: Topology

The Further Mathematics Support Programme

1. Find f(1), f(2), f(3), and f(4) if f(n) is defined recursively by f(0) = 1 and for n = 0, 1, 2,

1. Represent each of these relations on {1, 2, 3} with a matrix (with the elements of this set listed in increasing order).

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan

COMP Logic for Computer Scientists. Lecture 17

1 Sets, Fields, and Events

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

THEORY OF COMPUTATION

CS243, Logic and Computation Sets, functions, and languages

SEVENTH EDITION and EXPANDED SEVENTH EDITION

GEOG 5113 Special Topics in GIScience. Why is Classical set theory restricted? Contradiction & Excluded Middle. Fuzzy Set Theory in GIScience

CSE20: Discrete Mathematics

Mathematics for Computer Science Exercises from Week 4

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

Chapter 2: Sets. Diana Pell. In the roster method: elements are listed between braces, with commas between the elements

Open and Closed Sets

Domination, Independence and Other Numbers Associated With the Intersection Graph of a Set of Half-planes

CS314: FORMAL LANGUAGES AND AUTOMATA THEORY L. NADA ALZABEN. Lecture 1: Introduction

Transcription:

1 of 7 7/15/2009 3:40 PM Virtual Laboratories > 1. Foundations > 1 2 3 4 5 6 7 8 9 1. Sets Poincaré's quote, on the title page of this chapter could not be more wrong (what was he thinking?). Set theory is the foundation of probability and statistics, as it is for almost every branch of mathematics. Sets and subsets First, a set is simply a collection of objects; the objects are referred to as elements of the set. The statement that s is an element of set S is written s S. By definition, a set is completely determined by its elements; thus sets A and B are equal if they have the same elements: A = B if and only if s A s B If A and B are sets then A is a subset of B if every element of A is also an element of B: A B if and only if (s A) (s B) Concepts in set theory are often illustrated with small, schematic sketches known as Venn diagrams, named for John Venn. The Venn diagram in the picture below illustrates the subset relation. M embership is a primitive, undefined concept in naive set theory. M oreover, sets are usually constructed by either listing the elements of the set or by giving a condition that must be satisfied by the elements of the set. However, the following construction, known as Russell's paradox after the mathematician and philosopher Bertrand Russell, shows that we cannot be too cavalier in the construction of sets. 1. Let R = {A : A is a set and A A}. Show that R R if and only if R R Usually, the sets under discussion in a particular context are all subsets of a specified set S, often called a universal set. The use of a universal set prevents the type of problem that arises in Russell's paradox. That is, if S is a given set and p(x) is a predicate on S (that is, a valid mathematical statement that is either true or false for each x S, then {x S : p(x)} is a valid subset of S. In contrast to a universal set, the empty set, denoted, is the set with no elements. 2. Show that A for every set A.

2 of 7 7/15/2009 3:40 PM 3. Suppose that A, B and C are subsets of a set S. Prove the following results, which show that the subset relation is a partial order on the collection of subsets of S. A A (the reflexive property). If A B and B A then A = B (the anti-symmetric property). If A B and B C then A C (the transitive property). If S is a set, then the set of all subsets of S is known as the power set of S and is denoted P(S). Special Sets The following special sets are used throughout the project, and often play the role of universal sets. N: the set of natural numbers (the nonnegative integers) N + : the set of positive integers Z: the set of integers Q: the set of rational numbers R: the set of real numbers C: the set of complex numbers Set Operations We are now ready to review the basic operations of set theory. For the following definitions, suppose that A and B are subsets of a universal set, which we will denote by S. The union of A and B is the set obtained by combining the elements of A and B. A B = {s S : (s A or s B)} The intersection of A and B is the set of elements common to both A and B: A B = {s S : (s A) and (s B)} If the intersection of sets A and B is empty, then A and B are said to be disjoint: A B = The set difference of B and A is the set of elements that are in B but not in A: B A = {s S : (s B) and (s A)} The complement of A is the set of elements that are not in A: A c = {s S : s A}

3 of 7 7/15/2009 3:40 PM Note that union, intersection, and difference are binary set operations, while complement is a unary set operation. 4. In the Venn diagram applet, select each of the following and note the shaded area in the diagram. d. e. f. A B A c B c A B A B Basic Rules In the following problems, A, B, and C are subsets of a universal set S. 5. Show that A B A A B 6. Prove the identity laws: A = A A S = A 7. Prove the idempotent laws: A A = A A A = A 8. Prove the complement laws: A A c = S A A c = 9. Prove the double complement law: A c c = A 10. Prove the commutative laws: A B = B A A B = B A 11. Prove the associative laws:

4 of 7 7/15/2009 3:40 PM A (B C) = (A B) C A (B C) = (A B) C Thus, we can write A B C and A B C without ambiguity. 12. Prove the distributive laws: A (B C) = (A B) (A C) A (B C) = (A B) (A C) 13. Prove DeMorgan's laws (named after Agustus DeM organ): (A B) c = A c B c (A B) c = A c B c. 14. Prove that the following statements are equivalent: d. e. A B B c A c A B = B A B = A A B = 15. Prove the following results. The first part shows that set difference can be expressed in terms of complement and intersection. The next three parts show that all of the other set operations (complement, union, and intersection) can be expressed in terms of difference. d. B A = B A c A c = S A A B = A (A B) A B = S ((S A) ((S A) (S B))) 16. Show that (A B) (A B) = (A B) (B A). This set is called the symmetric difference of A and B, and is sometimes denoted AΔB. The elements of this belong to one but not both of the given sets. 17. Show that the elements of (A B) (A B) c belong to both the given sets or to neither of the sets. 18. Prove that there are 16 different (in general) sets that can be constructed from two given events A and B. 19. In the Venn diagram applet, observe the diagram of each of the 16 sets that can be constructed from A

5 of 7 7/15/2009 3:40 PM and B using the set operations. Product sets Product sets are sets of sequences. The defining property of a sequence, of course, is that order as well as membership is important. Let us start with ordered pairs. In this case, the defining property is that (a, b) = (c, d) if and only if a = c and b = d. Interestingly, the structure of an ordered pair can be defined just using set theory. The construction in the exercise below is due to Kazamierz Kuratowski 20. Define (a, b) = {{a}, {a, b}} Show that this definition captures the defining property of an ordered pair given above. M ore generally, two ordered sequences of the same size (finite or infinite) are the same if and only if their corresponding coordinates agree: (s 1, s 2,..., s n ) = (t 1, t 2,..., t n ) if and only if s i = t i for i {1, 2,..., n} (s 1, s 2,...) = (t 1, t 2,...) if and only if s i = t i for i {1, 2,...} Suppose now that we have a sequence of sets (S 1, S 2,..., S n ). The Cartesian product of the sets (named for René Descartes) is defined as follows: S 1 S 2 S n = {(s 1, s 2,..., s n ) : s i S i for all i {1, 2,..., n}} If S i = S for each i, then the product set can be written compactly as S n. In particular, recall that R denotes the set of real numbers so that R n is n-dimensional Euclidean space, named after Euclid, of course. Finally, suppose that we have an infinite sequence of sets (S 1, S 2,...). The Cartesian product of the sets is defined by S 1 S 2 = {(s 1, s 2,...) : s i S i for all i {1, 2,...}} Rules for Product S ets We will now see how the set operations relate to the Cartesian product operation. Suppose that S and T are sets and that A S, B S and C T, D T. The sets in the exercises below are subsets of S T 21. The most important rules that relate Cartesian product with union, intersection, and difference are the distributive rules. Show that A (C D) = (A C) (A D) (A B) C = (A C) (B C) A (C D) = (A C) (A D)

6 of 7 7/15/2009 3:40 PM d. (A B) C = (A C) (B C) e. A (C D) = (A C) (A D) f. (A B) C = (A C) (B C) 22. Show that (A B) (C D) = (A C) (A D) (B C) (B D) (A C) (B D) (A B) (C D) In general, the product of unions is larger than the corresponding union of products. 23. On the other hand, the product of intersections is the same as the corresponding intersection of products. Show that (A C) (B D) = (A B) (C D) 24. In general, the product of differences is smaller than the corresponding difference of products. Show that (A B) (C D) = ((A C) (A D)) ((B C) (B D)) (A B) (C D) (A C) (B D) General Operations The operations of union and intersection can easily be extended to a finite or even an infinite collection of sets. Definitions Suppose that A is a nonempty collection of subsets of a universal set S. In some cases, the subsets in A may be naturally indexed by a nonempty index set I, so that A = {A i : i I}. (In a technical sense, any collection of subsets can be indexed--by itself!) The union of the collection of sets A is the set obtained by combining the elements of the sets in A: A = {s S : s A for some A A} If A = {A i : i I}, so that the collection of sets is indexed, then we use the more natural notation: i I A i = {s S : s A i for some i I} The intersection of the collection of sets A is the set of elements common to all of the sets in A: A = {s S : s A for all A A}

7 of 7 7/15/2009 3:40 PM If A = {A i : i I}, so that the collection of sets is indexed, then we use the more natural notation: i I A i = {s S : s A i for all i I} The collection of sets A is pairwise disjoint if the intersection of any two sets in the collection is empty: A B = for every A A and B A with A B The collection of sets A is said to partition a set B if the collection A is pairwise disjoint and A = B. Partitions are intimately related to equivalence relations. Basic Rules In the following problems, A = {A i : i I} is a collection of subsets of a universal set S, indexed by a nonempty set I, and B is a subset of S. 25. Prove the general distributive laws ( i I A i) B = i I A i B ( i I A i) B = i I A i B Then restate the laws in the notation where the collection A is not indexed. 26. Prove the general De Morgan's laws: c ( i I A i) = c i I A i c ( i I A i) = c i I A i Restate the laws in the notation where the collection A is not indexed. 27. Suppose that the collection A partitions S. Show that for any subset B, the collection {A B : A A} partitions B. Virtual Laboratories > 1. Foundations > 1 2 3 4 5 6 7 8 9 Contents Applets Data Sets Biographies External Resources Key words Feedback