YATA algorithm:修订间差异

来自WHY42
Riguz留言 | 贡献
Riguz留言 | 贡献
第25行: 第25行:
following rule ensures, that there is no o that is greater
following rule ensures, that there is no o that is greater
than o2, but smaller than o1, with respect to <c
than o2, but smaller than o1, with respect to <c
o1 <rule2 o2 ⇔ ∀o : o2 <c o → o1 ≤ o ⇔ @o : o2 <c o < o1
</q>
</q>


<math>o1 <_{rule2} o2 \iff \exists o : o2 <c o \to o1 ≤ o \iff \nexists o : o2 <_{c} o < o1</math>


[[Category:Distributed]]
[[Category:Distributed]]
[[Category:CRDT]]
[[Category:CRDT]]

2024年8月13日 (二) 07:36的版本

Notes on YATA paper

This is notes on Near Real-Time Peer-to-Peer Shared Editing on Extensible Data Types[1].

Rules

Rule1: No line crossing

Rule1: We forbid crossing of origin connections (red lines in the graphical representation) between conflicting insertions. This rule is easily explained using the graphical representation of insertions in the linked list. As we stated before, every insertion has an origin connection to an insertion to the left (to a predecessor). Only when two operations are concurrently inserted after the same insertion, they will have the same origin.

[math]\displaystyle{ o1 \lt _{rule1} o2 ⇔ o1 \lt origin2 ∨ origin2 ≤ origin1 }[/math]

  • Red line refers to the connection from the operation to it's origin
  • The assumation is that o1 and o2 conflicts, which means that there's overlap between intentions of them.

Rule2: transitivity on <c

Specifies transitivity on <c. Let o1 <c o2. Then following rule ensures, that there is no o that is greater than o2, but smaller than o1, with respect to <c

[math]\displaystyle{ o1 \lt _{rule2} o2 \iff \exists o : o2 \lt c o \to o1 ≤ o \iff \nexists o : o2 \lt _{c} o \lt o1 }[/math]