Math Chapter 6 Part II. POWER SETS In mathematics, given a set S, the power set of S, written P(S) or 2 n(S), is the set of all subsets of S. Remember.

Slides:



Advertisements
Similar presentations
Lecture 1 RMIT University, Taylor's University Learning Objectives
Advertisements

Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
The Engineering Design of Systems: Models and Methods
Copyright © Cengage Learning. All rights reserved. CHAPTER 1 SPEAKING MATHEMATICALLY SPEAKING MATHEMATICALLY.
Discrete Structures Chapter 5 Relations and Functions Nurul Amelina Nasharuddin Multimedia Department.
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics Lecture#11.
Partially Ordered Sets (POSets)
Relations Chapter 9.
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
Logics for Data and Knowledge Representation Introduction to Algebra Chiara Ghidini, Luciano Serafini, Fausto Giunchiglia and Vincenzo Maltese.
Math 3121 Abstract Algebra I Section 0: Sets. The axiomatic approach to Mathematics The notion of definition - from the text: "It is impossible to define.
Foundations of Discrete Mathematics Chapter 3 By Dr. Dalia M. Gil, Ph.D.
Chapter 4 Relations and Digraphs
Chapter 3 Functions Functions provide a means of expressing relationships between variables, which can be numbers or non-numerical objects.
Ordered Sets. Relations. Equivalence Relations 1.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
An ordered n-tuple is a set of n objects with an order associated with them. If n objects are represented by x 1, x 2,..., x n, then we write the ordered.
Discrete Math for CS Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?
Relations Relations between sets are like functions, but with a more general definition (given later). presentations: a set, a binary matrix, a graph…
Functions Reading: Chapter 6 (94 – 107) from the text book 1.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Discrete Mathematics Relation.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
11 DISCRETE STRUCTURES DISCRETE STRUCTURES UNIT 5 SSK3003 DR. ALI MAMAT 1.
Relations and their Properties
Copyright © Cengage Learning. All rights reserved.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Sets and Subsets Set A set is a collection of well-defined objects (elements/members). The elements of the set are said to belong to (or be contained in)
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Basic Structures: Sets, Functions, Sequences, and Sums.
Set identities.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
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 II Discrete Structures Relations and Functions SE (Comp.Engg.)
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Week 8 - Monday.  What did we talk about last time?  Properties of functions  One-to-one  Onto  Inverses  Cardinality.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Discrete Mathematics Lecture # 17 Function. Relations and Functions  A function F from a set X to a set Y is a relation from X to Y that satisfies the.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Discrete Mathematics Lecture # 13 Applications of Venn Diagram.
Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation is a relation on.
The Relation Induced by a Partition
Chapter 5 Relations and Operations
The Language of Sets If S is a set, then
Relations and Functions
Introduction to Relations
Set, Combinatorics, Probability & Number Theory
Applied Discrete Mathematics Week 10: Relations
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
Relation and function.
CS201: Data Structures and Discrete Mathematics I
Chapter 2 Sets and Functions.
Applied Discrete Mathematics Week 6: Relations/Digraphs
Mathematical Background 1
Mathematical Background 1
Copyright © Cengage Learning. All rights reserved.
Equivalence Relations
Equivalence Relations
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Foundations of Discrete Mathematics
Presentation transcript:

Math Chapter 6 Part II

POWER SETS In mathematics, given a set S, the power set of S, written P(S) or 2 n(S), is the set of all subsets of S. Remember the definition of a subset is as follows: Given sets S and T, then T is defined to be a subset of S if every element of T is also an element of S.

POWER SETS If S is the set {a, b, c} then {a,c} is a subset of S. There are other subsets of S; the complete list is as follows: –{} (the empty set or null set) –{a} –{b} –{c} –{a, b} –{a, c} –{b, c} –{a, b, c} or S So the power set of S, written P(S), is the set containing all the subsets above. Written out this would be the set: P(S) = { {}, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c} }

POWER SETS The power set of S, written P(S) or 2 n(S), is the set of all subsets of S. 2 n(S) : given that a set S is finite then P(S) contains 2 raised to the number of elements is set S –S={1,2,3} –2 3 = 8 subsets in the power set

PARTITIONS A partition of set S is a subdivision of S into non-overlapping, nonempty subsets. A partition of S is a collection of nonempty subsets such that: –Each element in S belongs to one of the subsets (all elements must be accounted for) –The subsets must be disjointed (no duplications of elements in the subsets)

PARTITIONS S = {1,3,5,7,9} Valid partitions: –[{1,3,5} {7,9}] –[{1,5,9} {3, 7}] –All elements are accounted for and there are no duplications Invalid partitions: –[{1,5} {7, 9}] (3 is missing) –[{1,5,9} {1, 3, 7}] (duplication)

ORDERED PAIRS An ordered pair is a collection of two objects such that one can be distinguished as the first element and the other as the second element. An ordered pair with first element a and second element b is usually written as (a, b). Two such ordered pairs (a1, b1) and (a2, b2) are equal if and only if a1 = a2 and b1 = b2.

ORDERED PAIRS The set of all ordered pairs whose first element is in some set X and second element in some set Y is called the Cartesian product of said sets. Given two sets X and Y, the Cartesian product (or direct product) of the two sets, written as X × Y (read as X cross Y) is the set of all ordered pairs with the first element of each pair selected from X and the second element selected from Y. X × Y = { (x,y) | x in X and y in Y }

