Skip to main content
Erschienen in: Theory of Computing Systems 5/2020

10.05.2019

A More General Theory of Static Approximations for Conjunctive Queries

verfasst von: Pablo Barceló, Miguel Romero, Thomas Zeume

Erschienen in: Theory of Computing Systems | Ausgabe 5/2020

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Conjunctive query (CQ) evaluation is NP-complete, but becomes tractable for fragments of bounded hypertreewidth. Approximating a hard CQ by a query from such a fragment can thus allow for an efficient approximate evaluation. While underapproximations (i.e., approximations that return correct answers only) are well-understood, the dual notion of overapproximations (i.e, approximations that return complete – but not necessarily sound – answers), and also a more general notion of approximation based on the symmetric difference of query results, are almost unexplored. In fact, the decidability of the basic problems of evaluation, identification, and existence of those approximations has been open. This article establishes a connection between overapproximations and existential pebble games that allows for studying such problems systematically. Building on this connection, it is shown that the evaluation and identification problem for overapproximations can be solved in polynomial time. While the general existence problem remains open, the problem is shown to be decidable in 2EXPTIME over the class of acyclic CQs and in PTIME for Boolean CQs over binary schemata. Additionally we propose a more liberal notion of overapproximations to remedy the known shortcoming that queries might not have an overapproximation, and study how queries can be overapproximated in the presence of tuple generating and equality generating dependencies. The techniques are then extended to symmetric difference approximations and used to provide several complexity results for the identification, existence, and evaluation problem for this type of approximations.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Anhänge
Nur mit Berechtigung zugänglich
Fußnoten
1
Recall that the symmetric difference between sets A and B is (AB) ∪ (BA).
 
