APPENDICES and SUPPLEMENTS
|
|
Online appendix to designing mediation for context-aware applications. The appendix supports the information on page 1215.
|
ABSTRACT
This article studies the complexity of evaluating functional query languages for complex values such as monad algebra and the recursion-free fragment of XQuery. We show that monad algebra, with equality restricted to atomic values, is complete for the class TA[2O(n), O(n)] of problems solvable in linear exponential time with a linear number of alternations if the query is assumed to be part of the input. The monotone fragment of monad algebra with atomic value equality but without negation is NEXPTIME-complete. For monad algebra with deep value equality, that is, equality of complex values, we establish TA[2O(n), O(n)] lower and exponential-space upper bounds. We also study a fragment of XQuery, Core XQuery, that seems to incorporate all the features of a query language on complex values that are traditionally deemed essential. A close connection between monad algebra on lists and Core XQuery (with “child” as the only axis) is exhibited. The two languages are shown expressively equivalent up to representation issues. We show that Core XQuery is just as hard as monad algebra with respect to query and combined complexity. As Core XQuery is NEXPTIME-hard, the best-known techniques for processing such problems require exponential amounts of working memory and doubly exponential time in the worst case. We present a property of queries---the lack of a certain form of composition---that virtually all real-world XQueries have and that allows for query evaluation in PSPACE and thus singly exponential time. Still, we are able to show for an important special case---Core XQuery with equality testing restricted to atomic values---that the composition-free language is just as expressive as the language with composition. Thus, under widely-held complexity-theoretic assumptions, the language with composition is an exponentially more succinct version of the composition-free language.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
|
| |
3
|
|
| |
4
|
|
| |
5
|
Benedikt, M. and Koch, C. 2006. Interpreting tree-to-tree queries. In Proc. ICALP.
|
| |
6
|
Berman, L. 1980. The complexity of logical theories. Theor. Comput. Sci. 11, 216--224.
|
| |
7
|
|
 |
8
|
|
 |
9
|
|
 |
10
|
|
| |
11
|
|
 |
12
|
|
| |
13
|
|
 |
14
|
|
| |
15
|
|
| |
16
|
Fernandez, M. F. and Siméon, J. 2004. Building an extensible XQuery engine: Experiences with Galax. (Extended Abstract). In Proceedings of XML Database Symposium (XSYM'04). Toronto, Canada, 1--4.
|
| |
17
|
Ferrante, J. and Rackoff, C. 1975. A decision procedure for the first order theory of real addition with order. SIAM J. Comput. 4, 1, 69--76.
|
| |
18
|
Florescu, D., Hillery, C., Kossmann, D., Lucas, P., Riccardi, F., Westmann, T., Carey, M. J., Sundararajan, A., and Agrawal, G. 2003. The BEA/XQRL streaming XQuery processor. In Proceedings of Very Large Data Bases. 997--1008.
|
 |
19
|
|
| |
20
|
|
 |
21
|
|
| |
22
|
|
| |
23
|
|
| |
24
|
Hartmanis, J., Lewis II, P. M., and Stearns, R. E. 1965. Hierarchies of memory limited computations. In Proceedings of the 6th Annual IEEE Symposium on Switching Circuit Theory and Logical Design. 179--190.
|
| |
25
|
Hidders, J., Paredaens, J., Verkammen, R., and Demeyer, S. 2004. A light but formal introduction to XQuery. In Proceedings of XML Database Symposium (XSYM). 5--20.
|
 |
26
|
Richard Hull , Jianwen Su, On accessing object-oriented databases: expressive power, complexity, and restrictions, Proceedings of the 1989 ACM SIGMOD international conference on Management of data, p.147-158, June 1989, Portland, Oregon, United States
|
| |
27
|
|
 |
28
|
|
| |
29
|
|
 |
30
|
|
| |
31
|
Koch, C. 2005b. On the role of composition in XQuery. In Proceedings of WebDB. Baltimore, MD.
|
| |
32
|
Koch, C., Scherzinger, S., Schweikardt, N., and Stegmaier, B. 2004. Schema-based scheduling of event processors and buffer minimization for queries on structured data streams. In Proceedings of the International Conference on Very Large Data Bases. Toronto, Canada.
|
| |
33
|
|
 |
34
|
|
| |
35
|
|
| |
36
|
Ludäscher, B., Mukhopadhyay, P., and Papakonstantinou, Y. 2002. A transducer-based XML query processor. In Proceedings of the International Conference on Very Large Data Bases. Hong Kong, China, 227--238.
|
| |
37
|
Marian, A. and Siméon, J. 2003. Projecting XML documents. In Proceedings of the International Conference on Very Large Data Bases. 213--224.
|
| |
38
|
Papadimitriou, C. H. 1994. Computational Complexity. Addison-Wesley.
|
 |
39
|
|
| |
40
|
Stockmeyer, L. J. 1974. The complexity of decision problems in automata theory. Ph.D. thesis, Department of Electrical Engineering, MIT, Cambridge, MA.
|
| |
41
|
|
| |
42
|
|
 |
43
|
|
 |
44
|
|
| |
45
|
Voronkov, A. 2004. Personal communication.
|
| |
46
|
|
| |
47
|
World Wide Web Consortium. 2005. XQuery 1.0 and XPath 2.0 Formal Semantics. W3C Candidate Recommendation (Nov.). http://www.w3.org/TR/xquery-semantics/.
|
| |
48
|
XQueryUseCases 2005. XML query use cases. W3C Working Draft (Sept.). http://www.w3.org/TR/xquery-use-cases/.
|
|