ORDERED PAIRS For example: set X is the 13-element set {A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2} set Y is the 4-element set {spades, hearts, diamonds, clubs} the Cartesian product of those two sets is: – the 52-element set { (A, spades), (K, spades),...,(2, spades), (A, hearts),..., (3, clubs), (2, clubs) }.

RELATIONS A binary relation is a mathematical concept to do with "relations", such as "is greater than" and "is equal to" in arithmetic, or "is an element of" in set theory.mathematicalarithmetic set theory Formally, a binary relation over a set X and a set Y is a ordered triple R=(X, Y, G(R)) where G(R), called the graph of the relation R, is a subset of X × Y. If (x,y) ∈ G(R) then we say that x is R- related to y and write xRy or R(x,y).setsubset

RELATIONS Example: Suppose there are four objects: {ball, car, doll, gun} and four persons: {John, Mary, Sue, Venus}. Suppose that John owns the ball, Mary owns the doll, and Venus owns the car. No one owns the gun and Sue owns nothing. Then the binary relation "is owned by" is given as R=({ball, car, doll, gun}, {John, Mary, Sue, Venus}, {(ball,John), (doll,Mary), (car,Venus)}). The pair (ball,John), denoted by ballRJohn means ball is owned by John.

RELATIONS It may also be thought of as a binary function that takes as arguments an element x of X and an element y of Y and evaluates to true or false (indicating whether the ordered pair (x, y) is an element of the set which is the relation).binary function

PICTORIAL REPRESENTATION OF RELATIONS Draw the coordinate diagram of A X B Use a rectangular array whose rows are labeled by the elements of A and whose columns are labeled by the elements of B. Write down the elements of A and the elements of B in two disjoint disks and then draw an arrow from the element in A the is related to the element in B.

PICTORIAL REPRESENTATION OF RELATIONS Draw the coordinate diagram of A X B –set A = {1,2,3} set B = {a,b} –R = [{(1,a), (1,b), (3,a)}]R is the relation from set A to set B baba

PICTORIAL REPRESENTATION OF RELATIONS Use a rectangular array whose rows are labeled by the elements of A and whose columns are labeled by the elements of B. ab

PICTORIAL REPRESENTATION OF RELATIONS Write down the elements of A and the elements of B in two disjoint disks and then draw an arrow from the element in A the is related to the element in B abab

EQUIVALENCE RELATIONS An equivalence relation on a set X is a binary relation on X that is reflexive, symmetric and transitive, i.e., if the relation is written as ~ it holds for all a, b and c in X thatsetbinary relation (Reflexivity) a ~ a (Symmetry) if a ~ b then b ~ a (Transitivity) if a ~ b and b ~ c then a ~ c Equivalence relations are often used to group together objects that are similar in some sense.

EQUIVALENCE RELATIONS Partitioning into equivalence classes Every equivalence relation on X defines a partition of X into subsets called equivalence classes:equivalence classes – all elements equivalent to each other are put into one class. Conversely, if the set X can be partitioned into subsets, then we can define an equivalence relation ~ on X by the rule "a ~ b if and only if a and b lie in the same subset". If an equivalence relation ~ on X is given, then the set of all its equivalence classes is the quotient set of X by ~ and is denoted by X/~.

FUNCTIONS The concept of function is a generalization of the common notion of a "mathematical formula". Functions describe special mathematical relationships between two objects, x and y=f(x). The object x is called the argument of the function f, and y is said to "depend functionally" on x.mathematicalformulamathematical relationshipsargument

FUNCTIONS Formal Definition Formally, a function f from a set X of input values to a set Y of possibly output values (written as f: X → Y) is a relation between X and Y which satisfies: relation –1. f is functional: if x f y (x is f-related to y) and x f z, then y = z. i.e., for each input value, there should only be one possible output value. –2. f is total: for all x in X, there exists a y in Y such that x f y. i.e. for each input value, the formula should produce at least one output value within Y. For each input value x in the domain, the corresponding unique output value y in the codomain is denoted by f(x).

FUNCTIONS Domains, Codomains, and Ranges X, the set of input values, is called the domain of f and Y, the set of possible output values, is called the codomain.domaincodomain The range of f is the set of all actual outputs {f(x) : x in the domain}. Beware that sometimes the codomain is wrongly called the range because of a failure to distinguish between possible and actual values.range

FUNCTIONS This is not a "well- defined" function; because, the element 3, in X, is associated with two elements b and c in Y (Condition 1 is violated). This is a multivalued function multivalued function

FUNCTIONS This is not a "well- defined" function; because, the element 1, in X, is associated with nothing (Condition 2 is violated). This is a partial function partial function

FUNCTIONS This is a function, called a discrete function (or rarely piecewise function); of which the range is {a,c,d}. It can be stated explicitly as

FUNCTIONS Graph of a functions The graph of a function f is the collection of all points(x, f(x)), for all x in set X. In the example of the discrete function, the graph of f is {(1,a),(2,d),(3,c)}. There are theorems formulated or proved most easily in terms of the graph, such as the closed graph theorem.graph of a functionpointsclosed graph theorem

FUNCTIONS If X and Y are real lines, then this definition coincides with the familiar sense of graph. Here is the graph of a cubic function, which is a curve:curve Note that since a relation on the two sets X and Y is usually formalized as a subset of X×Y, the formal definition of function actually identifies the function f with its graph.