Literatur
1.
Zurück zum Zitat Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison-Wesley, Boston (1995)MATH Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison-Wesley, Boston (1995)MATH
2.
Zurück zum Zitat Baader, F., Calvanese, D., McGuinness, D.L., Nardi, D., Patel-schneider, P.F. (eds.): The Description Logic Handbook: Theory, Implementation, and Applications. Cambridge University Press, Cambridge (2003) Baader, F., Calvanese, D., McGuinness, D.L., Nardi, D., Patel-schneider, P.F. (eds.): The Description Logic Handbook: Theory, Implementation, and Applications. Cambridge University Press, Cambridge (2003)
3.
Zurück zum Zitat Bárány, V., Gottlob, G., Otto, M.: Querying the guarded fragment. Logical Methods in Computer Science 10(2) (2014) Bárány, V., Gottlob, G., Otto, M.: Querying the guarded fragment. Logical Methods in Computer Science 10(2) (2014)
4.
Zurück zum Zitat Barceló, P.: Querying graph databases. In: PODS, pp. 175–188 (2013) Barceló, P.: Querying graph databases. In: PODS, pp. 175–188 (2013)
5.
Zurück zum Zitat Barceló, P., Gottlob, G., Pieris, A.: Semantic acyclicity under constraints. In: PODS, pp. 343–354 (2016) Barceló, P., Gottlob, G., Pieris, A.: Semantic acyclicity under constraints. In: PODS, pp. 343–354 (2016)
6.
Zurück zum Zitat Barceló, P., Libkin, L., Romero, M.: Efficient approximations of conjunctive queries. In: PODS, pp. 249–260 (2012) Barceló, P., Libkin, L., Romero, M.: Efficient approximations of conjunctive queries. In: PODS, pp. 249–260 (2012)
7.
Zurück zum Zitat Barceló, P., Libkin, L., Romero, M.: Efficient approximations of conjunctive queries. SIAM J. Comput. 43(3), 1085–1130 (2014)MathSciNetCrossRef Barceló, P., Libkin, L., Romero, M.: Efficient approximations of conjunctive queries. SIAM J. Comput. 43(3), 1085–1130 (2014)MathSciNetCrossRef
8.
Zurück zum Zitat Barceló, P., Romero, M., Vardi, M.Y.: Semantic acyclicity on graph databases. SIAM J. Comput. 45(4), 1339–1376 (2016)MathSciNetCrossRef Barceló, P., Romero, M., Vardi, M.Y.: Semantic acyclicity on graph databases. SIAM J. Comput. 45(4), 1339–1376 (2016)MathSciNetCrossRef
9.
Zurück zum Zitat Blumensath, A., Otto, M., Weyer, M.: Decidability results for the boundedness problem. Logical Methods in Computer Science 10(3) (2014) Blumensath, A., Otto, M., Weyer, M.: Decidability results for the boundedness problem. Logical Methods in Computer Science 10(3) (2014)
10.
Zurück zum Zitat Calì, A., Gottlob, G., Kifer, M.: Taming the infinite chase: Query answering under expressive relational constraints. In: KR, pp. 70–80 (2008) Calì, A., Gottlob, G., Kifer, M.: Taming the infinite chase: Query answering under expressive relational constraints. In: KR, pp. 70–80 (2008)
11.
Zurück zum Zitat Chandra, A.K., Merlin, P.M.: Optimal implementation of conjunctive queries in relational data bases. In: STOC, pp. 77–90 (1977) Chandra, A.K., Merlin, P.M.: Optimal implementation of conjunctive queries in relational data bases. In: STOC, pp. 77–90 (1977)
12.
Zurück zum Zitat Chekuri, C., Rajaraman, A.: Conjunctive query containment revisited. Theor. Comput. Sci. 239(2), 211–229 (2000)MathSciNetCrossRef Chekuri, C., Rajaraman, A.: Conjunctive query containment revisited. Theor. Comput. Sci. 239(2), 211–229 (2000)MathSciNetCrossRef
13.
Zurück zum Zitat Chen, H., Dalmau, V.: Beyond hypertree width: decomposition methods without decompositions. In: CP, pp. 167–181 (2005) Chen, H., Dalmau, V.: Beyond hypertree width: decomposition methods without decompositions. In: CP, pp. 167–181 (2005)
14.
Zurück zum Zitat Cosmadakis, S.S., Gaifman, H., Kanellakis, P.C., Vardi, M.Y.: Decidable optimization problems for database logic programs (Preliminary Report). In: STOC, pp. 477–490 (1988) Cosmadakis, S.S., Gaifman, H., Kanellakis, P.C., Vardi, M.Y.: Decidable optimization problems for database logic programs (Preliminary Report). In: STOC, pp. 477–490 (1988)
15.
Zurück zum Zitat Dalmau, V., Kolaitis, P.G., Vardi, M.Y.: Constraint satisfaction, bounded treewidth, and finite-variable logics. In: CP, pp. 310–326 (2002) Dalmau, V., Kolaitis, P.G., Vardi, M.Y.: Constraint satisfaction, bounded treewidth, and finite-variable logics. In: CP, pp. 310–326 (2002)
16.
Zurück zum Zitat Deutsch, A., Nash, A., Remmel, J.B.: The chase revisisted. In: PODS, pp. 149–158 (2008) Deutsch, A., Nash, A., Remmel, J.B.: The chase revisisted. In: PODS, pp. 149–158 (2008)
17.
Zurück zum Zitat Fagin, R.: A normal form for relational databases that is based on domains and keys. ACM Trans. Database Syst. 6(3), 387–415 (1981)CrossRef Fagin, R.: A normal form for relational databases that is based on domains and keys. ACM Trans. Database Syst. 6(3), 387–415 (1981)CrossRef
18.
Zurück zum Zitat Fagin, R., Kolaitis, P.G., Miller, R.J., Popa, L.: Data exchange: Semantics and query answering. Theor. Comput. Sci. 336(1), 89–124 (2005)MathSciNetCrossRef Fagin, R., Kolaitis, P.G., Miller, R.J., Popa, L.: Data exchange: Semantics and query answering. Theor. Comput. Sci. 336(1), 89–124 (2005)MathSciNetCrossRef
19.
Zurück zum Zitat Fan, W., Li, J., Ma, S., Tang, N., Wu, Y., Wu, Y.: Graph pattern matching: From intractable to polynomial time. PVLDB 3(1), 264–275 (2010) Fan, W., Li, J., Ma, S., Tang, N., Wu, Y., Wu, Y.: Graph pattern matching: From intractable to polynomial time. PVLDB 3(1), 264–275 (2010)
20.
Zurück zum Zitat Fink, R., Olteanu, D.: On the optimal approximation of queries using tractable propositional languages. In: ICDT, pp. 174–185 (2011) Fink, R., Olteanu, D.: On the optimal approximation of queries using tractable propositional languages. In: ICDT, pp. 174–185 (2011)
21.
Zurück zum Zitat Fischl, W., Gottlob, G., Pichler, R.: General and fractional hypertree decompositions: hard and easy cases. In: PODS, pp. 17–32 (2018) Fischl, W., Gottlob, G., Pichler, R.: General and fractional hypertree decompositions: hard and easy cases. In: PODS, pp. 17–32 (2018)
22.
Zurück zum Zitat Gaifman, H., Mairson, H.G., Sagiv, Y., Vardi, M.Y.: Undecidable optimization problems for database logic programs. J. ACM 40(3), 683–713 (1993)MathSciNetCrossRef Gaifman, H., Mairson, H.G., Sagiv, Y., Vardi, M.Y.: Undecidable optimization problems for database logic programs. J. ACM 40(3), 683–713 (1993)MathSciNetCrossRef
23.
Zurück zum Zitat Garofalakis, M., Gibbon, P.: Approximate query processing: taming the terabytes. In: VLDB, p. 725 (2001) Garofalakis, M., Gibbon, P.: Approximate query processing: taming the terabytes. In: VLDB, p. 725 (2001)
24.
Zurück zum Zitat Gottlob, G., Greco, G., Leone, N., Scarcello, F.: Hypertree decompositions: questions and answers. In: PODS, pp. 57–74 (2016) Gottlob, G., Greco, G., Leone, N., Scarcello, F.: Hypertree decompositions: questions and answers. In: PODS, pp. 57–74 (2016)
25.
Zurück zum Zitat Gottlob, G., Leone, N., Scarcello, F.: Hypertree decompositions and tractable queries. J. Comput. Syst. Sci. 64(3), 579–627 (2002)MathSciNetCrossRef Gottlob, G., Leone, N., Scarcello, F.: Hypertree decompositions and tractable queries. J. Comput. Syst. Sci. 64(3), 579–627 (2002)MathSciNetCrossRef
26.
Zurück zum Zitat Gottlob, G., Miklós, Z., Schwentick, T.: Generalized hypertree decompositions: NP-hardness and tractable variants. J ACM 56(6), 30:1–30:32 (2009) Gottlob, G., Miklós, Z., Schwentick, T.: Generalized hypertree decompositions: NP-hardness and tractable variants. J ACM 56(6), 30:1–30:32 (2009)
27.
Zurück zum Zitat Greco, G., Scarcello, F.: The power of local consistency in conjunctive queries and constraint satisfaction problems. SIAM J. Comput. 46(3), 1111–1145 (2017)MathSciNetCrossRef Greco, G., Scarcello, F.: The power of local consistency in conjunctive queries and constraint satisfaction problems. SIAM J. Comput. 46(3), 1111–1145 (2017)MathSciNetCrossRef
28.
Zurück zum Zitat Grohe, M., Marx, D.: Constraint solving via fractional edge covers. In: SODA, pp. 289–298 (2006) Grohe, M., Marx, D.: Constraint solving via fractional edge covers. In: SODA, pp. 289–298 (2006)
30.
Zurück zum Zitat Hell, P., Nesetril, J., Zhu, X.: Complexity of tree homomorphisms. Discret. Appl. Math. 70(1), 23–36 (1996)MathSciNetCrossRef Hell, P., Nesetril, J., Zhu, X.: Complexity of tree homomorphisms. Discret. Appl. Math. 70(1), 23–36 (1996)MathSciNetCrossRef
31.
Zurück zum Zitat Hell, P., Nešeťril, J.: Graphs and Homomorphisms. Oxford University Press, Oxford (2004)CrossRef Hell, P., Nešeťril, J.: Graphs and Homomorphisms. Oxford University Press, Oxford (2004)CrossRef
32.
Zurück zum Zitat Ioannidis, Y.: Approximations in database systems. In: ICDT, pp. 16–30 (2003) Ioannidis, Y.: Approximations in database systems. In: ICDT, pp. 16–30 (2003)
33.
Zurück zum Zitat Kolaitis, P.G., Panttaja, J.: On the complexity of existential pebble games. In: CSL, pp. 314–329 (2003) Kolaitis, P.G., Panttaja, J.: On the complexity of existential pebble games. In: CSL, pp. 314–329 (2003)
34.
Zurück zum Zitat Kolaitis, P.G., Vardi, M.Y.: On the expressive power of datalog: Tools and a case study. J. Comput. Syst. Sci. 51(1), 110–134 (1995)MathSciNetCrossRef Kolaitis, P.G., Vardi, M.Y.: On the expressive power of datalog: Tools and a case study. J. Comput. Syst. Sci. 51(1), 110–134 (1995)MathSciNetCrossRef
35.
Zurück zum Zitat Kolaitis, P.G., Vardi, M.Y.: Conjunctive-query containment and constraint satisfaction. J. Comput. Syst. Sci. 61(2), 302–332 (2000)MathSciNetCrossRef Kolaitis, P.G., Vardi, M.Y.: Conjunctive-query containment and constraint satisfaction. J. Comput. Syst. Sci. 61(2), 302–332 (2000)MathSciNetCrossRef
36.
Zurück zum Zitat Liu, Q.: Approximate query processing. In: Encyclopedia of Database Systems, pp 113–119 (2009) Liu, Q.: Approximate query processing. In: Encyclopedia of Database Systems, pp 113–119 (2009)
37.
Zurück zum Zitat Maier, D., Mendelzon, A.O., Sagiv, Y.: Testing implications of data dependencies. ACM Trans. Database Syst. 4(4), 455–469 (1979)CrossRef Maier, D., Mendelzon, A.O., Sagiv, Y.: Testing implications of data dependencies. ACM Trans. Database Syst. 4(4), 455–469 (1979)CrossRef
38.
Zurück zum Zitat Otto, M.: The boundedness problem for monadic universal first-order logic. In: LICS, pp. 37–48 (2006) Otto, M.: The boundedness problem for monadic universal first-order logic. In: LICS, pp. 37–48 (2006)
39.
Zurück zum Zitat Papadimitriou, C.H., Yannakakis, M.: On the complexity of database queries. J. Comput. Syst. Sci. 58(3), 407–427 (1999)MathSciNetCrossRef Papadimitriou, C.H., Yannakakis, M.: On the complexity of database queries. J. Comput. Syst. Sci. 58(3), 407–427 (1999)MathSciNetCrossRef
40.
Zurück zum Zitat Yannakakis, M.: Algorithms for acyclic database schemes. In: VLDB, pp. 82–94 (1981) Yannakakis, M.: Algorithms for acyclic database schemes. In: VLDB, pp. 82–94 (1981)
Metadaten
Titel
A More General Theory of Static Approximations for Conjunctive Queries
verfasst von
Pablo Barceló
Miguel Romero
Thomas Zeume
Publikationsdatum
10.05.2019
Verlag
Springer US
Erschienen in
Theory of Computing Systems / Ausgabe 5/2020
Print ISSN: 1432-4350
Elektronische ISSN: 1433-0490
DOI
https://doi.org/10.1007/s00224-019-09924-0

Weitere Artikel der Ausgabe 5/2020

Theory of Computing Systems 5/2020 Zur Ausgabe

Premium Partner