Queries with arithmetical constraints

被引:34
|
作者
Grumbach, S [1 ]
Su, JW [1 ]
机构
[1] UNIV CALIF SANTA BARBARA,DEPT COMP SCI,SANTA BARBARA,CA 93106
基金
加拿大自然科学与工程研究理事会; 美国国家科学基金会; 美国国家航空航天局;
关键词
D O I
10.1016/S0304-3975(96)00194-6
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In this paper, we study the expressive power and the complexity of first-order logic with arithmetic, as a query language over relational and constraint databases. We consider constraints over various domains (N,Z,Q, and R), and with various arithmetical operations (less than or equal to, +, x, etc.). We first consider the data complexity of first-order queries. We prove in particular that linear queries can be evaluated in AC(0) over finite integer databases, and in NC1 over linear constraint databases. This improves previously known bounds. We also show that over all domains, enough arithmetic lead to arithmetical queries, therefore, showing the frontiers of constraints for database purposes. We then tackle the problem of the expressive power, with the definability of the parity and the connectivity, which are the most classical examples of queries not expressible in first-order logic over finite structures. We prove that these two queries are first-order definable in the presence of (enough) arithmetic. Nevertheless, we show that they are not definable with constraints of interest for constraint databases such as linear constraints for instance. Finally, we developed reduction techniques for queries over constraint databases, that allow us to draw conclusions with respect to their undefinability in various constraint query languages.
引用
收藏
页码:151 / 181
页数:31
相关论文
共 50 条