当前位置:网站首页>[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 |
边栏推荐
- [system design] proximity service
- 从 Amazon Aurora 迁移数据到 TiDB
- Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)
- Core principles and source code analysis of disruptor
- Sorry, this user does not exist!
- Pytorch builds the simplest version of neural network
- Detailed explanation of contextclassloader
- Decision tree of machine learning
- Kubernetes notes (IX) kubernetes application encapsulation and expansion
- The most responsible command line beautification tutorial
猜你喜欢

Project summary --04

Zhiniu stock -- 03

智牛股项目--05

Oauth2.0 - use database to store client information and authorization code

Deep learning, thinking from one dimensional input to multi-dimensional feature input

Alibaba cloud OOS file upload

Code generator - single table query crud - generator

Phpstudy setting items can be accessed by other computers on the LAN

Kubernetes notes (VII) kuberetes scheduling

Loss function in pytorch multi classification
随机推荐
项目总结--04
Understand expectations (mean / estimate) and variances
代码管理工具
Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
Oauth2.0 - using JWT to replace token and JWT content enhancement
Oauth2.0 - use database to store client information and authorization code
Exportation et importation de tables de bibliothèque avec binaires MySQL
[teacher Zhao Yuqiang] MySQL flashback
Installation of CAD plug-ins and automatic loading of DLL and ARX
Alibaba cloud Alipay sandbox payment
Simple understanding of ThreadLocal
Nacos service installation
Tabbar settings
Characteristics and isolation level of database
Oracle database synonym creation
1. 兩數之和
理解 期望(均值/估计值)和方差
The server data is all gone! Thinking caused by a RAID5 crash