Abstract

It has been proved in Frick and Grohe that properties of graphs or other relational structures that are definable in first-order logic can be decided in linear time when the input structures are restricted to come from a {\em locally tree-decomposable} class of structures. Important examples of such classes are the class of planar graphs and classes of graphs of bounded degree. In this paper we consider more general computational problems than decision problems, which are induced by formulas with free variables. In this generalized setting we investigate the construction (find a satisfying assignment), listing (all satisfying assignments) and counting (compute the number of satisfying assignments) problems for formulas of first-order logic. We show that each of these problems can be solved in linear time on locally tree-decomposable classes of structures. For instance, we devise an algorithm that, given a planar graph $\cal G$ and a first-order logic formula $\phi(\barx)$, computes a $\bara \in G$ such that $\cal G \models \phi(\bara)$ in time $f(||\phi||) \cdot ||\cal G||$ for some computable function $f$ (the construction case). Accordingly, we obtain linear time algorithms for the counting and listing cases.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.