Complexity and Optimization Issues in Constraint Query Languages
Oscar H Ibarra and Jianwen Su
Department of Computer Science
University of California at Santa Barbara
Contact Information
Jianwen Su
Department of Computer Science
University of California
Santa Barbara, CA 93106
Phone: (805) 893-3698
Fax : (805) 893-8553
Email: su@cs.ucsb.edu
WWW PAGE
http://www.cs.ucsb.edu/~su/cdb/
Keywords
Constraint databases, optimization, query languages, spatial databases,
complexity
Project Award Information
August 1997 - July 2000, $341,396, "Complexity and Optimization Issues
in Constraint Query Languages".
Project Summary
This project focuses on three problem areas concerning linear constraint
query languages. Constraint database systems integrate database technology
with constraint solving techniques to deal with applications involving
spatial or geographical datasets and arithmetic computations. Linear constraint
databases are generally represented by quantifier-free logical formulas
over some arithmetical domain such as the real numbers (the real closed
field) with addition. Conceptually, constraint queries are evaluated in
closed form using quantifier elimination algorithms. The first part of
this project aims at developing efficient query evaluation algorithms for
linear or dense order constraint queries and syntactic forms for representing
constraint databases so that efficient query evaluation becomes possible.
The second part aims at showing the complexity of decision problems concerning
constraint query languages including query containment, equivalence, satisfiability,
and disjointness using a new technique based on abstract machines. The
third part aims at developing incremental evaluation techniques for recursive
(non-first-order) and topological queries. This project will provide complexity
results and efficient algorithms as a theoretical foundation for the design
of constraint database models, query languages, and systems.
Goals, Objectives, and Targeted Activities
To investigate complexity issues related to constraint query languages,
query evaluation and the equivalence and
containment of queries; and to develop efficient query evaluation algorithms
and optimization techniques.
Project References
-
Stéphane Grumbach, Jianwen Su: Finitely Representable Databases.
JCSS 55(2): 273-298 (1997)
-
Stéphane Grumbach, Jianwen Su: Queries with Arithmetical Constraints.
TCS 173(1): 151-181 (1997)
-
Stéphane Grumbach, Jianwen Su: Towards Practical Constraint Databases.
PODS 1996: 28-39
-
Stéphane Grumbach, Jianwen Su: Dense-Order Constraint Databases.
PODS 1995: 66-77
-
Oscar H. Ibarra, Jianwen Su: On the Containment and Equivalence of Database
Queries with Linear Constraints (extended abstract). PODS 1997: 32-43
-
Oscar H. Ibarra, Jianwen Su: On the Containment and Equivalence of Database
Queries with Linear Constraints, Technical Report, UCSB, Dec. 1997.
Area Background
Constraint databases and query languages were introduced by Kanellakis,Kuper,
and Revesz. They combine techniques from database systems with constraint
solving techniques to deal with applications involving spatial or geographical
datasets and arithmetic computations. Constraint databases generalize the
relations of the relational model by defining generalized tuples as conjunctions
of constraints. For instance, the formula x2+y2=1
and x<=0 defines a binary generalized tuple. A generalized,
or finitely representable, relation is then a finite set (disjunction)
of such tuples. In the real plane for instance, it results in an infinite
set of points, or tuples, over R2.
The relational calculus over such relations constitutes a constraint query
language. Similar to the relational model, equivalent algebras can
also be defined. The fundamental property here is
that the relational calculus can be used as a query language as soon
as the constraints are based on a decidable theory which admits the elimination
of quantifiers. The evaluation of a (first-order) query is then done
by quantifier elimination.
Area References
Introduction to constraint databases:
-
Paris C. Kanellakis, Gabriel M. Kuper, Peter Z. Revesz: Constraint Query
Languages. JCSS 51(1): 26-52 (1995)
-
Paris C. Kanellakis: Constraint Programming and Database Languages: A Tutorial.
PODS 1995: 46-53
-
Stéphane Grumbach, Jianwen Su: Finitely Representable Databases.
JCSS 55(2): 273-298 (1997)
-
Jan Paredaens, Jan Van den Bussche, Dirk Van Gucht: Towards a Theory of
Spatial Database Queries. PODS 1994: 279-288
Expressiver Power and Complexity:
-
Stéphane Grumbach, Jianwen Su: Finitely Representable Databases.
JCSS 55(2): 273-298 (1997)
-
Stéphane Grumbach, Jianwen Su: Queries with Arithmetical Constraints.
TCS 173(1): 151-181 (1997)
-
Jan Paredaens, Jan Van den Bussche, Dirk Van Gucht: First-order Queries
on Finite Structures over the Reals. LICS 1995: 79-87
-
Michael Benedikt, Guozhu Dong, Leonid Libkin, Limsoon Wong: Relational
Expressive Power of Constraint Query Languages. PODS 1996: 5-16
-
Marc Gyssens, Jan Van den Bussche, Dirk Van Gucht: Complete Geometrical
Query Languages. PODS 1997: 62-67
-
Stéphane Grumbach, Gabriel Kuper: Tractable Recursion over Geometric
Data. CP 1997: 450-462
-
Foto N. Afrati, Stavros S. Cosmadakis, Stéphane Grumbach, Gabriel
M. Kuper: Linear vs Polynomial Constraints in Database Query Languages.
PPCP 1994: 181-192
Issues in Constraint Query Languages:
-
Dina Q. Goldin, Paris C. Kanellakis: On Similarity Queries for Time-Series
Data: Constraint Specification and Implementation. CP 1995: 137-153
-
Peter Haunold, Stéphane Grumbach, Gabriel Kuper, Zoé Lacroix:
Linear Constraints: Geometric Objects Represented by Inequalities. COSIT
1997: 429-440
-
Jan Chomicki, Dina Q. Goldin, Gabriel M. Kuper: Variable Independence and
Aggregation Closure. PODS 1996: 40-48
-
Jan Chomicki, Gabriel M. Kuper: Measuring Infinite Relations. PODS 1995:
78-85
-
Gabriel M. Kuper: Aggregation in Constraint Databases. PPCP 1993: 166-173
-
Stéphane Grumbach, Jianwen Su: Towards Practical Constraint Databases.
PODS 1996: 28-39
-
Zoé Lacroix, Stéphane Grumbach: Computing Queries on Linear
Constraint Databases. DBPL 1995: 11
-
Stéphane Grumbach, Jianwen Su: Dense-Order Constraint Databases.
PODS 1995: 66-77
-
Stéphane Grumbach, Philippe Rigaux, Luc Segoufin: The DEDALE System
for Complex Spatial Queries. SIGMOD Conference 1998
-
Oscar H. Ibarra, Jianwen Su: On the Containment and Equivalence of Database
Queries with Linear Constraints. PODS 1997: 32-43
-
Michael Benedikt, Leonid Libkin: Safe Constraint Queries. PODS 1998
-
Luc Vandeurzen, Marc Gyssens, Dirk Van Gucht: An Expressive Language for
Linear Spatial Database Queries. PODS 1998.
-
Freddy Dumortier, Marc Gyssens, Luc Vandeurzen, Dirk Van Gucht: On the
Decidability of Semi-Linearity of Semi-Algebraic Sets and Its Implications
for Spatial Databases. PODS 1997: 68-77
-
Luc Vandeurzen, Marc Gyssens, Dirk Van Gucht: On Query Languages for Linear
Queries Definable with Polynomial Constraints. CP 1996: 468-481
-
Michael Benedikt, Leonid Libkin: Languages for Relational Databases over
Interpreted Structures. PODS 1997: 87-98
-
Michael Benedikt, Leonid Libkin: On the Structure of Queries in Constraint
Query Languages. LICS 1996: 25-34
Indexing:
-
Paris C. Kanellakis, Sridhar Ramaswamy, Darren Erik Vengroff, Jeffrey Scott
Vitter: Indexing for Data Models with Constraints and Classes. JCSS 52(3):
589-612 (1996)