MSO queries on tree decomposable structures are computable with linear delay

  • Authors:
  • Guillaume Bagan

  • Affiliations:
  • GREYC, Université de Caen, Caen, France

  • Venue:
  • CSL'06 Proceedings of the 20th international conference on Computer Science Logic
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

Linear-Delaylin is the class of enumeration problems computable in two steps: the first step is a precomputation in linear time in the size of the input and the second step computes successively all the solutions with a delay between two consecutive solutions y1 and y2 that is linear in |y2|. We prove that evaluating a fixed monadic second order (MSO) query $\varphi(\bar{X})$ (i.e. computing all the tuples that satisfy the MSO formula) in a binary tree is a Linear-Delaylin problem. More precisely, we show that given a binary tree T and a tree automaton Γ representing an MSO query $\varphi(\bar{X})$, we can evaluate Γ on T with a preprocessing in time and space complexity O(|Γ|3|T|) and an enumeration phase with a delay O(|S|) and space O(max|S|) where |S| is the size of the next solution and max|S| is the size of the largest solution. We introduce a new kind of algorithm with nice complexity properties for some algebraic operations on enumeration problems. In addition, we extend the precomputation (with the same complexity) such that the ith (with respect to a certain order) solution S is produced directly in time O(|S|log(|T|)). Finally, we generalize these results to bounded treewidth structures.