当前位置:网站首页>[set theory] equivalence relation (concept of equivalence relation | examples of equivalence relation | equivalence relation and closure)
[set theory] equivalence relation (concept of equivalence relation | examples of equivalence relation | equivalence relation and closure)
2022-07-03 06:11:00 【Programmer community】
List of articles
- One 、 Equivalence relation
- Two 、 Examples of equivalence relationships
- 3、 ... and 、 Examples of equivalence relations and closures
One 、 Equivalence relation
Concept of equivalence relation :
A
A
A Set is a non empty set ,
A
≠
∅
A \not= \varnothing
A=∅ , also
R
R
R The relationship is
A
A
A Binary relations on sets ,
R
⊆
A
×
A
R \subseteq A\times A
R⊆A×A ;
If
R
R
R The relationship is introspect , symmetry , Pass on Of , So called
R
R
R The relationship is Equivalence relation ;
Two 、 Examples of equivalence relationships
1. Relationship
1
1
1 :
x
x
x And
y
y
y The same age ;
- introspect :
x
x
x And
x
x
x The same age ; introspect establish ;
- symmetry :
x
x
x And
y
y
y The same age ,
y
y
y And
x
x
x The same age ; symmetry establish ;
- Pass on :
x
x
x And
y
y
y The same age ,
y
y
y And
z
z
z The same age ,
x
x
x And
z
z
z The same age ; Pass on establish ;
- Equivalence relation : The relationship is introspect , symmetry , Pass on Of , So the relationship yes Equivalence relation ;
It can be seen from the above , Equivalence relations are used for classification , People born in the same year can be divided into an equivalent class ;
2. Relationship
2
2
2 :
x
x
x And
y
y
y Same last name ;
- introspect :
x
x
x And
x
x
x Same last name ; introspect establish ;
- symmetry :
x
x
x And
y
y
y Same last name ,
y
y
y And
x
x
x Same last name ; symmetry establish ;
- Pass on :
x
x
x And
y
y
y Same last name ,
y
y
y And
z
z
z Same last name ,
x
x
x And
z
z
z Same last name ; Pass on establish ;
- Equivalence relation : The relationship is introspect , symmetry , Pass on Of , So the relationship It's equivalence ;
3. Relationship
3
3
3 :
x
x
x Older than or equal to
y
y
y ;
- introspect :
x
x
x Older than or equal to
x
x
x ; introspect establish ;
- symmetry :
x
x
x Older than or equal to
y
y
y ,
y
y
y Older than or equal to
x
x
x ; symmetry Don't set up ;
- Pass on :
x
x
x Older than or equal to
y
y
y ,
y
y
y Older than or equal to
z
z
z ,
x
x
x Older than or equal to
z
z
z ; Pass on establish ;
- Equivalence relation : The relationship is introspect , Pass on Of , It's not symmetrical , So the relationship It's not equivalent ;
4. Relationship
4
4
4 :
x
x
x And
y
y
y Take the same course ;
- introspect :
x
x
x And
x
x
x Take the same course ; introspect establish ;
- symmetry :
x
x
x And
y
y
y Take the same course ,
y
y
y And
x
x
x Take the same course ; symmetry establish ;
- Pass on :
x
x
x And
y
y
y Take the same course ,
y
y
y And
z
z
z Take the same course ,
x
x
x And
z
z
z Take the same course ; The above situation is not necessarily true ,
x
,
y
x,y
x,y May also choose music ,
y
,
z
y,z
y,z At the same time, take history ,
x
,
z
x,z
x,z Not taking the same course ; Pass on Don't set up ;
- Equivalence relation : The relationship is introspect , symmetry Of , Not transitive , So the relationship It's not equivalent ;
5. Relationship
5
5
5 :
x
x
x Weight greater than
y
y
y ;
- introspect :
x
x
x Weight greater than
x
x
x ; introspect Don't set up ;
- symmetry :
x
x
x Weight greater than
y
y
y ,
y
y
y Weight greater than
x
x
x ; symmetry Don't set up ;
- Pass on :
x
x
x Weight greater than
y
y
y ,
y
y
y Weight greater than
z
z
z ,
x
x
x Weight greater than
z
z
z ; Pass on establish ;
- Equivalence relation : The relationship is Pass on Of , No introspect , symmetry Of , So the relationship It's not equivalent ;
3、 ... and 、 Examples of equivalence relations and closures
A
A
A Set is a non empty set ,
A
≠
∅
A \not= \varnothing
A=∅ , also
R
R
R The relationship is
A
A
A Binary relations on sets ,
R
⊆
A
×
A
R \subseteq A\times A
R⊆A×A ;
Yes
R
R
R Three closures of relation , Yes
6
6
6 In a different order , Discuss the properties of these closure results ;
6
6
6 A property of finding closures :
r
t
s
(
R
)
rts(R)
rts(R) : First find the symmetric closure , Ask again Pass closures , Finally, find the reflexive closure ;
t
r
s
(
R
)
trs(R)
trs(R) : First find the symmetric closure , Then find the reflexive closure , Finally, ask for Pass closures ;
t
s
r
(
R
)
tsr(R)
tsr(R) : First find the reflexive closure , Then find the symmetric closure , Finally, ask for Pass closures ;
r
s
t
(
R
)
rst(R)
rst(R) : First seek Pass closures , Then find the symmetric closure , Finally, find the reflexive closure ;
s
r
t
(
R
)
srt(R)
srt(R) : First seek Pass closures , Then find the reflexive closure , Finally, find the symmetric closure ;
s
t
r
(
R
)
str(R)
str(R) : First find the reflexive closure , Ask again Pass closures , Finally, find the symmetric closure ;
Reference resources : 【 Set theory 】 Relational closure ( Relational closure method | Find closure of relation graph | Find closure of relation matrix | Closure operation and relation properties | Closure compound operation ) 5、 ... and 、 Closure compound operation
r
s
(
R
)
=
s
r
(
R
)
rs(R) = sr(R)
rs(R)=sr(R) : Symmetric closure And Reflexive closure Compound operation of , Whatever the order , It's the same to ask for first ;
r
t
(
R
)
=
t
r
(
R
)
rt(R) = tr(R)
rt(R)=tr(R) : Pass closures And Reflexive closure Compound operation of , Whatever the order , It's the same to ask for first ;
s
t
(
R
)
⊆
t
s
(
R
)
st(R) \subseteq ts(R)
st(R)⊆ts(R) : Pass closures And Symmetric closure Coincidence operation of , Different order , The calculation results are different ;
Therefore, there are two categories
- ① Transitive closure first , Then find the symmetric closure
- ② First find the symmetric closure , Then find the transitive closure
First find the symmetric closure , Then find the transitive closure :
r
t
s
(
R
)
rts(R)
rts(R) : First find the symmetric closure , Ask again Pass closures , Finally, find the reflexive closure ;
t
r
s
(
R
)
trs(R)
trs(R) : First find the symmetric closure , Then find the reflexive closure , Finally, ask for Pass closures ;
t
s
r
(
R
)
tsr(R)
tsr(R) : First find the reflexive closure , Then find the symmetric closure , Finally, ask for Pass closures ;
Fix ts The order of operations , First t after s , r Operations can be placed anywhere ;
Reflexivity does not conflict with the other two closure operations , It can be anywhere ;
Symmetry and transmission , The transmission of subsequent requests , So the result is transitive ;
The result of the above three sequences is introspect , symmetry , Pass on Of , It satisfies the equivalence relation , The result is Equivalent closure ;
First ask for the transfer package , Then find the symmetric closure :
r
s
t
(
R
)
rst(R)
rst(R) : First seek Pass closures , Then find the symmetric closure , Finally, find the reflexive closure ;
s
r
t
(
R
)
srt(R)
srt(R) : First seek Pass closures , Then find the reflexive closure , Finally, find the symmetric closure ;
s
t
r
(
R
)
str(R)
str(R) : First find the reflexive closure , Ask again Pass closures , Finally, find the symmetric closure ;
Fix st The order of operations , First s ( Symmetric closure ) after t ( Pass closures ) , r ( Symmetric closure ) Operations can be placed anywhere ;
Reflexivity does not conflict with the other two closure operations , It can be anywhere ;
Symmetry and transmission , The transmission of the first request , Then find symmetry , Symmetry destroys transmission , Therefore, the result is not transitive ;
The result of the above three sequences is introspect , symmetry , Don't deliver Of , It does not satisfy the equivalence relation ;
r t s ( R ) = t r s ( R ) = = t s r ( R ) rts(R)=trs(R)==tsr(R) rts(R)=trs(R)==tsr(R) | r s t ( R ) = s r t ( R ) = s t r ( R ) rst(R) = srt(R) = str(R) rst(R)=srt(R)=str(R) | |
|---|---|---|
| introspect | establish | establish |
| symmetry | establish | establish |
| Pass on | establish | Don't set up |
| Equivalence relation | establish ( This closure is called an equivalent closure ) | Don't set up |
边栏推荐
- The most responsible command line beautification tutorial
- Synthetic keyword and NBAC mechanism
- Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
- [teacher Zhao Yuqiang] redis's slow query log
- Loss function in pytorch multi classification
- [teacher Zhao Yuqiang] index in mongodb (Part 2)
- Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
- Apifix installation
- 88. Merge two ordered arrays
- ThreadLocal的简单理解
猜你喜欢

