计算机科学 ›› 2010, Vol. 37 ›› Issue (11): 172-174.

• 数据库与数据挖掘 • 上一篇    下一篇

基于XML路径和类型的决策问题的研究

沈洁,印桂生,王向辉   

  1. (哈尔滨工程大学计算机科学与技术学院 哈尔滨150001)
  • 出版日期:2018-12-01 发布日期:2018-12-01
  • 基金资助:
    本文受863基金(No. 2007AA012401),哈尔滨市基金(RC2009XK010003)资助。

Research on the Decision Problem of XML Path and Type

SHEN Jie,YIN Gui-sheng,WANG Xiang-hui   

  • Online:2018-12-01 Published:2018-12-01

摘要: 提出了一种算法来分析用正则树表示的XML数据中对XPath的决策问题,并用该方法检查XPath静态类型的数据。此外根据对有限顺序树的带逆操作的逻辑的判定性定理,证明了算法时间复杂度为简单的一个表达式的指数级大小。提出了一套实用的、有效的数学模型来解决XPath表达式中的可满足性问题。并通过对一些决策问题,例如带或者不带类型约束的XPath的空、包含、重叠和覆盖问题的实验对算法进行了证实,实验证明该系统能够有效用于对操作XPath表达式和XML类型注释的程序语言的静态分析器中。

关键词: XML,决策问题,可满足性检测

Abstract: In this paper, a new algorithm was proposed to analyze the decision problem to XPath in XML data which is represented as regular tree. By this way we could also check the static data's type of XPath. Based on the decidability of a logic with converse for finite ordered tree,we proved that its' time complexity is a simple exponential of the size of a formula. Then a practical and effective mathematical model was built to slow the satisfiability problem of a formula.Through some examples of decision problems, such as XPath emptiness, containment, overlap, and coverage, with or without type constraints, the algorithm was confirmed by these experiments that our system can be effectively used in static analyzers for both XPath expressions and XMI. type annotations.

Key words: XML,Decision problem,Satisfiabifity-testing

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!