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

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

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

CSC Discrete Math I, Spring Sets

Discrete Mathematics Lecture 4. Harper Langston New York University

1.1 - Introduction to Sets

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

9.5 Equivalence Relations

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


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

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

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

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

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

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

11 Sets II Operations

2 Review of Set Theory

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

2.1 Sets 2.2 Set Operations

COUNTING AND PROBABILITY

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

Algebra of Sets (Mathematics & Logic A)

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

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

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

Summary of Course Coverage

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

MATH 271 Summer 2016 Assignment 4 solutions

Topology Homework 3. Section Section 3.3. Samuel Otten

Section 6.3: Further Rules for Counting Sets

Final Test in MAT 410: Introduction to Topology Answers to the Test Questions

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

Discrete Mathematics

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

Homework Set #2 Math 440 Topology Topology by J. Munkres

UNIT-II NUMBER THEORY

TA: Jade Cheng ICS 241 Recitation Lecture Notes #12 November 13, 2009

2.1 Symbols and Terminology

Chapter 2 The Operation of Fuzzy Set

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

CS100: DISCRETE STRUCTURES

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

Logic and Proof course Solutions to exercises from chapter 6

T. Background material: Topology

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

DISCRETE MATHEMATICS

Notes for Recitation 8

Lecture 15: The subspace topology, Closed sets

Let A(x) be x is an element of A, and B(x) be x is an element of B.

Open and Closed Sets

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

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

1.2 Venn Diagrams and Partitions

Mathematics for Computer Science Exercises from Week 4

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

1 Sets, Fields, and Events

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

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Sections p.

Sets. Margaret M. Fleck. 15 September 2010

r=1 The Binomial Theorem. 4 MA095/98G Revision

Sets and set operations

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

Sets and set operations. Lecture 5 ICOM 4075

Intersection of sets *

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.

THEORY OF COMPUTATION

Slides for Faculty Oxford University Press All rights reserved.

Lecture-12: Closed Sets

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

What is Set? Set Theory. Notation. Venn Diagram

K 4 C 5. Figure 4.5: Some well known family of graphs

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

The clique number of a random graph in (,1 2) Let ( ) # -subgraphs in = 2 =: ( ) We will be interested in s.t. ( )~1. To gain some intuition note ( )

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

3.1 Constructions with sets

Graph theory - solutions to problem set 1

Partitioning Complete Multipartite Graphs by Monochromatic Trees

2.3 Algebraic properties of set operations

Sets. X. Zhang Dept. of Computer & Information Sciences Fordham University

1. Chapter 1, # 1: Prove that for all sets A, B, C, the formula

CSE 20 DISCRETE MATH. Fall

The clique number of a random graph in (,1 2) Let ( ) # -subgraphs in = 2 =: ( ) 2 ( ) ( )

Functions. How is this definition written in symbolic logic notation?

(Pre-)Algebras for Linguistics

Interpretations and Models. Chapter Axiomatic Systems and Incidence Geometry

Boolean Algebra. P1. The OR operation is closed for all x, y B x + y B

Mathematically Rigorous Software Design Review of mathematical prerequisites

FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC. Angel Garrido

The Intersection of Two Sets

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

RATIONAL CURVES ON SMOOTH CUBIC HYPERSURFACES. Contents 1. Introduction 1 2. The proof of Theorem References 9

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

CSE 20 DISCRETE MATH. Winter

BOOLEAN ALGEBRA AND CIRCUITS

CS3102 Theory of Computation Solutions to Problem Set 1, Spring 2012 Department of Computer Science, University of Virginia

4&5 Binary Operations and Relations. The Integers. (part I)

Shannon capacity and related problems in Information Theory and Ramsey Theory

4 Mathematical Data Types

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Math236 Discrete Maths with Applications

Transcription:

