Questions: Operational Transformation for Collaborative Editing

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Users A and B both start with the string 'hello'. A inserts '!' at position 5 (→ 'hello!'). Simultaneously, B inserts '?' at position 5 (independently intending 'hello?'). When B's insert arrives at A's replica, what must OT do to preserve both users' intentions?

AApply B's insert at position 5, overwriting A's '!' with '?'
BDiscard B's insert because A's operation was applied first locally
CTransform B's insert to position 6 so both characters are preserved, producing 'hello!?'
DMerge both characters randomly and propagate the result to all replicas
Question 2 Multiple Choice

Why does operational transformation require a central server or an agreed-upon total ordering of operations, while CRDTs do not?

AOT operations contain too much metadata to be broadcast efficiently in a peer-to-peer network
BOT transformation functions must be applied in a consistent order at every replica; without a serialization point, the same transformations applied in different orders at different sites can diverge
CCRDTs are incompatible with the text editing operations that OT is designed for
DOT was invented before peer-to-peer networking existed and has never been updated
Question 3 True / False

In OT, the transformation function adjusts operation indices to account for the effects of concurrent operations, ensuring that when applied in any order all replicas reach the same final document state.

TTrue
FFalse
Question 4 True / False

Operational transformation is a fully decentralized protocol that allows clients to exchange operations directly peer-to-peer without any central coordinator.

TTrue
FFalse
Question 5 Short Answer

Using the 'abc' example from the topic, explain how OT's transformation function preserves both users' intentions when concurrent edits would otherwise corrupt the document.

Think about your answer, then reveal below.