4.2 Relations and Digraphs

Slides:



Advertisements
Similar presentations
2.3 Modeling Real World Data with Matrices
Advertisements

Algebra I B. MacDonald.  Standard form ax 2 + bx + c  a, b, c are real numbers.
CSNB143 – Discrete Structure
Matrix Multiplication To Multiply matrix A by matrix B: Multiply corresponding entries and then add the resulting products (1)(-1)+ (2)(3) Multiply each.
Table of Contents Matrices - Multiplication Assume that matrix A is of order m  n and matrix B is of order p  q. To determine whether or not A can be.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Section 4.3 – A Review of Determinants Section 4.4 – The Cross Product.
Is this relation a function? Explain. {(0, 5), (1, 6), (2, 4), (3, 7)} Draw arrows from the domain values to their range values.
Representing Relations By Ajhane Foster And MarTricesa Carter.
Lecture 14 Relations CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
Copyright © 2011 Pearson, Inc. 7.2 Matrix Algebra.
13.1 Matrices and Their Sums
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Balancing a trip matrix. sumAiOi 21361, , ,
Relations Relations between sets are like functions, but with a more general definition (given later). presentations: a set, a binary matrix, a graph…
Discrete Mathematics Relation.
Relations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Properties of Relations Reading: Kolman, Section
§ 每周五交作业,作业成绩占总成绩的 10% ; § 平时不定期的进行小测验,占总成绩的 20% ; § 期中考试成绩占总成绩的 20% ;期终考 试成绩占总成绩的 50% § 每周五下午 1 ; 00—3 : 00 ,答疑 § 地点:软件楼 301.
Do Now Find the domain & range:. Answers to Homework
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)
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
Matrix Algebra Section 7.2. Review of order of matrices 2 rows, 3 columns Order is determined by: (# of rows) x (# of columns)
8.2 Operations With Matrices
CSNB143 – Discrete Structure Topic 3 – Matrices. Learning Outcomes Students should understand all matrices operations. Students should be able to differentiate.
4. Relations and Digraphs Binary Relation Geometric and Algebraic Representation Method Properties Equivalence Relations Operations.
Table of Contents Rational Expressions and Functions where P(x) and Q(x) are polynomials, Q(x) ≠ 0. Example 1: The following are examples of rational expressions:
2.2 Multiplying Matrices Mr. Anderson Pre Calculus Falconer Central High School Falconer, NY.
Matrices and Determinants
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.
MATRIX FORM OF PRIM’S ALGORITHM. This network may be described using a Distance Matrix.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
Relations and Their Properties
CSNB 143 Discrete Mathematical Structures
13.4 Product of Two Matrices
Graphing Linear Relations and Functions
Matrices and Matrix Operations
Properties and Applications of Matrices
12-1 Organizing Data Using Matrices
Relations Chapter 9.
Relations and Digraphs
Representing Relations
Dr. Ameria Eldosoky Discrete mathematics
MATHEMATICS Matrix Multiplication
Matrix Multiplication
CSNB 143 Discrete Mathematical Structures
Section 3.3 – The Cross Product
FUNCTIONS: A REVIEW ASSESSMENT QUESTIONS.
Applied Discrete Mathematics Week 10: Equivalence Relations
FUNCTION DEFINITION: A RELATION IN WHICH EACH ELEMENT OF THE DOMAIN IS PAIRED WITH EXACTLY ONE ELEMENT OF THE RANGE. IN OUR OWN WORDS THIS MEANS ALL X-VALUES.
§7.3 Representing Relations Longin Jan Latecki
4.3 Paths in Relations and Digraphs
2. Matrix Algebra 2.1 Matrix Operations.
4-2 Adding & Subtracting Matrices
Area Models A strategy for Multiplication
Matrix Algebra.
Exercise Give the domain and range of the following relation.
Multiplication of Matrices
3.6 Multiply Matrices.
Section 9.4 Matrix Operations
Make a table and a graph of the function y = 2x + 4
Matrix A matrix is a rectangular arrangement of numbers in rows and columns Each number in a matrix is called an Element. The dimensions of a matrix are.
Ordered Pair – (11 - 2) CS-708.
§7.3 Representing Relations Longin Jan Latecki
Agenda Lecture Content: Relations (Relasi)
Matrices - Operations MULTIPLICATION OF MATRICES
Applied Discrete Mathematics Week 4: Functions
Relations 12/7/2019.
4.4 Properties of Relations
Presentation transcript:

4.2 Relations and Digraphs

We show a relation between two sets A and B by writing aRb. This shows which elements of A are related to elements of B A = {1,2,3} B = {r,s} R = {(1,r),(2,s),(3,r)} Relation from A to B

The Domain of R can be written Dom(R) The Domain of R is the set of elements from A that are related to B. The Range of R can be written Ran(R). The Range of R is the set of elements from B that are the second elements of pairs in R.

Matrix of a relation Matrix of R MR = [mij] Where i = row and j = column mij = 1 if (ai, bj) is an element of R = 0 if (ai, bj) is not an element of R

A = {1,2,3} B = {r,s} R = {(1,r), (2,s), (3,r)} a b r s 1 2 3

A = {a1, a2, a3} B = {b1 , b2, b3, b4 } (ai, bj) is an element of the relation if and only if mij = 1. i = row J = column R = {(a1,b1 ),(a1,b4),(a2,b2),(a2,b3),(a3,b1),(a3,b3)} b1 b2 b3 b4 a1 1 a2 a3

Insert zero’s where there are no 1’s b1 b2 b3 b4 a1 1 a2 a3

Digraph A = {1,2,3,4} B = A R = {(1,1), (1,2), (2,1), (2,2), (2,3),(2,4), (3,4), (4,1)} All elements of A go in the circles. Arrows point to the second element of the pair. 2 1 3 4

Create a table of in degrees and out degrees based on the digraph. Note: the sum of all in degrees must equal the sum of all out degrees. In degrees Out degrees 1 2 3 4 SUM 8

Given this digraph, find MR and R Look at the number in the circle then, look where the arrow goes out to. row,col row,col row,col row,col row,col row,col R = {(1,4), (1,5), (4,1), (4,4), (5,4), (5,5)} 1 4 5

a\b 1 4 5 1 MR = 4 5

Restriction of R to B is R ∩ (BXB) R = {(a,a),(a,c),(b,c)} A = {a,b,c,d,e,f} B = {a,b,c} {a,b,c} BXB = {(a,a),(a,b),(a,c),(b,a),(b,b),(b,c),(c,a),(c,b),(c,c)} Look for where R and BXB have the same element pairs. The restriction of R to B is {(a,a),(a,c),(b,c)}