Discrete Mathematics Lecture 2: Sets, Relations and Functions

Discrete Mathematics Lecture 2: Sets, Relations and Functions

Discrete Mathematics Lecture 2: Sets, Relations and Functions Instructor: Sourav Chakraborty Discrete Mathematics Lecture 2: Sets, Relations and Functions The objects that comprises of the set are called elements. Number of objects in a set can be finite or infinite. For Example: a set of chairs, the set of nobel laureates in the worlds, the set of integers, the set of natural numbers less than 10, the set of points in the plane R2. The number of elements in a set is called the cardinality of the set. (If S is a set the cardinality is denoted by jSj ) Definition of Sets A collection of objects in called a set. Discrete Mathematics Lecture 2: Sets, Relations and Functions For Example: a set of chairs, the set of nobel laureates in the worlds, the set of integers, the set of natural numbers less than 10, the set of points in the plane R2. The number of elements in a set is called the cardinality of the set. (If S is a set the cardinality is denoted by jSj ) Definition of Sets A collection of objects in called a set. The objects that comprises of the set are called elements. Number of objects in a set can be finite or infinite. Discrete Mathematics Lecture 2: Sets, Relations and Functions The number of elements in a set is called the cardinality of the set. (If S is a set the cardinality is denoted by jSj ) Definition of Sets A collection of objects in called a set. The objects that comprises of the set are called elements. Number of objects in a set can be finite or infinite. For Example: a set of chairs, the set of nobel laureates in the worlds, the set of integers, the set of natural numbers less than 10, the set of points in the plane R2. Discrete Mathematics Lecture 2: Sets, Relations and Functions Definition of Sets A collection of objects in called a set. The objects that comprises of the set are called elements. Number of objects in a set can be finite or infinite. For Example: a set of chairs, the set of nobel laureates in the worlds, the set of integers, the set of natural numbers less than 10, the set of points in the plane R2. The number of elements in a set is called the cardinality of the set. (If S is a set the cardinality is denoted by jSj ) Discrete Mathematics Lecture 2: Sets, Relations and Functions If S is a set and we want to denote that x is an element of the set we write as x 2 S . If S is a set and T is another set such that all the elements of T is contained in the set set S then T is called a subset of the set S and is denoted as T ⊆ S or T ⊂ S (depending on whether the containment is strict of not). Conversely, in this case S is called a super-set of T . Notations related to set Usually a set is represented by its list of elements separated by comma, between two curly brackets. For example f1; 2; 3; 4; 5g is the list of integers bigger than 0 and lesser than or equal to 5. Discrete Mathematics Lecture 2: Sets, Relations and Functions If S is a set and T is another set such that all the elements of T is contained in the set set S then T is called a subset of the set S and is denoted as T ⊆ S or T ⊂ S (depending on whether the containment is strict of not). Conversely, in this case S is called a super-set of T . Notations related to set Usually a set is represented by its list of elements separated by comma, between two curly brackets. For example f1; 2; 3; 4; 5g is the list of integers bigger than 0 and lesser than or equal to 5. If S is a set and we want to denote that x is an element of the set we write as x 2 S . Discrete Mathematics Lecture 2: Sets, Relations and Functions Notations related to set Usually a set is represented by its list of elements separated by comma, between two curly brackets. For example f1; 2; 3; 4; 5g is the list of integers bigger than 0 and lesser than or equal to 5. If S is a set and we want to denote that x is an element of the set we write as x 2 S . If S is a set and T is another set such that all the elements of T is contained in the set set S then T is called a subset of the set S and is denoted as T ⊆ S or T ⊂ S (depending on whether the containment is strict of not). Conversely, in this case S is called a super-set of T . Discrete Mathematics Lecture 2: Sets, Relations and Functions Kinds of Sets Usually by a set we mean a collection of elements where the ordering of the elements in the set does not matter and no element is repeated. For example: the set f3; 1; 2; 2; 4; 4g is actually thought of as f1; 2; 3; 4g. But in some context we may have to allow repetitions. We call them multisets . Thus in the multiset f1; 1; 2g is different from f1; 2g is different from f1; 1; 1; 2g. Sometimes we care about the ordering of the elements in the set. We call them ordered sets . They are sometime referred as lists or strings or vectors. For example: the ordered set f1; 2; 3g is different from f2; 1; 3g. We can also have ordered multi-sets. Discrete Mathematics Lecture 2: Sets, Relations and Functions Intersection, \ A \ B is the set of all elements that are in A AND B. Complement, Ac or A Ac is the set of elements NOT in A. Cartesian Product. Operations on Sets Union, [. A [ B is the set of all elements that are in A OR B. Discrete Mathematics Lecture 2: Sets, Relations and Functions Complement, Ac or A Ac is the set of elements NOT in A. Cartesian Product. Operations on Sets Union, [. A [ B is the set of all elements that are in A OR B. Intersection, \ A \ B is the set of all elements that are in A AND B. Discrete Mathematics Lecture 2: Sets, Relations and Functions Cartesian Product. Operations on Sets Union, [. A [ B is the set of all elements that are in A OR B. Intersection, \ A \ B is the set of all elements that are in A AND B. Complement, Ac or A Ac is the set of elements NOT in A. Discrete Mathematics Lecture 2: Sets, Relations and Functions Operations on Sets Union, [. A [ B is the set of all elements that are in A OR B. Intersection, \ A \ B is the set of all elements that are in A AND B. Complement, Ac or A Ac is the set of elements NOT in A. Cartesian Product. Discrete Mathematics Lecture 2: Sets, Relations and Functions Union, Intersection and Complement Discrete Mathematics Lecture 2: Sets, Relations and Functions Rules of Set Theory Let p, q and r be sets. 1 Commutative law: (p [ q) = (q [ p) and (p \ q) = (q \ p) 2 Associative law: (p [ (q [ r)) = ((p [ q) [ r) and (p \ (q \ r)) = ((p \ q) \ r) 3 Distributive law: (p [ (q \ r)) = (p [ q) \ (p [ r) and (p \ (q [ r)) = (p \ q) [ (p \ r) 4 De Morgan's Law: (p [ q)c = (pc \ qc) and (p \ q)c = (pc [ qc) Discrete Mathematics Lecture 2: Sets, Relations and Functions Let A be a set. A × A is a the set of ordered pairs (x; y) where x; y 2 A. Similarly, A × A × · · · × A (n times) (also denoted as An) is the set of all ordered subsets (with repetitions) of A of size n For example: f0; 1gn the set of all \strings" of 0 and 1 of length n. Cartesian Product Discrete Mathematics Lecture 2: Sets, Relations and Functions Similarly, A × A × · · · × A (n times) (also denoted as An) is the set of all ordered subsets (with repetitions) of A of size n For example: f0; 1gn the set of all \strings" of 0 and 1 of length n. Cartesian Product Let A be a set. A × A is a the set of ordered pairs (x; y) where x; y 2 A. Discrete Mathematics Lecture 2: Sets, Relations and Functions For example: f0; 1gn the set of all \strings" of 0 and 1 of length n. Cartesian Product Let A be a set. A × A is a the set of ordered pairs (x; y) where x; y 2 A. Similarly, A × A × · · · × A (n times) (also denoted as An) is the set of all ordered subsets (with repetitions) of A of size n Discrete Mathematics Lecture 2: Sets, Relations and Functions Cartesian Product Let A be a set. A × A is a the set of ordered pairs (x; y) where x; y 2 A. Similarly, A × A × · · · × A (n times) (also denoted as An) is the set of all ordered subsets (with repetitions) of A of size n For example: f0; 1gn the set of all \strings" of 0 and 1 of length n. Discrete Mathematics Lecture 2: Sets, Relations and Functions If jAc \ Bj = 10 and jA \ Bcj = 8 and jA \ Bj = 5 then how many elements are there is A [ B? How many elements are there in the set f0; 1gn? Some problems on set theory If jAj = 5 and jBj = 8 and jA [ Bj = 11 what is the size of A \ B? Discrete Mathematics Lecture 2: Sets, Relations and Functions How many elements are there in the set f0; 1gn? Some problems on set theory If jAj = 5 and jBj = 8 and jA [ Bj = 11 what is the size of A \ B? If jAc \ Bj = 10 and jA \ Bcj = 8 and jA \ Bj = 5 then how many elements are there is A [ B? Discrete Mathematics Lecture 2: Sets, Relations and Functions Some problems on set theory If jAj = 5 and jBj = 8 and jA [ Bj = 11 what is the size of A \ B? If jAc \ Bj = 10 and jA \ Bcj = 8 and jA \ Bj = 5 then how many elements are there is A [ B? How many elements are there in the set f0; 1gn? Discrete Mathematics Lecture 2: Sets, Relations and Functions Some problems on set theory If jAj = 5 and jBj = 8 and jA [ Bj = 11 what is the size of A \ B? If jAc \ Bj = 10 and jA \ Bcj = 8 and jA \ Bj = 5 then how many elements are there is A [ B? How many elements are there in the set f0; 1gn? Discrete Mathematics Lecture 2: Sets, Relations and Functions If R is a relation on the set S (that is, R ⊆ S × S) and (x; y) 2 R we say \x is related to y".

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    44 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us