EDP Sciences Journals List
Issue RAIRO-Theor. Inf. Appl.
Volume 42, Number 1, January-March 2008
A nonstandard spirit among computer scientists:
a tribute to Serge Grigorieff at the occasion of his 60th birthday
Page(s) 147 - 164
DOI 10.1051/ita:2007046
Published online 18 January 2008

RAIRO-Theor. Inf. Appl. 42, 147-164 (2008)
DOI: 10.1051/ita:2007046

Computing the jth solution of a first-order query

Guillaume Bagan1, Arnaud Durand2, Etienne Grandjean1 and Frédéric Olive3

1  GREYC, Université de Caen, ENSICAEN, CNRS, Campus 2, 14032 Caen Cedex, France; gbagan@info.unicaen.fr; grandjean@info.unicaen.fr
2  Équipe de Logique Mathématique, Université Denis Diderot, CNRS UMR 7056, 2 place Jussieu, 75251 Paris Cedex 05, France; durand@logique.jussieu.fr
3  LIF, Université Aix-Marseille 1, CNRS, 39 rue Joliot Curie, 13453 Marseille Cedex 13, France; frederic.olive@lif.univ-mrs.fr


(Published online: 18 January 2008)

Abstract
We design algorithms of "optimal" data complexity for several natural problems about first-order queries on structures of bounded degree. For that purpose, we first introduce a framework to deal with logical or combinatorial problems $R\subset I\times O$ whose instances $x\in I$ may admit of several solutions $R(x) = \{y\in O: (x,y) \in R\}$. One associates to such a problem several specific tasks: compute a random (for the uniform probability distribution) solution $y \in R(x)$; enumerate without repetition each solution yj in some specific linear order $y_0 <y_1 < \ldots <y_{n-1}$ where $R(x)=\{y_0,\dots,y_{n-1}\}$; compute the solution yj of rank j in the linear order <. Algorithms of "minimal" data complexity are presented for the following problems: given any first-order formula $\varphi(\bar{v})$ and any structure S of bounded degree: (1) compute a random element of $\varphi(S)=\{\bar{a}: (S,\bar{a})\models\varphi(\bar{v})\}$; (2) compute the jth element of $\varphi(S)$ for some linear order of $\varphi(S)$; (3) enumerate the elements of $\varphi(S)$ in lexicographical order. More precisely, we prove that, for any fixed formula $\varphi$, the above problem (1) (resp. (2), (3)) can be computed within average constant time (resp. within constant time, with constant delay) after a linear (O(|S|)) precomputation. Our essential tool for deriving those complexity results is a normalization procedure of first-order formulas on bijective structures.


Mathematics Subject Classification. 68Q15, 68Q19

Key words: Complexity of enumeration -- first-order queries -- structures of bounded degree -- linear time -- constant time -- constant delay


© EDP Sciences 2007


What is OpenURL?

The OpenURL standard is a protocol for transmission of metadata describing the resource that you wish to access. An OpenURL link contains article metadata and directs it to the OpenURL server of your choice. The OpenURL server can provide access to the resource and also offer complementary services (specific search engine, export of references...). The OpenURL link can be generated by different means.
  • If your librarian has set up your subscription with an OpenURL resolver, OpenURL links appear automatically on the abstract pages.
  • You can define your own OpenURL resolver with your EDPS Account. In this case your choice will be given priority over that of your library.
  • You can use an add-on for your browser (Firefox or I.E.) to display OpenURL links on a page (see http://www.openly.com/openurlref/). You should disable this module if you wish to use the OpenURL server that you or your library have defined.