Code generator - single table query crud - generator

Simple handwritten ORM framework

Kubernetes notes (III) controller

Zhiniu stock project -- 05
![[teacher Zhao Yuqiang] RDB persistence of redis](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] RDB persistence of redis
![[system design] proximity service](/img/4a/2e68536cbe385af1d1a591e674fbf0.png)
[system design] proximity service

Zhiniu stock -- 03

使用conda创建自己的深度学习环境

Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation

Cesium 点击获取模型表面经纬度高程坐标(三维坐标)
随机推荐
Kubernetes notes (VII) kuberetes scheduling
Yum is too slow to bear? That's because you didn't do it
Cesium entity(entities) 实体删除方法
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)
Openresty best practices
Phpstudy setting items can be accessed by other computers on the LAN
88. 合并两个有序数组
Bio, NiO, AIO details
Simple solution of small up main lottery in station B
Detailed explanation of findloadedclass
Cesium 点击获取模型表面经纬度高程坐标(三维坐标)
Txt document download save as solution
Why should there be a firewall? This time xiaowai has something to say!!!
The server data is all gone! Thinking caused by a RAID5 crash
BeanDefinitionRegistryPostProcessor
Kubesphere - build MySQL master-slave replication structure
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
从小数据量 MySQL 迁移数据到 TiDB
輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