CSE 215: Foundations of Computer Science Recitation Exercises Set #9 Stony Brook University Name: ID#: Section #: Score: / 4 Unit 14: Set Theory: Definitions and Properties 1. Let C = {n Z n = 6r 5 for some integer r} and D = {m Z m = 3s + 1 for some integer s}. Prove or disprove each of the following statements. a. C D This is true. We will show that every element of C is in D. Suppose n is any element of C. Then n = 6r 5 for some integer r. Let s = 2r 2. Then s is an integer (because products and differences of integers are integers) and 3s + 1 = 3(2r 2) + 1 = 6r 6 + 1 = 6r 5 which equals n. Thus n satisfies the condition for being in D. Hence, every element in C is in D. b. D C This is false, since there are elements of D that are not in C. For example, 4 is in D because 4 = 3 1 + 1. But 4 is not in C because if it were, then 4 = 6r 5, for some integer r, which would imply that 9 = 6r, or, equivalently,that r = 3, which contradicts the fact that r is an integer. 2 2. Let D i = {x R i x i} = [ i, i] for all non-negative integers i. a. 4 i=0 D i =? 4 i=0 D i = {0} [ 1, 1] [ 2, 2] [ 3, 3] [ 4, 4] = [ 4, 4] b. 4 i=0 D i =? 4 i=0 D i = {0} [ 1, 1] [ 2, 2] [ 3, 3] [ 4, 4] = {0} c. Are D 0, D 1, D 2,... mutually disjoint? Explain. D 0, D 1, D 2,... are not mutually disjoint, each D k D k+1. CSE 215 R01/R02/R06 Page 1 of 9

3. Let the universal set be the set R of all real numbers and let A = {x R 0 < x 2}, B = {x R 1 x < 4} and C = {x R 3 x < 9}. Find each of the following: a. A B b. A c A B = {x R 0 < x < 4} A c = {x R x 0 or x > 2} c. A C A C = d. A c B c A c B c {x R x 0 or x 4} e. (A B) c (A B) c {x R x < 1 or x > 2} CSE 215 R01/R02/R06 Page 2 of 9

4. Use an element argument to prove the following statement. Assume all sets are subsets of a universal set U. For all sets A and B, (A B) (A B c ) = A. Proof that (A B) (A B c ) A: Suppose x (A B) (A Bc). [We must show that x A.] By definition of union, x A B or x (A B c ). Case 1: (x A B): In this case x is in A and x is in B, and so, in particular, x A. Case 2: (x A B c ): In this case x is in A and x is not in B, and so, in particular, x A. Thus, in either case, x A [as was to be shown]. [Thus (A B) (A B c ) A by definition of subset.] Proof that A (A B) (A B c ): Suppose x A. [We must show that x (A B) (A B c ).] Either x B or x B. Case 1: (x B): In this case we know that x is in A and we are also assuming that x is in B. Hence, by definition of intersection, x A B. Case 2: (x A B c ): In this case we know that x is in A and we are also assuming that x is in B c. Hence, by definition of intersection, x A B c. Thus, x A B or x A B c, and so, by definition of union, x (A B) (A B c ) [as was to be shown. Thus A (A B) (A B c ) by definition of subset.] Conclusion: Since both set containments have been proved, it follows by definition of set equality that (A B) (A B c ) = A. CSE 215 R01/R02/R06 Page 3 of 9

5. Use an element argument to prove the following statement. Assume all sets are subsets of a universal set U. For all sets A, B and C, A (B C) = (A B) (A C). Proof: Suppose A, B, and C are arbitrarily chosen sets. A (B C) (A B) (A C): Suppose (x, y) A (B C). [We must show that (x, y) (A B) (A C).] Then x A and y B C. By definition of union, this means that y B or y C. Case 1 (y B): Then, since x A, (x, y) A B by definition of Cartesian product. Hence (x, y) (A B) (A C) by the inclusion in union property. Case 2 (y C): Then, since x A, (x, y) A C by definition of Cartesian product. Hence (x, y) (A B) (A C) by the inclusion in union property. Hence, in either case, (x, y) (A B) (A C) [as was to be shown]. Thus A (B C) (A B) (A C) by definition of subset. (A B) (A C) A (B C): Suppose (x, y) (A B) (A C). Then (x, y) A B or (x, y) A C. Case 1 ((x, y) A B): In this case, x A and y B. By definition of union, since y B, then y B C. Hence x A and y B C, and so, by definition of Cartesian product, (x, y) A (B C). Case 2 ((x, y) A C): In this case, x A and y C. By definition of union, since y C, then y B C. Hence x A and y B C, and so, by definition of Cartesian product, (x, y) A (B C). Thus, in either case, (x, y) A (B C). [Hence, by def- inition of subset, (A B) (A C) A (B C).] [Since both subset relations have been proved, we can con- clude that A (B C) = (A B) (A C) by definition of set equality.] CSE 215 R01/R02/R06 Page 4 of 9

