Approximate Evaluation of First-Order Counting Queries

Kuske and Schweikardt introduced the very expressive first-order counting logic FOC(P) to model database queries with counting operations. They showed that there is an efficient model-checking algorithm on graphs with bounded degree, while Grohe and Schweikardt showed that probably no such algorithm exists for trees of bounded depth. We analyze the fragment FO({>0}) of this logic. While we remove for example subtraction and comparison between two non-atomic counting terms, this logic remains quite expressive: We allow nested counting and comparison between counting terms and arbitrarily large numbers. Our main result is an approximation scheme of the model-checking problem for FO({>0}) that runs in linear fpt time on structures with bounded expansion. This scheme either gives the correct answer or says "I do not know." The latter answer may only be given if small perturbations in the number-symbols of the formula could make it both satisfied and unsatisfied. This is complemented by showing that exactly solving the model-checking problem for FO({>0}) is already hard on trees of bounded depth and just slightly increasing the expressiveness of FO({>0}) makes even approximation hard on trees.

[1]  Martin Grohe,et al.  The parameterized complexity of database queries , 2001, PODS '01.

[2]  Jaroslav Nesetril,et al.  Sparsity - Graphs, Structures, and Algorithms , 2012, Algorithms and combinatorics.

[3]  Michael R. Fellows,et al.  Fundamentals of Parameterized Complexity , 2013 .

[4]  Juha Nurmonen,et al.  Counting Modulo Quantifiers on Finite Structures , 2000, Inf. Comput..

[5]  J. Nesetril,et al.  Grad and classes with bounded expansion III. restricted dualities , 2005, math/0508325.

[6]  Edward P. K. Tsang,et al.  Guided Local Search for Solving SAT and Weighted MAX-SAT Problems , 2000, Journal of Automated Reasoning.

[7]  Detlef Seese,et al.  Linear time computable problems and first-order descriptions , 1996, Mathematical Structures in Computer Science.

[8]  Martin Grohe,et al.  Descriptive complexity of linear equation systems and applications to propositional proof complexity , 2017, 2017 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS).

[9]  Luc Segoufin,et al.  First-order queries on classes of structures with bounded expansion , 2018, Log. Methods Comput. Sci..

[10]  Jouko Väänänen Unary Quantifiers on Finite Models , 1997, J. Log. Lang. Inf..

[11]  Y. Gurevich On Finite Model Theory , 1990 .

[12]  Martin Grohe,et al.  The complexity of first-order and monadic second-order logic revisited , 2002, Proceedings 17th Annual IEEE Symposium on Logic in Computer Science.

[13]  Martin Grohe,et al.  Algorithmic Meta Theorems , 2008, WG.

[14]  Byungki Cha,et al.  Local Search Algorithms for Partial MAXSAT , 1997, AAAI/IAAI.

[15]  Bruno Courcelle,et al.  Linear Time Solvable Optimization Problems on Graphs of Bounded Clique-Width , 2000, Theory of Computing Systems.

[16]  Nicole Schweikardt,et al.  Enumeration for FO Queries over Nowhere Dense Graphs , 2018, PODS.

[17]  Robin Thomas,et al.  Testing first-order properties for subclasses of sparse graphs , 2011, JACM.

[18]  Blair D. Sullivan,et al.  Structural sparsity of complex networks: Bounded expansion in random models and real-world graphs , 2014, J. Comput. Syst. Sci..

[19]  Alexander Langer,et al.  Evaluation of an MSO-Solver , 2012, ALENEX.

[20]  Martin Grohe,et al.  Deciding first-order properties of nowhere dense graphs , 2013, STOC.

[21]  Omid Amini,et al.  Implicit branching and parameterized partial cover problems , 2011, J. Comput. Syst. Sci..

[22]  Nicole Schweikardt,et al.  Hanf normal form for first-order logic with unary counting quantifiers , 2016, 2016 31st Annual ACM/IEEE Symposium on Logic in Computer Science (LICS).

[23]  Jaroslav Nesetril,et al.  Grad and classes with bounded expansion I. Decompositions , 2008, Eur. J. Comb..

[24]  Jaroslav Nesetril,et al.  Grad and classes with bounded expansion II. Algorithmic aspects , 2008, Eur. J. Comb..

[25]  Nicole Schweikardt,et al.  First-order logic with counting , 2017, 2017 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS).

[26]  Bruno Courcelle,et al.  The Monadic Second-Order Logic of Graphs. I. Recognizable Sets of Finite Graphs , 1990, Inf. Comput..

[27]  Martin Grohe,et al.  Deciding first-order properties of locally tree-decomposable structures , 2000, JACM.

[28]  Leonid Libkin,et al.  Elements Of Finite Model Theory (Texts in Theoretical Computer Science. An Eatcs Series) , 2004 .

[29]  Nicole Schweikardt,et al.  First-Order Query Evaluation with Cardinality Conditions , 2017, PODS.

[30]  Arnaud Durand,et al.  First-order queries on structures of bounded degree are computable with constant delay , 2005, TOCL.

[31]  Leonid Libkin,et al.  Elements of Finite Model Theory , 2004, Texts in Theoretical Computer Science.

[32]  Jörg Flum,et al.  Fixed-Parameter Tractability, Definability, and Model-Checking , 1999, SIAM J. Comput..