Constraint Programming and Database Query Languages 1 from Constraint Programming to Database Querying 1.1 Declarative Programming with Constraints
نویسندگان
چکیده
The declarative programming paradigms used in constraint languages can lead to powerful extensions of Codd's relational data model. The development of constraint database query languages from logical database query languages has many similarities with the development of constraint logic programming from logic programming, but with the additional requirements of data eecient, set-at-a-time, and bottom-up evaluation. In this overview of constraint query languages (CQLs) we rst present the framework of 41]. The principal idea is that: \the k-tuple (or record) data type can be generalized by a conjunction of quantiier-free constraints over k variables". The generalization must preserve various language properties of the relational data model, e.g., the calculus/algebra equivalence, and have time complexity polynomial in the size of the data. We next present an algebra for dense order constraints that is simpler to evaluate than the calculus described in 41], and we sharpen some of the related data complexity bounds. We note that CQLs are applicable to spatial databases. This is because these languages have \spatial point set" as the semantics of their record data type and because existing multi-dimensional searching data structures can support I/O eecient access to sets of records. Finally, we observe that CQLs can be augmented with complex object data types, aggregate operations, and null-values, just like the relational data model. Constraint programming paradigms are inherently declarative, since they implicitly describe computations by specifying how these computations are constrained. Programming with constraints as primitives (or constraint programming) is appealing because constraints are the normal language of discourse for many high-level applications. Pioneering work in constraint programming goes back to the early 1960's, e.g., Sutherland's SKETCHPAD 67]. The theme has been investigated since the 1970's, e. The relevant literature and contributions are too large to attempt a survey. Instead we will limit our exposition to recent applications in databases.
منابع مشابه
Declarative constraint modelling and specification-level reasoning
Declarative problem modelling is becoming the new challenge for constraint programming. However, in current systems, the efficiency of computation may be strongly affected in several ways. First of all, different but equivalent models for the same problem do, in general, exist, and choosing one of them can make the difference. Secondly, the role played by the search strategy to be followed when...
متن کاملComparing Mixed-Integer and Constraint Programming for the No-Wait Flow Shop Problem with Due Date Constraints
The impetus for this research was examining a flow shop problem in which tasks were expected to be successively carried out with no time interval (i.e., no wait time) between them. For this reason, they should be completed by specific dates or deadlines. In this regard, the efficiency of the models was evaluated based on makespan. To solve the NP-Hard problem, we developed two mathematical mode...
متن کامل{41 () Constraint Query Algebras
Constraint query languages are natural extensions of relational database query languages. A framework for their declarative speciication (constraint calculi) and eecient implementation (low data complexity and secondary storage indexing) was presented in Kanellakis et al., 1995. Constraint query algebras form a procedural language layer between high-level declarative calculi and low-level index...
متن کاملQuery Evaluation in Constraint Databases ( Tutorial Proposal )
DatabasesImages of Concrete DatabasesConcrete Databases'&$%'$'&$%D1:R = f(a; 1); (a; 2);(a; 3); : : : g'(D1):'(D1) = f(a; 1); (a; 2);: : : ; (a; 9)g' = R(x; y) ^ y < 10-f(a; 1 t)gf(a; 1 t 5);(a; 3 t) gf(a; 1 t 9)gf(a; 1 t 5);(a; 3 t 9) geval(')(E1) -eval(')(E2) -6kE1k 6kE2k6k:k 6k:kE1...
متن کاملConvex Generalized Semi-Infinite Programming Problems with Constraint Sets: Necessary Conditions
We consider generalized semi-infinite programming problems in which the index set of the inequality constraints depends on the decision vector and all emerging functions are assumed to be convex. Considering a lower level constraint qualification, we derive a formula for estimating the subdifferential of the value function. Finally, we establish the Fritz-John necessary optimality con...
متن کامل