DI-UMONS : Dépôt institutionnel de l’université de Mons

Recherche transversale
(titres de publication, de périodique et noms de colloque inclus)
2010-01-01 - Colloque/Article dans les actes avec comité de lecture - Anglais - 14 page(s)

Bagan Guillaume, Durand Arnaud, Filiot Emmanuel, Gauwin Olivier, "Efficient Enumeration for Conjunctive Queries over X-underbar Structures" in 19th EACSL Annual Conference on Computer Science Logic (CSL'10), 6247, 80-94, Brno, République tchèque, 2010

  • Codes CREF : Théorie des algorithmes (DI1164)
  • Unités de recherche UMONS : Informatique théorique (S829)

Abstract(s) :

(Anglais) We investigate efficient enumeration algorithms for conjunctive queries for databases over binary relations that satisfy the X-underbar property. Tree-like relations such as XPath axes or grids are natural examples of such relations. We first show that the result of an n-ary conjunctive query Q over an X-underbar structure S can be enumerated with a delay in O(n.|S|.|Q|) between two consecutive n-tuples. Then, we consider acyclic conjunctive queries and show that such queries admit an enumeration algorithm with delay O(|Q|.|D|) and a preprocessing in O(|Q|.|S|) where D is the domain of S. The delay can even be improved to O(n.|D|) with a slightly more expensive preprocessing step. As an application of our method, we also show that any n-ary XPath acyclic conjunctive query Q over an unranked tree t can be enumerated with a preprocessing and delay O(|Q|.|t|). In the second part of the paper, we consider conjunctive queries with possible inequalities between variables. In this case, we show that query evaluation is NP-hard and, unless P=NP, these queries do not admit enumeration algorithms with a combined polynomial time delay. However, we also show that hardness relies only on the number l of variables that appear in inequalities. We propose efficient enumeration procedures for acyclic and general conjunctive queries whose delay is exponential in l but polynomial (even quasi-linear) in |Q| and |S|.

Identifiants :
  • DOI : 10.1007/978-3-642-15205-4_10