68
3.4 Persistentaddressing
InSection3.3wesimplyassumed,whenweneededto,thatwecanconstructatotalor-
deringonthepointsthatdefinethezonesofeffectofanoperation,whichwillbesensible
foreachoperation,evenwhencombinedwithotheroperationsthatcausechangesinthe
orderofthesequence.Thissectiondescribesthebasicideabehindthisordering,andex-
ploressomeoftheimplicationsofitsexistence.Aswiththeotherdescriptionsinthischap-
ter,thegoalisinsight;theprecisedefinitionsarepartofChapter4’sformalmodel.
3.4.1 Thebasicprinciple
Thefundamentalideaoftheglobaladdressspaceistoimaginethatthereisanaddress
foreverypointthatcouldexistinanyversionofthesequence.Thismeansthateachopera-
tionthatcouldaffectasequencecanonlycreatenewaddresses,andnotre-orderordelete
oldones.Whenasetofoperationsisinterpretedtocreateaparticularstateofasequence,
manyoftheglobaladdressescontainanullsubstring,anddonotcorrespondtoanycontent
inthatstateofthesequence.Theseaddressesdesignatetheplaceswheretextwasdeleted,
orthesourceofactivemoveoperations:theycanbethoughtofalmostastheghostsofsub-
sequencesthatusedtoexistina
particularplace,butdosono
more.
Figure3.2showstwochanges,
eachappliedtothesamebase
sequence,andthenshowstheset
ofaddressablepointswhenthose
changesareincludedinadocu-
ment.Thelowersequencerepre-
sentstheunderlyingaddress
ABCDEABCF
ABCDEF
C2
ABCDEABCF
ABCDEF
M3
F F F F iii ig g g gu u u ur r r re e e e 3333....2222:::: Some move and copy changes and their re-
sults
3.4 Persistentaddressing
InSection3.3wesimplyassumed,whenweneededto,thatwecanconstructatotalor-
deringonthepointsthatdefinethezonesofeffectofanoperation,whichwillbesensible
foreachoperation,evenwhencombinedwithotheroperationsthatcausechangesinthe
orderofthesequence.Thissectiondescribesthebasicideabehindthisordering,andex-
ploressomeoftheimplicationsofitsexistence.Aswiththeotherdescriptionsinthischap-
ter,thegoalisinsight;theprecisedefinitionsarepartofChapter4’sformalmodel.
3.4.1 Thebasicprinciple
Thefundamentalideaoftheglobaladdressspaceistoimaginethatthereisanaddress
foreverypointthatcouldexistinanyversionofthesequence.Thismeansthateachopera-
tionthatcouldaffectasequencecanonlycreatenewaddresses,andnotre-orderordelete
oldones.Whenasetofoperationsisinterpretedtocreateaparticularstateofasequence,
manyoftheglobaladdressescontainanullsubstring,anddonotcorrespondtoanycontent
inthatstateofthesequence.Theseaddressesdesignatetheplaceswheretextwasdeleted,
orthesourceofactivemoveoperations:theycanbethoughtofalmostastheghostsofsub-
sequencesthatusedtoexistina
particularplace,butdosono
more.
Figure3.2showstwochanges,
eachappliedtothesamebase
sequence,andthenshowstheset
ofaddressablepointswhenthose
changesareincludedinadocu-
ment.Thelowersequencerepre-
sentstheunderlyingaddress
ABCDEABCF
ABCDEF
C2
ABCDEABCF
ABCDEF
M3
F F F F iii ig g g gu u u ur r r re e e e 3333....2222:::: Some move and copy changes and their re-
sults