arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1012.3311cs.DScs.DB
收藏

在带有外部存储器的流模型中验证XML文档

Validating XML Documents in the Streaming Model with External Memory

Christian Konrad, Frederic Magniez

摘要:

我们研究的问题验证XML文档的大小$N$对一般的DTD的流算法的上下文中。这项工作的出发点是一个众所周知的空间下界。有些XML文档和DTD的$p$ -pass流算法需要$Ω(N/p)$空间.我们表明,当允许访问外部存储器,有一个确定性的流算法,解决了这个问题的内存空间$O(\log^2 N)$,一个恒定数量的辅助读/写流,和$O(\log N)$总数量的通过XML文档和辅助流。该算法的一个重要中间步骤是以流的方式计算初始XML文档的第一子下兄弟(FCNS)编码。我们独立研究这个问题,我们还提供了内存高效的流算法解码的XML文档中的FCNS编码。此外,在没有外部存储器的情况下,可以使用次线性存储器来验证在通常的流模型中编码二叉树的XML文档。有一种使用$O(\sqrt{N \log N})$空间的一次通过算法和一种使用$O(\log^2 N)$空间的双向两次通过算法执行此任务。

英文摘要:

We study the problem of validating XML documents of size $N$ against general DTDs in the context of streaming algorithms. The starting point of this work is a well-known space lower bound. There are XML documents and DTDs for which $p$-pass streaming algorithms require $Ω(N/p)$ space. We show that when allowing access to external memory, there is a deterministic streaming algorithm that solves this problem with memory space $O(\log^2 N)$, a constant number of auxiliary read/write streams, and $O(\log N)$ total number of passes on the XML document and auxiliary streams. An important intermediate step of this algorithm is the computation of the First-Child-Next-Sibling (FCNS) encoding of the initial XML document in a streaming fashion. We study this problem independently, and we also provide memory efficient streaming algorithms for decoding an XML document given in its FCNS encoding. Furthermore, validating XML documents encoding binary trees in the usual streaming model without external memory can be done with sublinear memory. There is a one-pass algorithm using $O(\sqrt{N \log N})$ space, and a bidirectional two-pass algorithm using $O(\log^2 N)$ space performing this task.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