Metraipolis › archive › dc_1484e8b7bb34

Version vector — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Version_vector
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-15T16:35:13.290Z
SHA-256 of the archived text
5596d02c550f99173c9de1fd06000c4ad4e0379a4f7399cf33776a35c0b394df
Stable URL of this page
https://metraipolis.com/documento/dc_1484e8b7bb34

How to cite

Version vector — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Version_vector (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_1484e8b7bb34 (Metraipolis archive dc_1484e8b7bb34, sha256 5596d02c550f99173c9de1fd06000c4ad4e0379a4f7399cf33776a35c0b394df)
BibTeX
@misc{dc1484e8b7bb34,
  title = {Version vector — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Version_vector},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_1484e8b7bb34; sha256 5596d02c550f99173c9de1fd06000c4ad4e0379a4f7399cf33776a35c0b394df},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Version_vector. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

A version vector is a mechanism for tracking changes to data in a distributed system, where multiple agents might update the data at different times. The version vector allows the participants to determine if one update preceded another (happened-before), followed it, or if the two updates happened concurrently (and therefore might conflict with each other). In this way, version vectors enable causality tracking among data replicas and are a basic mechanism for optimistic replication. In mathematical terms, the version vector generates a preorder that tracks the events that precede, and may therefore influence, later updates. Version vectors maintain state identical to that in a vector clock, but the update rules differ slightly; in this example, replicas can either experience local updates (e.g., the user editing a file on the local node), or can synchronize with another replica: Initially all vector counters are zero. Each time a replica experiences a local update event, it increments its own counter in the vector by one. Each time two replicas a and b synchronize, they both set the elements in their copy of the vector to the maximum of the element across both counters: V a [ x ] = V b [ x ] = max ( V a [ x ] , V b [ x ] ) {\displaystyle V_{a}[x]=V_{b}[x]=\max(V_{a}[x],V_{b}[x])} . After synchronization, the two replicas have identical version vectors. Pairs of replicas, a, b, can be compared by inspecting their version vectors and determined to be either: identical ( a = b {\displaystyle a=b} ), concurrent ( a ∥ b {\displaystyle a\parallel b} ), or ordered ( a < b {\displaystyle a<b} or b < a {\displaystyle b<a} ). The ordered relation is defined as: Vector a < b {\displaystyle a<b} if and only if every element of V a {\displaystyle V_{a}} is less than or equal to its corresponding element in V b {\displaystyle V_{b}} , and at least one of the elements is strictly less than. If neither a < b {\displaystyle a<b} or b < a {\displaystyle b<a} , but the vectors are not identical, then the two vectors must be concurrent. Version vectors or variants are used to track updates in many distributed file systems, such as Coda (file system) and Ficus, and are the main data structure behind optimistic replication.

Tema degli esploratori: calcolo e infrastrutture (deposito sistematico; ricerca «distributed computing»).
Fonte: Wikipedia in inglese, voce «Version vector» — https://en.wikipedia.org/wiki/Version_vector
Wikidata Q7922692 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q7922692
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Version_vector?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1340545730, consultata il 2026-10-15T16:04:41.149Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: e886469707ac459b2b8d25e734142df12da74528bba2a093aea14efd0a8ad7f1