6. Illustrate one of the distributive laws by shading in the region corresponding to A (B C) on one copy of the diagram and (A B) (A C) on the other. 7. Use the element method for proving a set equals the empty set to prove the following statement. Assume that all sets are subsets of a universal set U. For all sets A and B, (A B) (A B c ) =. Proof by contradiction: Suppose not. That is, suppose there exist sets A and B such that (A B) (A B c ) 6=. Then there is an element x in (A B) (A B c ). By definition of intersection, x (A B) and x (A B c ). Applying the definition of intersection again, we have that since x (A B), x A and x B, and since x (A B c ), x A, and x 6 B. Thus, in particular, x B and x 6 B, which is a contradiction. It follows that the supposition is false, and so (A B) (A B c ) =. CSE 215 R01/R02/R06 Page 5 of 9

8. Use the element method for proving a set equals the empty set to prove the following statement. Assume that all sets are subsets of a universal set U. For all sets A, B and C, if C B A, then A C =. Proof by contradiction: Let A, B, and C be any sets such that C B A. Suppose A C. Then there is an element x such that x A C. By definition of intersection, x A and x C. Since C B A, then x B and x A. So x A and x A, which is a contradiction. Hence the supposition is false, and thus A C = CSE 215 R01/R02/R06 Page 6 of 9

Unit 15: Set Theory: Disproofs and Algebraic Proofs 9. Given the statement below, prove that the statement if it is true or find a counterexample if the statement is false. Assume all sets are subsets of a universal set U. For all sets A, B, and C, if A C and B C then A B C. True. Proof: Suppose A, B, and C are sets and A C and B C. Let x A B. By definition of union, x A or x B. But if x A then x C (because A C), and if x B then x C (because B C). Hence, in either case, x C. [So, by definition of subset, A B C.] 10. Given the statement below, prove that the statement if it is true or find a counterexample if the statement is false. Assume all sets are subsets of a universal set U. For all sets A and B, if A B then P(A) P(B). True. Proof: Suppose A and B are any sets with A B. [We must show that P(A) P(B).] So suppose X P(A). Then X A by definition of power set. But because A B, we also have that X B by the transitive property for subsets, and thus, by definition of power set, X P(B). This proves that for all X, if X P(A) then X P(B), and so P(A) P(B) [as was to be shown]. CSE 215 R01/R02/R06 Page 7 of 9

11. Given the statement below, prove that the statement if it is true or find a counterexample if the statement is false. Assume all sets are subsets of a universal set U. For all sets A and B, P(A B) P(A) P(B). False. Counterexample: For any sets A and B, P(A) P(B) contains only sets that are subsets of either A or B, whereas the sets in P(A B) can contain elements of both A and B. Thus, if at least one of A or B contains elements that are not in the other set, P(A) P(B) and P(A B) will not be equal. For instance, let A = {1} and B = {2}. Then {1, 2} P(A B) but {1, 2} / P(A) P(B). 12. Construct an algebraic proof for the following statement, citing a relevant property for every step. For all sets A, B, and C, (A B) C = (A C) (B C). Proof: Let sets A, B, and C be given. Then (A B) C = C (A B) by the commutative law for = (C A) (C B) by the distributive law = (A C) (B C) by the commutative law for. CSE 215 R01/R02/R06 Page 8 of 9

13. Construct an algebraic proof for the following statement, citing a relevant property for every step. For all sets A and B, ((A C B C ) A) C = A. Proof: Let A and B, be any sets. Then ((A C B C ) A) C = ((A C B C ) A C ) C by the set difference law = (A C B C ) C (A C ) C by De Morgan s law = ((A C ) C (B C ) C ) (A C ) C by De Morgan s law = (A B) A by the double complement law = A (A B) by the commutative law for = A by the absorption law CSE 215 R01/R02/R06 Page 9 of 9