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 条
  • [1] On the Analysis of Queries with Counting Constraints
    Barcenas, Everardo
    Geneves, Pierre
    Layaida, Nabil
    DOCENG'09: PROCEEDINGS OF THE 2009 ACM SYMPOSIUM ON DOCUMENT ENGINEERING, 2009, : 21 - 24
  • [2] Regular path queries with constraints
    Abiteboul, S
    Vianu, V
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1999, 58 (03) : 428 - 452
  • [3] PREPROCESSING QUERIES WITH SPATIAL CONSTRAINTS
    EGENHOFER, MJ
    PHOTOGRAMMETRIC ENGINEERING AND REMOTE SENSING, 1994, 60 (06): : 783 - 790
  • [4] Reformulation of XML queries and constraints
    Deutsch, A
    Tannen, V
    DATABASE THEORY ICDT 2003, PROCEEDINGS, 2003, 2572 : 225 - 241
  • [5] Completing queries:: Rewriting of incomplete Web queries under schema constraints
    Berger, Sacha
    Bry, Francois
    Furche, Tim
    Haeusler, Andreas J.
    WEB REASONING AND RULE SYSTEMS, PROCEEDINGS, 2007, 4524 : 319 - +
  • [6] Optimization of bound disjunctive queries with constraints
    Greco, G
    Greco, S
    Trubitsyna, I
    Zumpano, E
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2005, 5 (06) : 713 - 745
  • [7] Learning constraints through partial queries
    Bessiere, Christian
    Carbonnel, Clement
    Dries, Anton
    Hebrard, Emmanuel
    Katsirelos, George
    Narodytska, Nina
    Quimper, Claude-Guy
    Stergiou, Kostas
    Tsouros, Dimosthenis C.
    Walsh, Toby
    ARTIFICIAL INTELLIGENCE, 2023, 319
  • [8] Processing distance join queries with constraints
    Papadopoulos, AN
    Nanopoulos, A
    Manolopoulos, Y
    COMPUTER JOURNAL, 2006, 49 (03): : 281 - 296
  • [9] Processing distance join queries with constraints
    Papadopoulos, Apostolos N.
    Nanopoulos, Alexandros
    Manolopoulos, Yannis
    Computer Journal, 2006, 49 (03): : 281 - 296
  • [10] Safe Datalog queries with linear constraints
    Revesz, PZ
    PRINCIPLES AND PRACTICE OF CONSTRAINT PROGRAMMING - CP98, 1998, 1520 : 355 - 369