Parameterised Counting in Logspace
Anselm Haak, Arne Meier, Om Prakash, B. V. Raghavendra Rao

TL;DR
This paper develops a new framework for parameterised counting in logspace, introducing variants based on tail-nondeterminism and establishing natural complete problems and closure properties for these classes.
Contribution
It introduces tail-nondeterminism variants of parameterised space classes, characterises their complexity, and explores their closure properties and natural complete problems.
Findings
Defined new classes paraW[1] and paraBeta-Tail.
Identified natural complete problems for these classes.
Proved closure properties and relationships between classes.
Abstract
In this paper, we introduce a new framework for parameterised counting in logspace, inspired by the parameterised space bounded models developed by Elberfeld, Stockhusen and Tantau (IPEC 2013, Algorithmica 2015). They defined the operators paraW and paraBeta for parameterised space complexity classes by allowing bounded nondeterminism with multiple-read and read-once access, respectively. Using these operators, they characterised the parameterised complexity of natural problems on graphs. In the spirit of the operators paraW and paraBeta by Stockhusen and Tantau, we introduce variants based on tail-nondeterminism, paraW[1] and paraBeta-Tail. Then, we consider counting versions of all four operators applied to logspace and obtain several natural complete problems for the resulting classes: counting of paths in digraphs, counting first-order models for formulas, and counting graph…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Leibniz Universität Hannover, Institut für Theoretische Informatik, Hannover, [email protected]://orcid.org/0000-0003-1031-5922 Leibniz Universität Hannover, Institut für Theoretische Informatik, Hannover, [email protected]://orcid.org/0000-0002-8061-5376Funded by the German Research Foundation (DFG), project ME4279/1-2 Department of Computer Science and Engineering, IIT Madras, Chennai, [email protected] Department of Computer Science and Engineering, IIT Madras, Chennai, [email protected]
\CopyrightAnselm Haak, Arne Meier, Om Prakash, and Raghavendra Rao B. V. \ccsdesc[100]Theory of computation Complexity classes \ccsdesc[100]Theory of computation Parameterized complexity and exact algorithms
\fundingIndo-German co-operation grant: DAAD (57388253), DST (INT/FRG/DAAD/P-19/2018)
Acknowledgements.
The authors thank the anonymous referees for their valuable feedback.\hideLIPIcs\EventEditorsMarkus Bläser and Benjamin Monmege \EventNoEds2 \EventLongTitle38th International Symposium on Theoretical Aspects of Computer Science (STACS 2021) \EventShortTitleSTACS 2021 \EventAcronymSTACS \EventYear2021 \EventDateMarch 16–19, 2021 \EventLocationSaarbrücken, Germany (Virtual Conference) \EventLogo \SeriesVolume187 \ArticleNo45
Parameterised Counting in Logspace
Anselm Haak
Arne Meier
Om Prakash
Raghavendra Rao B. V
Abstract
Logarithmic space bounded complexity classes such as and play a central role in space bounded computation. The study of counting versions of these complexity classes have lead to several interesting insights into the structure of computational problems such as computing the determinant and counting paths in directed acyclic graphs. Though parameterised complexity theory was initiated roughly three decades ago by Downey and Fellows, a satisfactory study of parameterised logarithmic space bounded computation was developed only in the last decade by Elberfeld, Stockhusen and Tantau (IPEC 2013, Algorithmica 2015).
In this paper, we introduce a new framework for parameterised counting in logspace, inspired by the parameterised space bounded models developed by Elberfeld, Stockhusen and Tantau (IPEC 2013, Algorithmica 2015). They defined the operators and for parameterised space complexity classes by allowing bounded nondeterminism with multiple-read and read-once access, respectively. Using these operators, they characterised the parameterised complexity of natural problems on graphs. In the spirit of the operators and by Stockhusen and Tantau, we introduce variants based on tail-nondeterminism, and . Then, we consider counting versions of all four operators applied to logspace and obtain several natural complete problems for the resulting classes: counting of paths in digraphs, counting first-order models for formulas, and counting graph homomorphisms. Furthermore, we show that the complexity of a parameterised variant of the determinant function for -matrices is -hard and can be written as the difference of two functions in . These problems exhibit the richness of the introduced counting classes. Our results further indicate interesting structural characteristics of these classes. For example, we show that the closure of under parameterised logspace parsimonious reductions coincides with , that is, modulo parameterised reductions, tail-nondeterminism with read-once access is the same as read-once nondeterminism.
Initiating the study of closure properties of these parameterised logspace counting classes, we show that all introduced classes are closed under addition and multiplication, and those without tail-nondeterminism are closed under parameterised logspace parsimonious reductions.
Also, we show that the counting classes defined can naturally be characterised by parameterised variants of classes based on branching programs in analogy to the classical counting classes.
Finally, we underline the significance of this topic by providing a promising outlook showing several open problems and options for further directions of research.
keywords:
Parameterized Complexity, Counting Complexity, Logspace
1 Introduction
Parameterised complexity theory, introduced by Downey and Fellows [24], takes a two-dimensional view on the computational complexity of problems and has revolutionised the algorithmic world. Two-dimensional here refers to the fact that the complexity of a parameterised problem is analysed with respect to the input size and a parameter associated with the given input as two independent quantities. The notion of fixed-parameter tractability is the proposed notion of efficient computation. A problem with parameter is fixed-parameter tractable (fpt, or in the class ) if there is a deterministic time algorithm for deciding it, where is a computable function. The primary notion of intractability is captured by the -hierarchy in this setting.
Since its inception, the focus of parameterised complexity theory has been to identify parameterisations of -hard problems that allow for efficient parameterised algorithms, and to address structural aspects of the classes in the -hierarchy and related complexity classes [32]. This led to the development of machine-based and logical characterisations of parameterised complexity classes (see the book by Flum and Grohe [32] for more details). While the structure of classes in hierarchies such as the - and -hierarchy is well understood, a parameterised view of parallel and space-bounded computation lacked attention.
In 2013, Elberfeld et al. [43, 27] focused on parameterised space complexity classes and initiated the study of parameterised circuit complexity classes. In fact, they introduced parameterised analogues of deterministic and nondeterministic logarithmic space-bounded classes. The machine-based characterisation of (the class of problems that are fpt-reducible to a weighted circuit satisfiability question), and the type of access to nondeterministic choices (multi-read or read-once) led to two different variants of parameterised logspace (para-logspace), namely, and . Elberfeld et al. [27] obtained several natural complete problems for these classes, such as parameterised variants of reachability in graphs.
Bannach, Stockhusen and Tantau [6] further studied parameterised parallel algorithms. They used colour coding techniques [4] to obtain efficient parameterised parallel algorithms for several natural problems. A year later, Chen and Flum [15] proved parameterised lower bounds for by adapting circuit lower bound techniques.
Apart from decision problems, counting problems have found a prominent place in complexity theory. Valiant [46] introduced the notion of counting complexity classes that capture natural counting problems such as counting the number of perfect matchings in a graph, or counting the number of satisfying assignments of a CNF formula. Informally, (resp., ) consists of all functions such that there exists an nondeterministic Turing machine (NTM) running in polynomial time (resp., logarithmic space) in the input length whose number of accepting paths on every input is equal to . Valiant’s theory of -completeness led to several structural insights into complexity classes around and interactive proof systems, as well as to the seminal result of Toda [45].
While counting problems in stayed in the focus of research for long, the study of the determinant by Damm [22], Vinay [47], and Toda [44] established that the complexity of computing the determinant of an integer matrix characterises the class up to a closure under subtraction. Allender and Ogihara [3] analysed the structure of complexity classes based on . The importance of counting classes based on logspace-bounded Turing machines (TMs) was further established by Allender, Beals and Ogihara [2]. They characterised the complexity of testing feasibility of linear equations by a class which is based on . Beigel and Fu [7] then showed that small depth circuits built with oracle access to functions lead to a hierarchy of languages which can be seen as the logspace version of the counting hierarchy. In a remarkable result, Ogihara [40] showed that this hierarchy collapses to the first level. Further down the complexity hierarchy, Caussinus et al. [12] introduced counting versions of based on various characterisations of . The counting and probabilistic analogues of exhibit properties similar to their logspace counterparts [23]. Moreover, counting and gap variants of the class were defined by Agrawal et al. [1].
The theory of parameterised counting classes was pioneered by Flum and Grohe [31] as well as McCartin [38]. The class consists of all parameterised counting problems that reduce to the problem of counting -cliques in a graph. Flum and Grohe [31] proved that counting cycles of length is complete for . Curticapean [17] further showed that counting matchings with edges in a graph is also complete for . These results led to several remarkable completeness results and new techniques (see, e.g., the works of Curticapean [18, 19], Curticapean, Dell and Marx [20], Jerrum and Meeks [35], Brand and Roth [10]).
Motivation
Given the rich structure of logspace-bounded counting complexity classes, the study of parameterised variants of these classes is vital to obtain a finer classification of counting problems.
A theory on para-logspace counting did not exist before. We wanted to overcome this defect to further understand the landscape of counting problems with decision versions in para-logspace-based classes. Our new framework allows us to classify many of these problems more precisely. In this article, we define counting variants inspired by the parameterised space complexity classes introduced by Elberfeld et al. [43, 27].
In the realm of space-bounded computation, different manners in which nondeterministic bits are accessed lead to different complexity classes. For example, the standard definition of implicitly gives the corresponding NTMs only read-once access to their nondeterministic bits [5]: nondeterminism is given only in the form of choices between different transitions. This means that nondeterministic bits are not re-accessible by the machine later in the computation. When instead using an auxiliary read-only tape for these bits and allowing for multiple passes on it, one obtains the class . This is due to the fact that SAT is -complete with respect to logspace many-one reductions [5], and that one can evaluate a CNF formula in deterministic logspace even when the assignment is given on a read-only tape. However, polynomial time bounded NTMs still characterise even when the machine is allowed to do only one pass on the nondeterministic bits as they can simply store all nondeterministic bits on the work-tape. So, it is very natural to investigate whether the differentiation from above leads to new insights in our setting.
With parameterisation as a means for a finer classification, Stockhusen and Tantau [43] defined nondeterministic logarithmic space-bounded computation based on how (unrestricted or read-once) the nondeterministic bits are accessed. Based on this distinction, they defined two operators: (unrestricted) and (read-once). Their study led to many compelling natural problems that are complete for logspace-bounded nondeterministic computations with suitable parameters. Thereby, a rich structure of computational power based on the restrictions on the number of reads of the nondeterministic bits was exhibited. In this article, we additionally differentiate based on when (unrestricted or tail access) the nondeterministic bits are accessed. The classes and are the two most prominent nondeterministic classes in the parameterised world which is why we wanted to see the effect of such a restriction on the rather small classes in our setting. This leads to the new operators and . The concept of tail-nondeterminism allowed to capture the parameterised complexity class —via tail-nondeterministic, -bounded machines—and thereby relates to many interesting problems such as searching for cliques, independent sets, or homomorphism, and evaluating conjunctive queries [32]. Intuitively, tail-nondeterminism means that all nondeterministic bits are read at the end of the computation, and -boundedness limits the number of these nondeterministic bits to for all inputs .
Studying counting complexity often improves the understanding of related classical problems and classes (e.g., Toda’s theorem [45]). With regard to space-bounded complexity, there are several characterisations of logspace-bounded counting classes in terms of natural problems. For example, counting paths in directed graphs is complete for , and checking if an integer matrix is singular or not is complete for the class (see Allender et al. [2]). Furthermore, testing if a system of linear equations is feasible or not can be done in with queries to any complete language for . Moreover, two hierarchies built over counting classes for logarithmic space collapse either to the first level [40] or to the second level [2]. Apart from this, the separation of various counting classes over logarithmic space remains widely open. For example, it is not known if the class is closed under complementation.
We consider different parameterised variants of the logspace-bounded counting class to give a new perspective on its fine structure.
Results
We introduce the counting variants of parameterised space-bounded computation and show that each of the parameterised logspace complexity classes, defined by Stockhusen and Tantau [43], has a natural counting counterpart. Moreover, by considering also tail-nondeterminism with respect to their classes, we obtain four different variants of parameterised logspace counting classes, namely, , and . We show that and are closed under para-logspace parsimonious reductions and that all of our new classes are closed under addition and multiplication.
Furthermore, we develop a complexity theory by obtaining natural complete problems for these new classes. We introduce variants of the problem of counting walks of parameter-bounded length that are complete for the classes (Theorems 4.1, 4.3 and 4.6), (Theorem 4.4) and (Theorem 4.7). Since the same problem is shown to be complete for both, and , we get the somewhat surprising result that the closure of under para-logspace parsimonious reductions coincides with (Corollary 4.5). Also, we show that a parameterised version of the problem of counting homomorphisms from coloured path structures to arbitrary structures is complete for with respect to para-logspace parsimonious reductions (Theorem 4.16).
Afterwards, we study variants of the problem of counting assignments to free first-order variables in a quantifier-free formula. We identify complete problems for the classes and in this context. More specifically, counting assignments to free first-order variables in a quantifier-free formula with relation symbols of bounded arity and the syntactical locality of the variables in the formula being restricted () is shown to be complete for the classes and with respect to para-logspace parsimonious reductions (Theorem 4.11). When there is no restriction on the arity of relational symbols or on the locality of the variables, counting the number of satisfying assignments to free first-order variables in a quantifier-free formula in a given structure () is complete for with respect to para-logspace parsimonious reductions (Theorem 4.13).
Finally, we consider a parameterised variant of the determinant function () introduced by Chauhan and Rao [13]. By adapting the arguments of Mahajan and Vinay [37], we show that on -matrices can be expressed as the difference of two functions in , and is -hard with respect to para-logspace many-one reductions (Theorem 4.20).
Figure 1 shows a class diagram with complete problems.
Main Techniques
Our primary contribution is laying foundations for the study of parameterised logspace-bounded counting complexity classes. The completeness results in Theorems 4.3 and 4.13 required a quantised normal form for -bounded nondeterministic Turing Machines (NTMs) (Lemma 3.2). This normal form quantises the nondeterministic steps of a -bounded NTM into chunks of -many steps such that the total number of accepting paths remains the same. We believe that the normal form given in Lemma 3.2 will be useful in the structural study of parameterised counting classes. The study of involved definitions of so-called parameterised clow sequences generalising the classical notion [37]. Besides, a careful assignment of signs to clow sequences was necessary for our complexity analysis of .
Related Results
Chen and Müller [14] studied the parameterised complexity of counting homomorphisms and divided the problems into four equivalence classes. However, their equivalence is only based on reductions among variants of counting homomorphisms but not in terms of concrete complexity classes. In this context, Dalmau and Johnson [21] investigated the complexity of counting homomorphisms as well, and provided generalisations of results by Grohe [33] to the counting setting. A similar classification regarding our classes can give new insights into the complexity of the homomorphism problem (Open Problem 4). The behaviour of our classes with respect to reductions is similar to the one observed for by Bottesch [8, 9].
Outline
In Section 2, we introduce the considered machine model, as well as needed foundations of parameterised complexity theory, and logic. Section 3 presents structural results regarding our introduced notions in the parameterised counting context. Afterwards, in Section 4, our main results on counting walks, FO-assignments, homomorphisms as well as regarding the determinant are shown. Finally, we conclude in Section 5.
Due to space limitations, all proof details can be found in the appendix.
2 Preliminaries
In this section, we describe the computational models and complexity classes that are relevant for parameterised complexity theory. We use standard notions and notations from parameterised complexity theory [24, 32]. Without loss of generality, we restrict the input alphabet to be .
Turing Machines (TMs) with Random Access to the Input
We consider an intermediate model between TMs and Random Access Machines (RAMs) on words. Particularly, we make use of TMs that have random access to the input tape and can query relations in input structures in constant time. This can be achieved with two additional tapes of logarithmic size (in the input length), called the random access tape and the relation query tape. On the former, the machine can write the index of an input position to get the value of the respective bit of the input. On the relation query tape, the machine can write a tuple of the input structure together with a relation identifier to get the bit stating whether is in the relation specified by . Note that our model achieves linear speed-up for accessing the input compared to the standard TM model. (This is further justified by Remark 2.6.) For convenience, in the following, whenever we speak about TMs we mean the TM model with random access to the input. Denote by () with the class of languages that are accepted by (nondeterministic) TMs with space-bound and time-bound . A -machine for () is a (nondeterministic) TM that is space-bounded and time-bounded.
NTMs are a generalisation of TMs where multiple transitions from a given configuration are allowed. This can be formalised by allowing the transition to be a relation rather than a function. Sometimes, it is helpful to view NTMs as deterministic TMs with an additional tape, called the (nondeterministic) choice tape which is read-only. Let be a deterministic TM with a choice tape. A nondeterministic step in the computation of is a step where moves the head on the choice tape to a cell that was not visited before. The language accepted by , is defined as
[TABLE]
Notice that in this framework the machine has two-way access to the choice tape. Furthermore, resource bounds are with respect to the input only (the content of the choice tape is not part of the input) and the choice tape is not counted for space bounds. In this paper, we regard nondeterministic TMs as deterministic ones with a choice tape.
Before we proceed to the definition of parameterised complexity classes, a clarification on the choice of the model is due. Note that RAMs and NRAMs are often appropriate in the parameterised setting as exhibited by several authors (see, e.g., the textbook of Flum and Grohe [32]). They allow to define bounded nondeterminism quite naturally. On the other hand, in the classical setting, branching programs (BPs) are one of the fundamental models that represent space bounded computation, in particular logarithmic space. Since BPs inherently use bit access, this relationship suggests the use of a bit access model. Consequently, we consider a hybrid computational model: Turing machines with random access to the input. While the computational power of this model is the same as that of Turing machines and RAMs, it seems to be a natural choice to guarantee a certain robustness, allowing for desirable characterisations of our classes.
Parameterised Complexity Classes
Let denote the set of parameterised problems that can be decided by a deterministic TM running in time for any input where is a computable function and is a polynomial. Two central classes in parameterised complexity theory are and which were originally defined via special types of circuit satisfiability [32]. Flum, Chen and Grohe [16] obtained a characterisation of these two classes using the following notion of -bounded NTMs.
Definition 2.1** (-bounded TMs).**
An NTM , working on inputs of the form with , is said to be -bounded if for all inputs it reads at most bits from the choice tape on input , where is a computable function.
Here, we will work with the following characterisation of . The characterisation for needs another concept that will be defined on the next page.
Proposition 2.2** ([16, 32]).**
* is the set of all parameterised problems that can be accepted by -bounded -machines with a choice tape.*
Now, we recall three complexity theoretic operators that define parameterised complexity classes from an arbitrary classical complexity class, namely and , following the notation of Stockhusen [42].
Definition 2.3** ([30]).**
Let be any complexity class. Then is the class of all parameterised problems for which there is a computable function and a language with such that for all , :
Notice that is the standard precomputation characterisation of [30]. A -machine for () is a (nondeterministic) TM, working on inputs of the form , that is space-bounded and time-bounded where is a computable function.
The class (problems accepted in time for a computable function ) and the -hierarchy [32] capture intractability of parameterised problems. Though the -hierarchy was defined using the weighted satisfiability of formulas with bounded weft, which is the number of alternations between gates of high fan-in, Flum and Grohe [30] characterised central classes in this context using bounded nondeterminism. Stockhusen and Tantau [43, 42] considered space-bounded and circuit-based parallel complexity classes with bounded nondeterminism.
The following definition is a more formal version of the one given by Stockhusen and Tantau [43, Def. 2.1]. They use instead of for a complexity class .
Definition 2.4**.**
Let for some . Then, is the class of all parameterised problems that can be accepted by a -bounded -machine with a choice tape.
For example, denotes the parameterised version of with -bounded nondeterminism. One can also restrict this model by only giving one-way access to the nondeterministic tape. The following definition is a more formal version of the one of Stockhusen and Tantau [43, Def. 2.1] who use the symbol instead.
Definition 2.5**.**
Let for some . Then denotes the class of all parameterised problems that can be accepted by a -bounded -machine with a choice tape with one-way read access to the choice tape.
As there is only read-once access to the nondeterministic bits, can be equivalently defined via nondeterministic transitions and without using a choice tape.
Another notion studied in parameterised complexity is tail-nondeterminism. A -bounded machine is tail-nondeterministic if there exists a computable function such that on all inputs , makes at most further steps in the computation, after its first nondeterministic step. The value of this concept is evidenced by the machine characterisation of (Chen et al. [16]). We hope to get new insights by transferring this concept to space-bounded computation. In consequence, we introduce the tail-nondeterministic versions of and which are denoted by and .
Remark 2.6**.**
Note that it is important to have random access to the input tape in the case of tail-nondeterminism. Without random access to input bits and input relations, a TM cannot even make reasonable queries to the input in time .
Logic
We assume basic familiarity with first-order logic (FO). A vocabulary is a finite ordered set of relation symbols and constants. Each relation symbol has an associated arity . Let be a vocabulary. A -structure consists of a nonempty finite set (its universe), and an interpretation for every relation symbol . Syntax and semantics are defined as usual (see, e.g., the textbook of Ebbinghaus et al. [26]). Let be a structure with universe . We denote by the size of a binary encoding of , i.e., the number of bits required to represent the universe and relations as lists of tuples. For example, if is a relation of arity , then is represented as a subset of , i.e., a set of triples over . This requires bits to represent the relation , assuming bits to represent an element in . As analysed by Flum et al. [29, Sect. 2.3], this means that . Also recall that the fragment (for ) refers to the class of -formulas with quantifier blocks alternating between existential and universal quantifiers and the outermost quantifier being existential.
3 Parameterised Counting in Logarithmic Space
Now, we define the counting counterparts based on the parameterised classes defined using bounded nondeterminism. The definitions of the decision classes based on tail-nondeterminism can be found in the appendix. A parameterised function is a function . For an input of with , , we call the parameter of that input. If is a complexity class and a parameterised function belongs to , we say that is -computable. Let be a TM. We denote by the number of accepting paths of on input , and similarly, , for parameterised inputs of the form .
Definition 3.1**.**
Let for some . Then a parameterised function is in if there is a -bounded nondeterministic -machine such that for all inputs , we have that . Furthermore, is in
- •
* if there is such an with read-once access to its nondeterministic bits,*
- •
* if there is such an that is tail-nondeterministic, and*
- •
* if there is such an with read-once access to its nondeterministic bits that is tail-nondeterministic.*
By definition, we get for . Note that the restriction of the above classes to -boundedness is crucial. If we drop this restriction, the machines are able to access , so fpt-many, nondeterministic bits. Regarding multiple-read access, this allows for solving SAT (with constant parameterisation). So this class then would contain a -complete problem. For read-once access, we expect a similar result for . When adding tail-nondeterminism, we implicitly get -boundedness again, so this does not lead to new classes.
The following lemma shows that -machines can be normalised in a specific way. This normalisation will play a major role in Section 4.
Lemma 3.2**.**
For any -bounded nondeterministic -machine there exists a -bounded nondeterministic -machine with for all inputs such that has the following properties:
- (1)
* has a unique accepting configuration,* 2. (2)
on any input , every computation path of accesses exactly nondeterministic bits (for some computable function ), and counts on an extra tape (tape ) the number of nondeterministic steps, and 3. (3)
* has an extra tape (tape ) on which it remembers previous nondeterministic bits, resetting the tape after every -many nondeterministic steps.*
Additionally, if has read-once access to its nondeterministic bits, or is tail-nondeterministic, or both, then also has these properties.
The following result follows from a simple simulation of nondeterministic machines by deterministic ones. Let be the class of functions computable by -machines with output.
Theorem 3.3**.**
.
Using the notion of oracle machines (see, e.g., [41]), we define Turing, metric, and parsimonious reductions computable in . For our purposes, the oracle tape is always exempted from space restrictions which is often the case in the context of logspace Turing reductions [11]. A study on the effect of changing this assumption might be interesting.
Definition 3.4** (Reducibilities).**
Let be two functions. Then, is para-logspace Turing reducible to , , if there is a oracle TM that computes with oracle and the parameter of any oracle query of is bounded by a computable function in the parameter. If there is such an that uses only one oracle query, then is para-logspace metrically reducible to , . If there is such an that returns the answer of the first oracle query, then is para-logspace parsimoniously reducible to , .
Note that the definition of parsimonious reductions ensures that the size of the witness set is preserved by the fact that immediately returns the answer of its only oracle query (without further computations). For any reducibility relation and any complexity class , is the -closure of .
Next, we show that both new classes without tail-nondeterminism are closed under .
Lemma 3.5**.**
The classes and are closed under .
For the tail-classes, such a closure property is not obvious. Corollary 4.4 will show that closing the class with read-once access and tail-nondeterminism under these reductions gives the full power of the class without tail-nondeterminism. Open Problem 2 on page 2 asks what class is obtained when closing the class without read-once access and with tail-nondeterminism.
Another important question is whether classes are closed under certain arithmetic operations. We show that all newly introduced classes are closed under addition and multiplication.
Theorem 3.6**.**
For any , the class is closed under addition and multiplication.
Open Problem 1**.**
Which of the classes are closed under monus, that is, ?
4 Complete Problems
This section studies complete problems for the previously defined classes: counting problems in the context of walks in directed graphs, model-checking problems for formulas, and homomorphisms between -structures as well as a parameterised version of the determinant.
4.1 Counting Walks
We start with parameterised variants of counting walks in directed graphs which will be shown to be complete for the introduced classes.
[TABLE]
Theorem 4.1**.**
For every , is -complete with respect to -reductions.
Proof 4.2** (Proof Idea.).**
For the upper bound, guess a path of length exactly . The number of nondeterministic bits is bounded by since successors can be referenced by a number in .
For the lower bound, using Lemma 3.2, construct the configuration graph restricted to nondeterministic configurations and the unique accepting configuration , where the edge relation expresses whether a configuration is reachable with exactly one nondeterministic, but an arbitrary number of deterministic steps. Accepting computations of the machine correspond to paths from the first nondeterministic configuration to of length in .
Now consider the problem , defined as follows.
[TABLE]
The difference to the previous problem is the unbounded out-degree of nodes and the length of counted walks being instead of . Note that the analogue problem for counting paths is -complete [31]. However, we will see now that the problem for walks is -complete.
Theorem 4.3**.**
* is -complete with respect to .*
As the length of paths that are counted in is , the runtime of the whole algorithm used to prove membership in the previous theorem is actually bounded by on input . This means that the computation is tail-nondeterministic.
Theorem 4.4**.**
* is -complete with respect to .*
The previous results together with the fact that is closed under yield the following surprising collapse (a similar behaviour was observed by Bottesch [8, 9]).
Corollary 4.5**.**
.
We continue with another variant of , namely . Here, all walks of length are counted, if (and are not part of the input).
Theorem 4.6**.**
* is -complete with respect to .*
Now, consider a problem that combines a reachability problem with model-checking for propositional logic, that is, it only counts walks that are models of a propositional formula (see Haak et al. [34]). Let be a DAG, be a walk in with for , and . Define the function to be the characteristic function of with respect to : iff .
[TABLE]
Theorem 4.7**.**
* is -complete with respect to .*
Proof 4.8** (Proof Idea.).**
Regarding membership, we can first use the algorithm outlined in the proof idea of Theorem 4.1 to nondeterministically guess a path, and then use the standard logspace model-checking algorithm for propositional formulas. Since edges in the graph are associated with variables of the formula, whenever we need the value of an edge variable , we run the original algorithm re-using nondeterministic bits to determine it.
For the lower bound, we use the same graph as in Theorem 4.1, and the formula is used to express consistency of the re-used nondeterministic bits in the configuration graph.
Similarly, define the problem : Given a graph of bounded out-degree 2, a CNF-formula with and , with as the parameter and , output the number of cycle covers in which the number of non-selfloop-cycles is , exactly vertices are covered non-trivially and .
Theorem 4.9**.**
* is -complete with respect to .*
4.2 Counting FO-Assignments
Let be a class of well-formed formulas. The problem of counting satisfying assignments to free -variables in -formulas, , is defined as follows.
[TABLE]
Here, is the set of satisfying assignments of φ in : . Denote by the variant where for all relations the arity is at most . We investigate parameterisations that yield complete problems for some of the new classes in this setting.
In particular, we consider a fragment of obtained by restricting the occurrence of variables in the syntactic tree of a formula in a purely syntactic manner. Formally, the syntax tree of a quantifier-free -formula is a tree with edge-ordering whose leaves are labelled by atoms of and whose inner vertices are labelled by Boolean connectives.
Definition 4.10**.**
Let and φ be a quantifier-free -formula. Let be the atoms of φ in the order of their occurrence in the order-respecting depth-first run through the syntax tree of φ. We say that φ is -local if for any , that involve the same variable, we have . We define \Sigma_{0}^{r\text{-local}}\mathrel{\mathop{:}}=\{\,\varphi\in\Sigma_{0}\mid\varphi\text{ is r-local}\,\}.
Using this syntactic notion, we obtain a complete problem for our classes with read-once access to nondeterministic bits in the setting of first-order model-checking.
Theorem 4.11**.**
For , is -complete and -complete with respect to .
Proof 4.12** (Proof Idea.).**
Regarding membership, we evaluate the given in top to bottom using the locality of by storing assignments to variables until we encountered more atoms. As a result, at most assignments to variables are simultaneously stored and each one needs space. Moreover, the runtime of the whole procedure is bounded by for some computable function and thereby the procedure is tail-nondeterministic.
Regarding the lower bound, we reduce from and use the formula
[TABLE]
expressing that a tuple of vertices is an --walk in an -structure .
Note that the decision version of is equivalent to parameterised model-checking for -sentences, as we count assignments to free variables. This problem characterises tail-nondeterministic para-logspace with read-once access to nondeterministic bits.
Theorem 4.13**.**
* is -complete with respect to .*
The complexity status of counting assignments to free first-order variables in a formula with unbounded arity or without the local restrictions is not known. In particular, it is not clear if the restriction on the arity or the locality property of the formula can be removed while preserving completeness. Finally, we close this section with three open questions.
Open Problem 2**.**
What is the complexity of for fixed ? What is the complexity of for fixed ?
Open Problem 3**.**
Is the class equivalent to some known class?
4.3 Counting Homomorphisms
This subsection is devoted to the study of the problem of counting homomorphisms between two structures in the parameterised setting. Typically, the size of the universe of the first structure is considered as the parameter. The complexity of counting homomorphisms has been intensively investigated for almost two decades [25, 33, 21, 14].
Definition 4.14** (Homomorphism).**
Let and be structures over some vocabulary with universes and , respectively. A function is a homomorphism from to if for all and for all tuples , we have .
A bijective homomorphism between two structures such that the inverse of is also a homomorphism is called an isomorphism. If there is an isomorphism between and , then is said to be isomorphic to .
Definition 4.15**.**
Let be a structure with universe . Then denote by the extension of by a fresh unary relation symbol interpreted as for each . Analogously, denote by for a class of structures the class .
Define as the following problem. Given a pair of structures where , and parameter , output the number of homomorphisms from to , if , and 0 otherwise.
[TABLE]
Notice that can be any structure. For , let be the canonical undirected path of length , that is, the -structure with universe and . Let be the class of structures isomorphic to some . For the next theorem, reduce to for membership, and from a normalised, coloured variant of for hardness.
Theorem 4.16**.**
* is -complete with respect to .*
Open Problem 4**.**
Is there a natural class of structures such that is -complete with respect to ?
4.4 The Parameterised Complexity of the Determinant
In this section, we consider a parameterised variant of the determinant function introduced by Chauhan and Rao [13]. For let denote the set of all permutations of . For , let denote the following subset of :
We define the parameterised determinant function of an square matrix as .
Using an interpolation argument, it can be shown that is in when is part of the input and thereby in [13], the functional counterpart of . In fact, the same interpolation argument can be used to show that is in (the class of functions such that for some -machine, is the number of accepting minus the number of rejecting paths). However, this does not give a space efficient algorithm for in the sense of parameterised classes. The algorithm may require a large number of nondeterministic steps and accordingly is not -bounded. We show that the space efficient algorithm for the determinant given by Mahajan and Vinay [37] can be adapted to the parameterised setting, proving that can be written as a difference of two functions. Recall the notion of a clow sequence introduced by Mahajan and Vinay [37].
Definition 4.17** (Clow).**
*Let be a directed graph with for some . A clow in is a walk where is the minimal vertex among with respect to the natural ordering of and for all . Node is called the head of , denoted by . *
Definition 4.18** (Clow sequence).**
A clow sequence of a graph is a sequence such that is a clow of for and
- •
the heads of the sequence are in ascending order , and
- •
the total number of edges that appear in some (including multiplicities) is exactly .
For a clow sequence of some graph with clows the sign of , , is defined as . Note that, if the clow sequence is a cycle cover , then is equal to the sign of the permutation represented by (that is, ). Mahajan and Vinay came up with this sign-function to derive their formula for the determinant.
For an -matrix , is the weighted directed graph with vertex set and weighted adjacency matrix . For a clow (sequence) , is the product of weights of the edges (clows) in . For any as above, is the set of all clow sequences of . Mahajan and Vinay [37] proved that
We adapt these notions to the parameterised setting. First observe that for a permutation , we have that , where is the number of cycles in the permutation. However, the number of cycles in is , where is the number of cycles of length at least two in . Accordingly, we have . Adapting the definition of a clow sequence, for , define a -clow sequence to be a clow sequence where the total number of edges (including multiplicity) in the sequence is exactly , every clow has at least two edges, and no self loop edge of the form occurs in any of the clows. For any graph with vertex set for , is the set of all -clow sequences of . For a -clow sequence , is , where is the number of clows in . Mahajan and Vinay [37, Theorem 1] showed that the signed sum of the weights of all clow sequences is equal to the determinant. At the outset, this is a bit surprising, since the determinant is equal to the signed sum of weights of cycle covers, whereas there are clow sequences that are not cycle covers. Mahajan and Vinay [37] observed that every clow sequence that is not a cycle cover can be associated with a unique clow sequence of opposite sign, and thereby all clow sequences cancel out. We observe a parameterised version of the above result [37, Theorem 1].
Lemma 4.19**.**
, for -matrix , .
Using this characterisation, the upper bound in the following theorem can be obtained. For hardness a reduction from suffices.
Theorem 4.20**.**
The problem for -matrices can be written as a difference of two functions in , and is -hard with respect to .
5 Conclusions and Outlook
We developed foundations for the study of parameterised space complexity of counting problems. Our results show interesting characterisations for classes defined in terms of -bounded para-logspace NTMs. We believe that our results will lead to further research of parameterised logspace counting complexity. Notice, that the studied walk problems in Section 4.1 can be considered restricted to DAGs yielding the same completeness results.
Branching programs are immanent for the study of space-bounded and parallel complexity classes. Languages accepted by polynomial-size logspace-uniform branching programs characterise . In fact, this result carries forward to the counting versions. Motivated by this, one can consider parameterised counting classes based on deterministic branching programs (DBPs) and nondeterministic branching programs (BPs). It can be shown that for any , and , can be characterised in terms of an adequate parameterised counting version of DBPs and BPs, respectively (see Theorems B.6 and B.8 in the appendix).
Comparing our newly introduced classes with the -hierarchy (which is defined in terms of weighted satisfiability problems for circuits of a so-called bounded weft), one might ponder whether there is an alternative definition of our classes with such circuit problems. Though in this article we did not explore the weighted satisfiability, the closely related problem sheds some light on this. Theorem 4.13 shows that is complete for (in fact, we show this for their counting versions) under -reductions. However, if we take -reductions, is complete for . Though we could not prove it so far, we believe this is a general phenomenon: Any -complete problem is complete for under -reductions. More generally, there is a possibility that the FPT-closure of -classes is equal to the corresponding class in the -hierarchy.
One might also ask the question if is contained in . This is unlikely based on the view expressed above. For example, is complete for both and but under two different reductions. As a result, would imply that and, accordingly, as is closed under -reductions.
We close with interesting tasks for further research:
- •
Study further closure properties of the new classes (e.g., Open Problem 1).
- •
Improve the understanding of the influence of syntactic locality, resp., bounded arity in the setting of (Open Problem 2).
- •
Find a characterisation of the -closure of (Open Problem 3).
- •
Identify a natural class of structures for which the homomorphism problem is -complete (Open Problem 4).
- •
Establish a broader spectrum of complete problems for the classes and , e.g., in the realm of satisfiability questions.
- •
Identify further characterisations of the introduced classes, e.g., in the vein of descriptive complexity, which could highlight their robustness.
- •
Study gap classes [28] based on our classes. This might help improve Theorem 4.20.
Appendix A Omitted Proof Details
Lemma 3.2.
For any -bounded nondeterministic -machine there exists a -bounded nondeterministic -machine with for all inputs such that has the following properties:
- (1)
* has a unique accepting configuration,* 2. (2)
on any input , every computation path of accesses exactly nondeterministic bits (for some computable function ), and uses an extra tape (tape ) that counts the number of nondeterministic steps, and 3. (3)
* has an extra tape (tape ) on which it remembers the last nondeterministic bits, resetting the tape after every -many nondeterministic steps.*
Additionally, if has read-once access to its nondeterministic bits, or is tail-nondeterministic, or both, then also has these properties.
Proof A.1**.**
We construct the machine with the three desired properties and the same number of accepting computation paths as step by step, ensuring that the properties from previous steps are preserved.
First note that without loss of generality can be assumed to have a single accepting state. We can modify so that upon reaching an accepting state, it erases everything in the work tape and move the head positions of every tape to the left end marker. This ensures that has a unique accepting configuration, which is property (1). This does not alter the number of accepting paths of on any input.
To ensure (2), we construct a new machine that behaves as but additionally maintains a counter on tape for the access of nondeterministic bits: Every time a nondeterministic bit is accessed, the counter is incremented by . If halts with the counter being less than , then the modified machine keeps making nondeterministic choices until the count is . We define to accept if and only if accepts and all of the additional nondeterministic bits guessed by have the value [math]. Note that does not use any additional space except for maintaining and updating the counter. For all , the machine accesses exactly nondeterministic bits on all computation paths and . Also, still has property (1), since the tape has the same content and head position for all accepting configurations and the remaining part of accepting configurations doesn’t change compared to .
Finally, to ensure (3), we modify from the previous step to obtain as follows. The new machine has an additional tape (tape ) on which it initially marks exactly cells, placing the head on the left-most cell afterwards. Whenever reads a nondeterministic bit, copies the nondeterministic bit to tape (that is, copies the bit to tape and moves the head position to the right). If the current head position in tape is on the right-most marked cell, then erases the content of tape in the marked cells and copies the nondeterministic bit currently being read to the first marked cell on tape . Finally, accepts if and only if accepts. Since this modification does not introduce new nondeterministic steps, the number of accepting computation paths of on any input is the same as that of and the modification preserves property (2). To re-establish property (1), we clear tape whenever we reach an accepting configuration.
Theorem 3.3.
.
Proof A.2**.**
Let via the machine with space-bound for some constant . For an input , let be the configuration graph of on . Since , can be constructed in time given the input . Now, is equal to the number of paths from the starting configuration of on input to the unique accepting configuration (by virtue of Lemma 3.2). This can be done via a brute-force algorithm computing the number of accepting paths in , since the size of is fpt and the branching degree of the vertices is at most . That is, we systematically iterate through all paths starting from , storing the currently investigated path, and incrementing the count whenever we reach .
Lemma 3.5.
The classes and are closed under .
Proof A.3**.**
We start with . Let and via the -bounded, space-bounded NTM . Furthermore, let via the oracle TM . Let and such that the machine on input uses the only oracle query .
Let , with space-bounds , be the machines computing , . To show that , we construct a new -machine as follows.
On input , the machine simulates on using and . Initially, is computed using and the value is stored. Then, whenever reads the -th input symbol, runs on until it outputs the -th symbol and uses it as the next input symbol. For this, note that is fpt-bounded. Afterwards continues the simulation of . On the number of accepting paths of is exactly the number of accepting paths of on which is equal to as required. The space of is bounded by the space used by on and space required for running and bookkeeping. Regarding bookkeeping, we need an index counter for ’s input head position and the value . Formally, the space is bounded by
[TABLE]
where is the space required for bookkeeping. This sum is in .
The number of nondeterministic bits required by is the same as on input . Consequently, the computation of is still -bounded as the number of nondeterministic bits is bounded by
[TABLE]
where are computable functions. This is due to being fpt-bounded and being bounded by a computable function in .
We continue with . The proof is analogous but has read-once access to its nondeterministic bits. Now, the only time accesses nondeterministic bits is when accesses its nondeterministic bits. This simulation also preserves the order in which nondeterministic bits are accessed. So has read-once access to its nondeterministic bits as well.
Theorem 3.6.
For any , the class is closed under addition and multiplication.
Proof A.4**.**
Let be in via the NTMs and , respectively. We start by showing that the above classes are closed under addition. We first consider and . The argument is similar for both of the classes. We give details for . We construct a new machine as follows: nondeterministically chooses whether to simulate the machine or the machine on the given input using a single additional nondeterministic bit. By construction we have . Also, is space-bounded and -bounded since it only behaves in the same way as either or and uses one additional (nondeterministic) step in the beginning.We conclude that the class is closed under addition. Exactly the same argument works for .
For and , we modify as follows: first simulates the deterministic parts up until the first nondeterministic step of both machines and . We then choose nondeterministically whether to finish the computation of or . This ensures that is tail-nondeterministic if and are tail-nondeterministic. Also, read-once access to nondeterministic bits is still preserved.
We now show that the above classes are closed under multiplication, starting again with and . We construct a new machine . On input , first simulates on input . If accepts, then simulates on , and accepts if and only if does so. Since and are -bounded, is also -bounded. The space used by is at most the maximum of that of and . By construction we have . Accordingly, the class is closed under multiplication. Additionally, if and only have read-once access to the nondeterministic bits, so has the new machine . We conclude that is closed under multiplication.
For and , we modify similar to what was done to show that these classes are closed under addition. first simulates the deterministic parts up until the first nondeterministic step of both machines and . Then simulates starting from the first nondeterministic step. If accepts, simulates starting from the first nondeterministic step and accepts if and only if accepts. Formally, let be the first nondeterministic configuration of on input and be the first nondeterministic configuration of on . The new machine runs on until the configuration is reached. Then stores the configuration and runs on until the configuration is reached. Storing in a separate tape, now proceeds with the nondeterministic computation of starting with the configuration . For every accepting configuration of , the machine re-starts the computation of starting from configuration accepting on all paths where does. By construction, the machine accepts if and only if and both accept it. As a result, we have
Suppose and are both tail-nondeterministic. Then the number of steps of (respectively ) starting from configuration (respectively ) is -bounded. The machine does not perform any nondeterministic steps until it starts simulating from configuration . By the tail-nondeterminism of , the number of steps starting from until its termination is -bounded. Once terminates, starts simulation of starting from on all accepting computations of . The computation of starting from the configuration is also -bounded. This ensures that if both and are tail-nondeterministic, so is . Also, it can be seen that the read-once access to nondeterministic bits is preserved.
Theorem 4.1.
For every , is -complete with respect to -reductions.
Proof A.5**.**
Algorithm 1 shows membership. The algorithm first checks the constraint on . Then it starts from vertex and guesses an arbitrary path of length exactly , using the fact that the out-degree of all vertices is bounded by to limit the number of nondeterministic bits needed for this task. More precisely, we choose a natural ordering depending on the encoding of vertices and use this to reference successors of the current node by numbers . The needed number of nondeterministic bits is . Furthermore, at any point of time, indices of at most two vertices as well as one number bounded by a constant are stored, so the algorithm uses logarithmic space.
Regarding the lower bound, let via the machine . Using Lemma 3.2, we can assume that has a unique accepting configuration and there is a computable function such that for any input all accepting computation paths of on input use exactly nondeterministic bits. Let be an input of . Consider the graph where is the set containing all nondeterministic configurations of on input as well as and contains an edge if and only if is reached from using exactly one nondeterministic step and any number of deterministic steps in the computation of on input . Now the number of accepting computation paths of on input is exactly the number of paths of length from the first nondeterministic configuration reached in the computation of on input to the unique accepting configuration in . To ensure that the length of accepting paths is bounded by , we further assume, without loss of generality, that .
Note that no (directed) cycle is reachable from the initial configuration in the configuration graph of on any input. For that reason no cycle is reachable from in and hence every --walk in is an --path. We now have for all that
[TABLE]
Adjacency within can be computed from in parameterised logspace, since it only depends on the (fixed) machine as well as computing deterministic paths. Furthermore, the new parameter is bounded by a computable function in the old parameter. Accordingly, the construction yields a para-logspace parsimonious reduction.
Theorem 4.3.
* is -complete with respect to .*
Proof A.6**.**
Regarding membership, we modify Algorithm 1. Line 1 is omitted. In line 1, we now loop over from to and in line 1 we guess a number between and . This number is used to choose a successor of .
Regarding hardness, let via the machine . Without loss of generality, is in the normal form from Lemma 3.2 and there is a computable function such that on any input uses exactly nondeterministic bits. Also assume without loss of generality that the accepting configuration of is deterministic. Fix an input . We reduce the problem of counting the accepting computation paths of on input to the problem of counting walks in a modified version of the configuration graph of on input . The difference to the hardness proof of Theorem 4.1 is that edges now encode computations comprised of -many nondeterministic steps. More precisely, define and as follows: consists of all nondeterministic configurations of on input and the (unique) accepting configuration of . For , if and only if configuration is reachable from in exactly -many nondeterministic steps (and any number of deterministic steps) in the computation of on input . Furthermore, if and only if is reachable from using only deterministic steps in the computation of on input . Finally, is the first nondeterministic configuration reached in the computation of on input and .
Since all accepting computation paths in the configuration graph of on input use exactly nondeterministic bits, the change made compared to the reduction used for Theorem 4.1 does not change the number of paths and we can simply count paths of length exactly in the new graph. By the above we have
[TABLE]
The set can still be computed by a -machine: To check whether an edge is present, we simply loop over all values for the next nondeterministic bits and verify whether the corresponding sequence of configurations starting from is a path ending in in the configuration graph of on input . Consequently, the construction yields a para-logspace parsimonious reduction.
Theorem 4.4.
* is -complete with respect to .*
Proof A.7**.**
This almost immediately follows from the proof of Theorem 4.3. For membership, observe that the runtime of the modified algorithm described in that proof is bounded by and hence the algorithm is already tail-nondeterministic. For hardness, it suffices that the problem is -hard and .
Theorem 4.6.
* is -complete with respect to .*
Proof A.8**.**
For membership, we use Algorithm 1 but nondeterministically guess nodes .
For hardness, let via the machine . Without loss of generality assume that has a unique accepting configuration and that there is a computable function such that on input uses exactly nondeterministic bits.
Similarly as in the proof of Theorem 4.1, let be the configuration graph such that all paths through only deterministic configurations are substituted by a single edge. Furthermore, we extend such that we add a path of fresh vertices with for . The reason for this construction lies in possible “bad” sequences of configurations as depicted in Figure 2.
Furthermore, without loss of generality we assume . Now, any path in going from to the initial configuration and then to the accepting configuration is of length . Notice, that the number of such --paths is equivalent to the number of accepting paths of on input . To precisely calculate , we will use two oracle queries to different -instances yielding a -reduction as required.
At first, we compute the result of the oracle query . Then, we modify yielding a graph by deleting the edge . This ensures that in among paths of length exactly the “good” accepting paths are missing compared to . Then we store the value of the oracle query in the variable . Finally, calculate the difference which is equivalent to .
Theorem 4.7.
* is -complete with respect to .*
Proof A.9**.**
Regarding membership, we can modify Algorithm 1 to find paths as before. We then need to check whether the chosen path also satisfies the formula φ. For this, we do the following. First, we use the folklore logspace-algorithm for propositional model-checking. Then, whenever we need the value of a variable , we re-compute the whole path constructed using Algorithm 1 reusing the nondeterministic bits and check whether the edge is used in that path (when occurs, then the computation can be stopped and the variable is true; when the computation terminates without occurring, then the variable is false). This yields a -algorithm.
Regarding hardness, we use the same construction as in the proof of Theorem 4.1. The difference is that nondeterministic bits can be reused. This means that we need to ensure to only count paths on which different queries to the same nondeterministic bit assume the same value for that bit. Let , , and be as in the proof of Theorem 4.1. Let be a labelling function stating which nondeterministic bit is read on each edge of and let be a function mapping each edge to the value of the corresponding nondeterministic bit assumed in the computation when using that edge. We can now define
[TABLE]
expressing that the values assumed for the nondeterministic bits are consistent throughout a path. Notice that can be computed in parameterised logspace. Hence, the mapping
[TABLE]
is a para-logspace parsimonious reduction.
Theorem 4.9.
* is -complete with respect to .*
Proof A.10**.**
The following algorithm shows membership. Let the input be the directed graph , the CNF-formula and . Guess distinct vertices where . These are supposed to be vertices from distinct cycles in the cycle cover. Now, for each guess a walk from that vertex to itself not containing any vertex whose encoding is lexicographically smaller than that of . Reusing nondeterministic bits, it can be assured that no vertex is visited twice. In the above procedure, count the number of visited vertices. If that number is , then accept. This way, each accepting path corresponds to a distinct cycle cover of with the desired properties.
For hardness, we proceed similarly as for in the proof of Theorem 4.7. Let and be defined as in the proof of that theorem. Now let be the graph with added self-loops for all vertices except and , as well as the additional edge . In , the component reachable from does not contain any cycles. Furthermore, does not have a self-loop in . For these reasons, the edge is contained in any cycle cover of . The cycle containing this edge always consists of this edge as well as a path from to , that is, an accepting computation path. By construction, all accepting computation paths have length exactly . For this reason, we can simply choose and . Now cycle covers of with non-self-loop-cycles and exactly non-trivially covered vertices cover exactly one accepting computation path non-trivially and cover all other vertices by self-loops. Finally, is chosen as in the proof of Theorem 4.7.
The desired reduction function is .
Theorem 4.11.
For , is -complete and -complete with respect to .
Proof A.11**.**
We show both completeness-results by showing membership in and hardness for .
For membership, let be a formula over some vocabulary σ, be a σ-structure and . Without loss of generality, , since we can immediately reject otherwise. When evaluating φ in in a topdown-fashion, book-keeping only needs space bounded by a computable function in , since . With the naive approach, we need more than logarithmic space to store the first-order assignment. To avoid this, we use the fact that φ is -local and the arity of relation symbols occurring in φ is bounded by . We nondeterministically guess the assignment for any first-order variable in φ when we first encounter an atom involving that variable and due to -locality we can discard it after evaluating the next atoms. This means that at any point during the computation, we store an assignment only for the variables that occurred in the previous atoms, that is, for at most variables. Note that we evaluate φ node by node and for each node only have to process a constant number of elements of , which are of logarithmic length. Since , this means that the runtime of the whole procedure is bounded by for some computable function and hence the procedure is tail-nondeterministic.
To show hardness, we reduce from , which is -complete by Theorem 4.3. Define the vocabulary . Fix an input of . The formula
[TABLE]
expresses that a tuple of vertices is an --walk in the input structure . We define the σ-structure as . By construction, the number of satisfying assignments of φ in structure is exactly the number of s-t-paths of length in . Also, is bounded by . As a result, the mapping is the desired reduction.
Theorem 4.13.
* is -complete with respect to .*
Proof A.12**.**
Regarding membership in , let be a σ-formula and be a σ-structure. Furthermore, let be the universe of . The counting machine for can be described as follows. Nondeterministically guess assignments for from and verify if is true under the guessed assignments. The resulting machine is -bounded, tail-nondeterministic (c.f. the proof of Theorem 4.11) and uses space at most , where .
Regarding hardness, let and be a -bounded space-bounded NTM, with access to nondeterministic bits. Without loss of generality, assume that is in the normal form from Lemma 3.2.
Let . Fix an input . We define a -structure from the configuration graph of on input . Let be the set of all nondeterministic configurations of on input along with the accepting configuration, be the first nondeterministic configuration of on input and be the accepting configuration of . Let be a relation with arity such that is true if an only if reaches configuration from using exactly nondeterministic steps with as the content of the choice tape. Here, for all . Given and numbers , testing if is true or not can be done in . Now, let and define the following -formula:
[TABLE]
Note that φ has free variables. For any assignment to the free variables, φ is true if and only if the assignment to represents a nondeterministic choice that leads to acceptance and the assignment to represents the corresponding sequence of configurations. In fact, given an assignment to , if accepts along this nondeterministic path, then there is a unique assignment to the variables that satisfies the formula φ.
Combining the above observations with the arguments used in the proofs of Theorems 4.3 and 4.11, we conclude that . Given , the structure and φ can be computed in by similar arguments as before. This completes the proof.
Theorem 4.16.
* is -complete with respect to .*
Proof A.13**.**
Regarding membership, we will show , where the latter is in by Theorem 4.3. The proof idea is visualised in Figure 3 with an example. Consider an arbitrary input to with -structures and . By definition of the problem we have . Let . We assume that and have the same underlying vocabulary σ and , since the remaining cases can easily be handled. Let be the edge relation symbol in σ. Furthermore, let with be the universe of such that and let be the universe of .
Now, define the directed graph with and
[TABLE]
The reduction is given by the mapping .
We show correctness by giving a --correspondence between homomorphisms from to and --walks in of length . This correspondence is given by the following mapping. Let be a homomorphism from to . This homomorphism is bijectively mapped to an --path as follows. The homomorphism yields a sequence with , for . From this, we obtain the --path in .
Regarding injectivity, let be two different homomorphisms from to . As a result, there exists an such that . Consequently, .
Regarding surjectivity, let be an --path in . Now, , , with . By construction of , this means for and for . Consequently, the function with for all is a homomorphism from to and is a preimage of under the given mapping.
The reduction can be computed by a -machine as follows. The vertex set of the graph is just the universe extended by two new vertices. Store the sequence . To compute , the machine identifies all vertices and prints for each the edge ; similarly for all edges with . Then, for each edge , we find and store the index such that and check whether is true. The machine only queries relations of for individual tuples which can be achieved with binary counters.
Regarding the lower bound, we first introduce a coloured variant of as follows. Here, a colouring function for some is given as an additional part of the input.
[TABLE]
The -hardness with respect to can be shown similarly to the one of (as in the proof of Theorem 4.3) as follows, see Lemma A.14 (the next result below) for details. The inputs and can be constructed in the same way whereas the colouring function can be defined as follows. For each configuration , define as the content of tape , which is the value of the step counter. By definition of , all --paths respect the colouring.
Now, we show . Given a directed graph , , , , we define two structures as follows. Let the universe of be defined as , , and for . Define the universe of as , , and .
Regarding correctness, the function that maps each --path to the homomorphism with for all is a bijective mapping between colour-respecting --paths in and homomorphisms from to . For this, note that the colouring ensures that the direction of edges in the original graph is respected even for edges that are not part of actual computation paths on the current input. This is due to the fact that the step counter is added for any transition of the TM. The mapping is injective due to the fact that each node in the path contributes to the construction of the homomorphism. The mapping is surjective as for each homomorphism the path is a colour-respecting --path in and a preimage of .
Regarding -computability, relies only on the parameter. The universe of structure is a copy, is a symmetric closure of , and the require a -counter to check for each whether . This completes the proof.
Lemma A.14**.**
* is -complete with respect to .*
Proof A.15** (Sketch).**
The proof is very similar to that of Theorem 4.3. Regarding hardness, we outline the main difference and the process of labeling the vertices. Let via a -bounded -space NTM which has read-once access to nondeterministic bits. Consider an input and let be the configuration graph of as defined in the proof of Theorem 4.3. For a nondeterministic configuration , let be the number represented in tape S in the configuration . Now it is not hard to see that , where is the first nondeterministic configuration reachable from the initial configuration of on and is the unique accepting configuration of .
Lemma 4.19.
For all -matrices and it holds that
[TABLE]
Proof A.16**.**
The statement essentially follows from the arguments of Mahajan and Vinay [37, Theorem 1] and reader is referred to the original article for a full construction. Their proof involves defining an involution (i.e., is a bijection whose inverse is itself) on the set of clow sequences such that is the identity on the set of all cycle covers (i.e., for any cycle cover ) and for any clow sequence that is not a cycle cover, we have .
We briefly describe the involution given by Mahajan and Vinay [37]. For a clow sequence , the clow sequence is obtained from as follows. Let be the smallest index such that clows are vertex disjoint simple cycles. Traverse the clow starting from the head until we reach some vertex such that either is in some for or completes a simple cycle within . In the former case, we merge the simple cycle with the clow and remove from the sequence to get the clow sequence . In the latter case, we split the clow at the vertex to get a new clow and a simple cycle . Then is the clow sequence obtained by replacing by the new clow and inserting the cycle into the resulting clow sequence. The remaining clows in are kept untouched.
We note that the involution described above does not require that the clow sequence has exactly edges. In particular, is well defined even when for some graph . Furthermore, for we have and , since has the same number of edges as and either has one clow more than or one clow less than . Combining with the argument that is indeed an involution [37, Theorem 1], we conclude:
[TABLE]
Theorem 4.20.
The problem for -matrices can be written as a difference of two functions in , and is -hard with respect to .
Proof A.17**.**
We prove this using a parameterised version of the algorithm given by Mahajan and Vinay [37, Thm. 2]. Let be the adjacency matrix of a directed graph . We construct two -bounded nondeterministic -machines and that have read-once access to their nondeterministic bits such that
Both and behave exactly the same except for the last step, where their answer is flipped. More precisely, both machines nondeterministically guess a -clow sequence, and accepts if the guessed clow sequence has a positive sign while accepts if the guessed clow sequence has a negative sign. Then, it follows from Lemma 4.19 that
Now, we describe the process of guessing nondeterministic bits. The process is the same for both and . We need the following variables throughout the process: curr-head, curr-vertex, parity, count, ccount. The variable curr-head contains the head of the clow currently being constructed, while parity holds the parity of the partial clow constructed so far and is initialised to . Note that this initiation of parity is because we are going to compute sign of a clow sequence as where is the number of clows in with at least two edges. The variable count keeps track of the total number of edges used in the partial clow sequence constructed so far and ccount keeps track of the number of edges in the current -clow. The machines and are described in Algorithm 2.
Note that the guess in step 5 leads to expansion of the current clow with addition of a newly guessed edge. The guess in step 5 leads to completion of the current clow by chosing the back edge to the head (step 10, only existence of such edge needs to be checked), and guessing head for a new clow. Since the parity of the number of clows changes for the case when we flip the parity (step 14). Note that the algorithm reaches step 17 if only if the nondeterministic choices correspond to a clow sequence with exactly edges. Hence, for the machine accepts on all nondeterministic paths where the guessed -clow sequence has parity which completes the correctness proof.
Since both and guess exactly vertices, they are -bounded. Also, only curr-vertex and curr-head need to be stored at any point of time, consequently the machines need only read-once access to nondeterministic bits. Finally, the machines use space and are tail-deterministic, taking only steps after the first nondeterministic step.
For hardness we give a reduction from . Let be an instance of , where is a DAG. Let be the graph obtained by adding the “back edge” to . Note that the set of all - paths in is in bijective correspondence with the set of cycles in . Let be the adjacency matrix of . Then where is the number of - paths in . As a result, can be retrieved from in deterministic logspace. This completes the proof.
Appendix B Branching Programs
Preliminaries
A BP is a layered directed acyclic graph (DAG) with a source node and a sink node (see, e.g., textbook by Vollmer [48]). The vertices of the BP are labelled by input variables in and edges are labelled by [math] or . An input is accepted by if there is a directed to path (short: --path) that is consistent with , that is, for each edge in , where . The BP is said to be deterministic (DBP for short) if every vertex has either no outgoing edge or exactly two outgoing edges, one labelled by [math] and the other by . The size of the program is the number of vertices in it, the length is the length of a longest path starting from . If has length , then we assume that the vertices of are partitioned into layers where contains the source and contains the sink. By layer , we mean the set of vertices in .
A family of branching programs is a family containing one BP for each input length . In this article, every family of BPs is implicitly logspace-uniform (in the context of classical complexity) or -uniform (in the context of parameterised complexity). Details about notions of uniformity in the classical context can be found in the textbook of Vollmer [48]. We need a straightforward adaptation of these notions to the parameterised setting.
We let be the set of all languages accepted by polynomial-size families of BPs, and be the set of all languages accepted by polynomial-size families of DBPs. Now, we will incorporate the notion of parameters to BPs. For that reason, the families of BPs are of the form . The language accepted by is the set of all inputs such that accepts . Let be a complexity class based on families of BPs of size . A family of -BPs is a family of BPs of size .
Note that, while the operator is defined for arbitrary complexity classes, the operators , and are only defined with respect to TM based classes. These operators can be generalised to be also applicable to complexity classes based on BPs by extending the notion of -bounded nondeterminism to this context, though. A family of branching programs with nondeterministic input has additional input bits that are marked as nondeterministic, similar to a choice tape for TMs. Let be such a family and be the number of nondeterministic input bits in . Then accepts an input , if there is a such that accepts . Also, denote by the number of such that accepts . While it might seem counter-intuitive at first, we also use the notion of deterministic families of BPs with nondeterministic input, meaning that the program is deterministic if the nondeterministic input is fixed. Furthermore, is -bounded if there exists a computable function such that for all , the number .
We will now introduce a notion of read-once access to nondeterministic bits for the above classes. This notion is inspired from the notion of read-once certificates considered in [5] and first defined in [36]. Let be a BP with two inputs and . Here, is the nondeterministic input. We say that is read-once certified if there are layers in the underlying graph of such that the variable occurs as a label only in layer numbers such that .
Definition B.1**.**
Let be the class of languages accepted by families of BPs of size for some . Then, is the class of all parameterised languages computable by -bounded families of -BPs.
Definition B.2**.**
Let be the class of languages accepted by families of BPs of size for some . Then, is the class of all parameterised languages computable by -bounded families of -BPs that are read-once certified.
Analogously, we also define the tail-nondeterministic variants of the operators and , called and , respectively.
Parameterised Counting and Branching Programs
Using the notion of bounded nondeterminism for the case of BPs, we define counting classes based on , which can be generalised to further classes of BPs.
Definition B.3**.**
Let be a parameterised function. Then, if there exists a -bounded family of DBPs of size such that for all : . We say that is also in
- •
* if there is such a that is read-once certified,*
- •
* if there is such a that is tail-nondeterministic, and*
- •
* if there is such a that is read-once certified and tail-nondeterministic.*
coincides with the class of all languages accepted by logspace-uniform families of BPs of polynomial size [39]. The desired family of BPs is obtained from the configuration graph of a nondeterministic logspace-bounded machine preserving the number of accepting paths, and hence the result generalises to the corresponding counting classes. We extend these relationships to the parameterised setting. We need the following construction based on configuration graphs.
Lemma B.4**.**
Let be a -bounded nondeterministic \mathbf{para}$$\mathbf{L}-machine. Then for any input there is a layered DAG with two special vertices and such that is the number of paths from to in . Given and , the graph can be computed in .
Proof B.5**.**
In general, the configuration graph of a nondeterministic space-bounded machine is not layered and layering an arbitrary DAG might require reachability which is not possible in logspace-uniform fashion. However, we can modify the machine by adding a step counter, resulting in a layered configuration graph. We explain the details of this modification below.
Let be a -bounded, space-bounded TM. Without loss of generality, has a unique accepting configuration. We now construct the machine modifying as follows: In addition to the tapes of , has an extra tape that keeps a binary step counter for . The machine simulates step by step and after each step of , it increments the counter by one. By construction, behaves exactly as apart from the additional counter. Note that at most bits are required to store the counter because the runtime of is bounded by . For a given input , a configuration of on can be represented as where is a configuration of on the input , and is the content of the additional tape of that contains the binary counter. To simplify things, we assume that is a number in , ignoring the head position information on the tape used for storing the counter. The normalised configuration graph of is a graph on the set of all possible configurations of on any input of length , with the edge relations as follows. There is an edge from configuration to if and only if is reachable from in a single step of and . That is, the steps required to update the counter are merged into the preceding step of in the normalised configuration graph.
The generic configuration graph of on inputs with and is defined as follows: The set of vertices is the set of all configurations of on any input of length without information on the content of the input tape. Additionally, vertices are labelled with variables and edges are labelled from in the same way as for BPs: Vertex labels state which input bit is read in the next step of the computation while edge labels state for which value of the respective input bit that edge is used. It is not hard to see that the underlying graph of any generic configuration graph for input lengths is a layered DAG. Moreover, it can be seen that for any , accepts if and only if there is a directed path from the initial configuration to the accepting configuration in such that the edge labels along the path are consistent with the bits of and . Finally, we may note that there is a -machine that, given and , decides if has an edge from to . Accordingly, the construction of is -uniform.
Theorem B.6**.**
For any , we have that .
Proof B.7**.**
We will first show that for as above, giving the detailed argument for and outlining the changes required (if any) for the remaining cases.
Let via the -uniform family of BPs of size for . Let be a -bounded NTM which on input evaluates on that input, such that every --path in corresponds to a unique accepting path of . Algorithm 3 describes the behaviour of a machine with these properties. Since is -uniform, there is a -machine that on input outputs as a graph. Since cannot store , as usual with composition of space-bounded algorithms, whenever needs to access an edge of , runs the machine from the start until the required edge is output or halts, in which case the required edge is treated as absent in .
By construction for all . Furthermore, is space-bounded for some computable , since it only needs to store two vertices of as well as the space needed to construct . The machine is -bounded, because is -bounded. This concludes the proof for . If is read-once certified for all , then requires only a read-once access to nondeterministic bits. If is tail-nondeterministic, so is .
Now, we prove for as in the statement of the theorem. Our argument crucially uses the fact that the generic configuration graph of a -bounded machine is layered and can be constructed in on input with (Lemma B.4). As in the case of ”, we argue for the case of and mention the modifications required (if any) for the remaining classes. Let via the -bounded machine using space on all inputs . Without loss of generality, we assume that the machine reads either from the input tape or from the choice tape in any configuration. Let be the generic configuration graph of for input length and . Then, accepts if and only if there is an assignment to the nondeterministic input such that has a directed path consistent with the input from the initial configuration to the accepting configuration. In fact, there is a -to--correspondence between accepting computation paths of and choices for . As a result, as required. Also, can be constructed using a uniformity machine. This shows that .
For the case of , we need to show that the resulting DBP is read-once certified. However, it may happen that the configuration reads variable , whereas reads variable with . This makes far from being read-once certified. However, a crucial observation is that in any start-to-terminal path in , the -variables are read in the order , and if is read at any point, then none of the ’s for will be read along this path after this point. Accordingly, with suitable staggering we can make read-once certified. We sketch the process below.
For , let be the largest number such that there is a configuration such that reads the nondeterministic bit . We delay the computations so that the last read of occurs until layer and the variable is read only after layer . That is, for , we wait till layer number before proceeding to read , and for we wait till layer before proceeding to read and so on. This can be achieved by adding necessary dummy nodes that have a single outgoing edge labelled by . For the whole process we only need the value of which can be computed in given access to the uniformity machine. Consequently, the overall staggering process can be done in so that the resulting BP is uniform. It may be noted that we do not alter the number of accepting paths during the above process.
From the above, we conclude that . Finally, in the case of tail-nondeterminism, we may note that if is tail-nondeterministic then so is for every input length . Since the above staggering process does not alter tail-nondeterminism, we conclude that and .
Theorem B.8**.**
For any , we have that .
Proof B.9** (Proof Idea.).**
In the proof of Theorem B.6, for the graph , the properties such as -bounded nondeterminism, read-once certified nondeterministic bits and tail-nondeterminism are preserved only in the component reachable from the initial configuration. The remaining part of the BP may not have these properties but is not relevant to the program.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Manindra Agrawal, Eric Allender, and Samir Datta. On TC 0 , AC 0 , and arithmetic circuits. J. Comput. Syst. Sci. , 60(2):395–421, 2000.
- 2[2] Eric Allender, Robert Beals, and Mitsunori Ogihara. The complexity of matrix rank and feasible systems of linear equations. Computational Complexity , 8(2):99–126, 1999.
- 3[3] Eric Allender and Mitsunori Ogihara. Relationships among PL, #L, and the determinant. ITA , 30(1):1–21, 1996.
- 4[4] Noga Alon, Raphael Yuster, and Uri Zwick. Color-coding. J. ACM , 42(4):844–856, 1995.
- 5[5] Sanjeev Arora and Boaz Barak. Computational Complexity - A Modern Approach . Cambridge University Press, 2009.
- 6[6] Max Bannach, Christoph Stockhusen, and Till Tantau. Fast parallel fixed-parameter algorithms via color coding. In IPEC , volume 43 of LIP Ics , pages 224–235. Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik, 2015.
- 7[7] Richard Beigel and Bin Fu. Circuits over PP and PL. J. Comput. Syst. Sci. , 60(2):422–441, 2000.
- 8[8] Ralph Bottesch. Relativization and interactive proof systems in parameterized complexity theory. In IPEC , volume 89 of LIP Ics , pages 9:1–9:12. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2017.
