Abstract

Let SO^plog denote the restriction of second-order logic, where second-order quantification ranges over relations of size at most poly-logarithmic in the size of the structure. In this article we investigate the problem, which Turing machine complexity class is captured by Boolean queries over ordered relational structures that can be expressed in this logic. For this we define a hierarchy of fragments Σ^plog_m (and Σ^plog_m) defined by formulae with alternating blocks of existential and universal second-order quantifiers in quantifier-prenex normal form. We first show that the existential fragment Σ^plog_1 captures npolylog, i.e. the class of Boolean queries that can be accepted by a non-deterministic Turing machine with random access to the input in time O((log n)^k) for some k ≥ 0. Using alternating Turing machines with random access input allows us to characterize also the fragments Σ^plog_m (and Σ^plog_m) as those Boolean queries with at most m alternating blocks of second-order quantifiers that are accepted by an alternating Turing machine. Consequently, SO^plog captures the whole poly-logarithmic time hierarchy. We demonstrate the relevance of this logic and complexity class by several problems in database theory.

Full Text
Published version (Free)

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