Equivalence Relations

Slides:



Advertisements
Similar presentations
Representing Relations
Advertisements

Representing Relations Rosen 7.3. Using Matrices For finite sets we can use zero-one matrices. Elements of each set A and B must be listed in some particular.
CSE115/ENGR160 Discrete Mathematics 04/26/12 Ming-Hsuan Yang UC Merced 1.
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
1 Section 7.3 Representing relations (part 1: matrices)
Matrix Definition: An array of numbers in m rows and n colums is called an mxn matrix A square matrix of order n, is an (nxn) matrix.
Maths for Computer Graphics
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
Chapter 3 Review MATH130 Heidi Burgiel. Relation A relation R from X to Y is any subset of X x Y The matrix of a Relation R is a matrix that has a 1 in.
Discrete Mathematics Lecture#11.
Matrices MSU CSE 260.
1 Representing Relations Epp section ??? CS 202 Aaron Bloomfield.
Applied Discrete Mathematics Week 10: Equivalence Relations
tables Objectives: By the end of class today I will:
F UNDAMENTALS OF E NGINEERING A NALYSIS Eng. Hassan S. Migdadi Inverse of Matrix. Gauss-Jordan Elimination Part 1.
Module #21 - Relations Representing Relations Rosen 6 th ed., Ch. 8.
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a Fall 2002KSU - Discrete Structures1.
April 10, 2002Applied Discrete Mathematics Week 10: Relations 1 Counting Relations Example: How many different reflexive relations can be defined on a.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Unit Unit 04 Relations IT DisiciplineITD1111 Discrete Mathematics & Statistics STDTLP1 Unit 4 Relations.
Copyright © 2011 Pearson, Inc. 7.2 Matrix Algebra.
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.
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 Closures of Relations: Transitive Closure and Partitions Sections 8.4 and 8.5.
Matrices Matrices A matrix (say MAY-trix) is a rectan- gular array of objects (usually numbers). An m  n (“m by n”) matrix has exactly m horizontal.
2009/9 1 Matrices(§3.8)  A matrix is a rectangular array of objects (usually numbers).  An m  n (“m by n”) matrix has exactly m horizontal rows, and.
Module #9: Matrices Rosen 5 th ed., §2.7 Now we are moving on to matrices, section 7.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Operations and Their Applications.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
Matrices Section 2.6. Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices.
Relations. Important Definitions We covered all of these definitions on the board on Monday, November 7 th. Definition 1 Definition 2 Definition 3 Definition.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
CSNB143 – Discrete Structure Topic 3 – Matrices. Learning Outcomes Students should understand all matrices operations. Students should be able to differentiate.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Problem Statement How do we represent relationship between two related elements ?
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
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.
Matrices and Determinants
SECTION 2 BINARY OPERATIONS Definition: A binary operation  on a set S is a function mapping S X S into S. For each (a, b)  S X S, we will denote the.
1 Equivalence relations Binary relations: –Let S1 and S2 be two sets, and R be a (binary relation) from S1 to S2 –Not every x in S1 and y in S2 have such.
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.
Section 7.3: Representing Relations In this section, we will cover two ways to represent a relation over a finite set other than simply listing the relation.
Table of Contents Matrices - Definition and Notation A matrix is a rectangular array of numbers. Consider the following matrix: Matrix B has 3 rows and.
Section 2.4. Section Summary  Sequences. o Examples: Geometric Progression, Arithmetic Progression  Recurrence Relations o Example: Fibonacci Sequence.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
拉丁方陣 交大應數系 蔡奕正. Definition A Latin square of order n with entries from an n-set X is an n * n array L in which every cell contains an element of X such.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 41 May 7, 2008.
CS 285- Discrete Mathematics Lecture 11. Section 3.8 Matrices Introduction Matrix Arithmetic Transposes and Power of Matrices Zero – One Matrices Boolean.
Introduction Types of Matrices Operations
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Chapter8 Relations 8.1: Relations and their properties.
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.
Relations and Their Properties
Relations Binary relations represent relationships between the elements of two sets. A binary relation R from set A to set B is defined by: R  A 
Representing Relations
CSE115/ENGR160 Discrete Mathematics 04/28/11
Mathematical Structures for Computer Science Chapter 6
RECORD. RECORD COLLABORATE: Discuss: Is the statement below correct? Try a 2x2 example.
Determinant of a Matrix
Introduction to Relations and Functions
REDUCING MATRICES.
Background material.
Combining relations via relational composition
Matrices and Determinants
Presentation transcript:

Equivalence Relations A relation on set A is called an equivalence relation if it is: reflexive, symmetric, and Transitive We use the notation a  b

Example Let R be a relation on set A, where A = {1, 2, 3, 4, 5} and R = {(1,1), (2,2), (3,3), (4,4), (5,5), (1,3), (3,1)} Is R an equivalence relation?

Another example: Let A={set of lines } and R is a relation R={(L1,L2):L1 is parallel to L2}

Representing Relations Using Matrices Let R be a relation from A to B A = {a1, a2, … } B = {b1, b2, … } The zero-one matrix representing the relation R has a 1 as its entry when ai is related to bj and a 0 in this position if ai is not related to bj.

Example Let R be a relation from A to B A={a, b, c} B={d, e} R={(a, d), (b, e), (c, d)} Find the relation matrix for R

Relation Matrix Let R be a relation from A to B A={a, b, c} B={d, e} R={(a, d), (b, e), (c, d)} Note that A is represented by the rows and B by the columns in the matrix. Cellij in the matrix contains a 1 iff ai is related to bj.

Relation Matrices and Properties Let R be a binary relation on a set A and let M be the zero-one matrix for R. R is reflexive iff Mii = 1 for all i R is symmetric iff M is a symmetric matrix

Relation Matrices and Properties

Example Suppose that the relation R on a set is represented by the matrix MR. ú û ù ê ë é = 1 R M Is R reflexive and symmetric?

Example Is R reflexive? Is R symmetric? ú û ù ê ë é = 1 M R M Is R reflexive? Is R symmetric? All the diagonal elements = 1, so R is reflexive. The lower left triangle of the matrix = the upper right triangle, so R is symmetric.

Let A={a1,a2,a3} and B={b1,b2,b3,b4,b5} which ordered pairs are in the relation R represented by the matrix ?? 0 1 0 0 0 1 0 1 1 0 1 0 1 0 1

intersection union

Find the union and intersection of zero_one matrices The intersection The union