DOI QR코드

DOI QR Code

Change Reconciliation on XML Repetitive Data

XML 반복부 데이터의 변경 협상 방법

  • 이은정 (경기대학교 정보과학부)
  • Published : 2004.10.01

Abstract

Sharing XML trees on mobile devices has become more and more popular. Optimistic replication of XML trees for mobile devices raises the need for reconciliation of concurrently modified data. Especially for reconciling the modified tree structures, we have to compare trees by node mapping which takes O($n^2$) time. Also, using semantic based conflict resolving policy is often discussed in the literature. In this research, we focused on an efficient reconciliation method for mobile environments, using edit scripts of XML data sent from each device. To get a simple model for mobile devices, we use the XML list data sharing model, which allows inserting/deleting subtrees only for the repetitive parts of the tree, based on the document type. Also, we use keys for repetitive part subtrees, keys are unique between nodes with a same parent. This model not only guarantees that the edit action always results a valid tree but also allows a linear time reconciliation algorithm due to key based list reconciliation. The algorithm proposed in this paper takes linear time to the length of edit scripts, if we can assume that there is no insertion key conflict. Since the previous methods take a linear time to the size of the tree, the proposed method is expected to provide a more efficient reconciliation model in the mobile environment.

모바일 환경에서 여러 사용자가 XML 트리를 공유하는 응용이 점차 많아지고 있다. XML 트리를 낙관적인 중복 방식으로 모바일 환경에서 공유하려면 동시에 수정된 데이터를 협상하여 하나의 버전을 만들 수 있어야 한다. 특히 XML 트리의 부분 트리를 삽입/삭제한 구조 변경 행위들을 협상하기 위해서는 트리의 노드 매핑과 비교 과정이 필요한데, 이것은 O(n$^2$)의 복잡도를 가지는 문제로 알려져 있다. 또한 응용에 따라 달라지는 의미 기반의 충돌 해결 방식이 도입되어야 할 필요성이 제기되고 있다. 본 연구에서는 모바일 환경에서 XML 트리의 편집 기록(edit script)을 협상하기 위한 효율적인 협상 방법을 제시하였다 본 논문에서는 이러한 요구를 만족시킬 수 있는 XML 데이터 공유 모델로서 문서타입에서 반복부에 해당하는 부분만 삽입과 삭제를 허용하고 반복부의 부분 트리들이 형제들과 구분되는 키 값을 가지는 리스트 공유 모델을 이용한다. 이러한 리스트 공유 모델은 구조 변경 행위가 항상 문서의 유효성을 보장할 수 있다는 장점을 가지며, 키 기반의 리스트 협상을 하게 되므로 효율적인 협상 알고리즘을 얻는 것이 가능하다. 본 논문에서는 리스트 공유 모델에서 서로 키의 충돌이 없는 편집 기록에 대해 편집기록의 길이를 m이라 할 때 O(m)복잡도를 가지는 협상 알고리즘을 제안하였다. 기존 트리 협상 방법이 키의 충돌이 없는 경우 트리 크기에 선형 비례하는 시간 복잡도를 가지므로 제안된 방법은 모바일 환경에서 효과적인 협상 방법으로 사용될 수 있을 것이다.

Keywords

References

  1. 저자, 'XML 문서 공유를 위한 리스트 잠금 프로토콜', 정보처리학회논문지D, 제11-D권 제7호, 게재예정, 2004 https://doi.org/10.3745/KIPSTD.2004.11D.7.1367
  2. S. Agarwal, et al., 'On the scalability of data synchronization protocols for PDAs and mobile devices,' Network IEEE, Vol.16, No.4, July, 2002 https://doi.org/10.1109/MNET.2002.1020232
  3. C. Amza, A. Cox, W. Zwaenepoel. 'Distributed Versioning : Consistent Replication for Scaling Back-end Databases of Dynamic Content Web Sites,' Proceedings of the ACM/IFIP/Usenix Middleware Conference, 2003
  4. Giacomo Cabri, Letizia Leonardi, Franco Zambonelli, 'XML dataspaces for mobile agent coordinatio,' Proceedings of the 2000 ACM symposium on Applied computing, 2000 https://doi.org/10.1145/335603.335738
  5. S.Chawathe, et al., 'Change detection in hierarchically structured information,' ACM SIGMOD, pp.493-504, 1996 https://doi.org/10.1145/233269.233366
  6. G. Miklau, D. Suciu, 'Containment and equivalence for an Xpath fragment,' Proceedings of the twenty-first ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, pp.65-76, 2002 https://doi.org/10.1145/543613.543623
  7. R. Fontaine, 'Merging XML files: a new approach providing intelligent merge of XML data sets,' In Proceedings of XML Europe 2002, May, 2002
  8. Anne-Marie Kermarrec, et al., 'The IceCube approach to reconciliation of divergent replicas,' 20th Symp., on Principles of Dist. Comp. (PODC), Newport RI (USA), Aug., 2001 https://doi.org/10.1145/383962.384020
  9. Franky Lam, Nicole Lam, Raymond Wong, 'Efficient synchronization for mobile XML data,' Proceedings of the eleventh international conference on Information and knowledge management, pp.153-160, 2002 https://doi.org/10.1145/584792.584820
  10. Tancred Lindholm, 'Consistency and replication: XML three-way merge as a reconciliation engine for mobile data,' Proceedings of the 3rd ACM international workshop on Data engineering for wireless and mobile access, pp.93-97, 2003 https://doi.org/10.1145/940923.940940
  11. C. Mascolo, L. Capra, S. Zachariadis and W. Emmerich. XMIDDLE : A Data-Sharing Middleware for Mobile Computing. Personal and Wireless Communications, April, 2002 https://doi.org/10.1023/A:1015584805733
  12. Shirish H. Phatak and B.R. Badrinath, 'Transaction-centric Reconciliation in Disconnected Databases,' ACM Monet Journal, Vol.53, 1999
  13. Kristin Tufte, David Maier, 'Merge as a Lattice-Join of XML Documents,' Proceedings of the 28th VLDB Conference, Hong Kong, China, 2002
  14. S.Johnson, 'Yacc : Yet Another compiler compiler,' AT&T Bell lab Technical report No.32, 1975