北京邮电大学计算机学院--离散数学--9.4-relations.ppt

上传人:99****p 文档编号:1584812 上传时间:2019-03-06 格式:PPT 页数:53 大小:480KB
下载 相关 举报
北京邮电大学计算机学院--离散数学--9.4-relations.ppt_第1页
第1页 / 共53页
北京邮电大学计算机学院--离散数学--9.4-relations.ppt_第2页
第2页 / 共53页
北京邮电大学计算机学院--离散数学--9.4-relations.ppt_第3页
第3页 / 共53页
北京邮电大学计算机学院--离散数学--9.4-relations.ppt_第4页
第4页 / 共53页
北京邮电大学计算机学院--离散数学--9.4-relations.ppt_第5页
第5页 / 共53页
点击查看更多>>
资源描述

1、Yang JCollege of Computer Science & TechnologyBeijing University of Posts & Telecommunications9.4 Closures of Relations 2* College of Computer Science & Technology, BUPT Closures of Relationsn Definitionn The closure(闭包 ) of a relation R with respect to property P is the relation obtained by adding

2、the minimum number of ordered pairs to R to obtain property P.n 3 elements:n R1 contains Rn R1 possesses the property Pn If R2 contains R and possesses the property P, then R2 contains R13* College of Computer Science & Technology, BUPT Closures of Relationsn In terms of the digraph representation o

3、f Rn To find the reflexive closure n add loops.n To find the symmetric closuren add arcs in the opposite direction.n To find the transitive closuren if there is a path from a to b, add an arc from a to b.4* College of Computer Science & Technology, BUPT Reflexive Closuren Theorem: n Let R be a relat

4、ion on A.n The reflexive closure of R, denoted r(R), is RD.n Method:n Add loops to all vertices on the digraph representation of R.n Put 1s on the diagonal of the connection matrix of R.5* College of Computer Science & Technology, BUPT Symmetric closuren Theoremn Let R be a relation on A. n The symm

5、etric closure of R, denoted s(R), is the relation RR-1.6* College of Computer Science & Technology, BUPT Theoremn R is symmetric n If and only ifn R = R-1n Note: in digraph of a symmetric relation, use undirected edges instead of arcs7* College of Computer Science & Technology, BUPT Example8* Colleg

6、e of Computer Science & Technology, BUPT Pathsn Suppose that R is a relation on a set A. A path of length n in R from a to b is a finite sequence : a, x1 , x2, ., xn-1, b, beginning with a and ending with b, such thatn a R x1, x1 R x2, ., xn-1 R b9* College of Computer Science & Technology, BUPT Exa

7、mplen 1 : 1, 2, 5, 4, 3 is a path of length 4 from vertex l to vertex 3n 2 : 1, 2, 5, 1 is a path of length 3 from vertex l to itselfn 3 : 2, 2 is a path of length l from vertex 2 to itself2451310* College of Computer Science & Technology, BUPT Some definitionsn A path that begins and ends at the same vertex is called a cycle.n Rn : x Rn y means that there is a path of length n from x to y in R.n Rn (x)n R : x R y means that there is some path in R from x to y. n R (x)n The relation R is sometimes called the connectivity relation for R .

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育教学资料库 > 课件讲义

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。