arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.00583cs.DCcs.DS
收藏

赋格的艺术:最小化协作文本编辑中的交错

The Art of the Fugue: Minimizing Interleaving in Collaborative Text Editing

Carnegie Mellon University(卡内基梅隆大学);University of Cambridge(剑桥大学)

Matthew Weidner, Martin Kleppmann

AI总结:

针对协作文本编辑中并发插入导致文本交错的问题,论文提出最大非交错正确性属性及 Fugue、FugueMax 两种 CRDT 算法,证明后者满足该属性,并验证 Fugue 性能可比肩现有最优库。

摘要:

复制列表被广泛用于协作文本编辑器,而其大多数现有算法都存在一个问题:当两名用户在文档的同一位置并发插入文本时,合并结果可能使插入的文本段落相互交错,导致文本损坏并可能无法阅读。这一问题几十年来一直未被注意,并且同时影响 CRDT 和 Operational Transformation。本文定义了 maximal non-interleaving(最大非交错),这是我们为复制列表提出的新正确性属性。我们介绍两个相关的 CRDT 算法 Fugue 和 FugueMax,并证明 FugueMax 满足最大非交错。我们还实现了这些算法,并证明 Fugue 提供了与最先进的文本编辑 CRDT 库相当的性能。

英文摘要:

Most existing algorithms for replicated lists, which are widely used in collaborative text editors, suffer from a problem: when two users concurrently insert text at the same position in the document, the merged outcome may interleave the inserted text passages, resulting in corrupted and potentially unreadable text. The problem has gone unnoticed for decades, and it affects both CRDTs and Operational Transformation. This paper defines maximal non-interleaving, our new correctness property for replicated lists. We introduce two related CRDT algorithms, Fugue and FugueMax, and prove that FugueMax satisfies maximal non-interleaving. We also implement our algorithms and demonstrate that Fugue offers performance comparable to state-of-the-art CRDT libraries for text editing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