Abstract
We consider the -complete problem of counting the number of linear extensions of a poset ; a fundamental problem in order theory with applications in a variety of distinct areas. In particular, we study the complexity of parameterized by the well-known decompositional parameter treewidth for two natural graphical representations of the input poset, i.e., the cover and the incomparability graph. Our main result shows that is fixed-parameter intractable parameterized by the treewidth of the cover graph. This resolves an open problem recently posed in the Dagstuhl seminar on Exact Algorithms. On the positive side we show that becomes fixed-parameter tractable parameterized by the treewidth of the incomparability graph.
Keywords: Partially ordered sets, Linear extensions, Parameterized complexity, Structural parameters, Treewidth
Introduction
Counting the number of linear extensions of a poset is a fundamental problem of order theory that has applications in a variety of distinct areas such as sorting [30], sequence analysis [25], convex rank tests [27], sampling schemes of Bayesian networks [28], and preference reasoning [24]. Determining the exact number of linear extensions of a given poset is known to be #P-complete [6] already for posets of height at least 3. Informally, #P-complete problems are as hard as counting the number of accepting paths of any nondeterministic Turing machine, implying that such problems are not tractable unless P = NP. The currently fastest known method for counting linear extensions of a general n-element poset is by dynamic programming over the lattice of downsets and runs in time [10]. Polynomial time algorithms have been found for various special cases such as series-parallel posets [26] and posets whose cover graph is a (poly)tree [2]. Fully polynomial time randomized approximation schemes are known for estimating the number of linear extensions [7, 13].
Due to the inherent difficulty of the problem, it is natural to study whether it can be solved efficiently by exploiting the structure of the input poset. In this respect, the parameterized complexity framework [9, 12] allows a refined view of the interactions between various forms of structure in the input and the running time of algorithms. The idea of the framework is to measure the complexity of problems not only in terms of input sizes, but also with respect to an additional numerical parameter. The goal is then to develop so-called fpt algorithms, which are algorithms that run in time where n is the input size and f is a computable function depending only on the parameter k. A less favorable outcome is a so-called XP algorithm, which runs in time ; the existence of such algorithms then gives rise to the respective complexity classes (fixed-parameter tractable) and XP.
The first steps in this general direction have been taken, e.g., in [19], using the decomposition diameter as a parameter, in [15] using a parameter called activity for N-free posets, and very recently in [22], where the treewidth of the so-called cover graph was considered as a parameter. Also the exact dynamic programming algorithm [10] can be shown to run in time for a poset with n elements and width w (the size of the largest anti-chain). Interestingly, none of these efforts has so far led to an fpt algorithm.
We believe that this uncertainty about the exact complexity status of counting linear extensions with respect to these various parameterizations is at least partly due to the fact that we deal with a counting problem whose decision version is trivial, i.e., every poset has at least one linear extension. This fact makes it considerably harder to show that the problem is fixed-parameter intractable; in particular, the usual approach based on parsimonious reductions fails. On the other hand, the same predicament makes studying the complexity of counting linear extensions significantly more interesting, as noted also by Flum and Grohe [16]:
The theory gets interesting with those counting problems that are harder than their corresponding decision versions.
Results
In this paper we study the complexity of counting linear extensions when the parameter is the treewidth—a fundamental graph parameter which has already found a plethora applications in many areas of computer science [17, 18, 29]. In particular, we settle the fixed-parameter (in)tractability of the problem when parameterizing by the treewidth of two of the most prominent graphical representations of posets, the cover graph (also called the Hasse diagram) and the incomparability graph.
Our main result then provides the first evidence that the problem does not allow for an fpt algorithm parameterized by the treewidth of the cover graph unless . We remark that this complements the XP algorithm of [22] and resolves an open problem recently posed in the Dagstuhl seminar on Exact Algorithms [21]. The result is based on a so-called fpt turing reduction from Equitable Coloring parameterized by treewidth [14], and combines a counting argument with a fine-tuned construction to link the number of linear extensions with the existence of an equitable coloring. To the best of our knowledge, this is the first time this technique has been used to show fixed-parameter intractability of a counting problem.
We complement this negative result by obtaining an fpt algorithm for the problem when the parameter is the treewidth of the incomparability graph of the poset. To this end, we use the so-called combined graph (also called the cover-incomparability graph [5]) of the poset, which is obtained from the cover graph by adding the edges of the incomparability graph. We employ a special normalization procedure on a decomposition of the incomparability graph to show that the treewidth of the combined graph must be bounded by the treewidth of the incomparability graph. Once this is established, the result follows by giving a formulation of the problem in Monadic Second Order Logic and applying an extension of Courcelle’s Theorem for counting.
Organization of the Paper
The paper is organized as follows. Section 2 introduces the required preliminaries and notation. Section 3 is then dedicated to proving the fixed-parameter intractability of the problem when parameterized by the treewidth of the cover graph, and the subsequent Sect. 4 presents our positive results for the problem. Concluding notes are then provided in Sect. 5.
Preliminaries
For standard terminology in graph theory, such as the notions of a graph, digraph, path, etc. we refer readers to [11]. Given a graph G, we let V(G) denote its vertex set and E(G) its edge set. The (open) neighborhood of a vertex is the set and is denoted by N(x). The closed neighborhood N[v] of v is defined as . A path between two disjoint vertex sets is a path with one endpoint in A, one endpoint in B, and all internal vertices disjoint from . A set is a separator in G if contains at least two connected components.
We use [i] to denote the set . The following fact about prime numbers will also be useful later.
Fact 1
([6]) For any , the product of primes strictly between n and is at least .
Treewidth
A tree-decomposition of a graph G is a pair , where T is a rooted tree whose every vertex t is assigned a vertex subset , called a bag, such that the following properties hold:
,
for every , the set induces a connected subtree of T (monotonicity), and
for each there exists such that .
To distinguish between the vertices of the tree T and the vertices of the graph G, we will refer to the vertices of T as nodes; for brevity, we will also interchange T and V(T) when the context is clear. The width of the tree-decomposition is . The treewidth of G, , is the minimum width over all tree-decompositions of G.
In some cases, we will make use of a well-established canonical form of tree-decompositions. A tree-decomposition is nice if T contains a root r (introducing natural ancestor-descendant relations in T) and the following conditions are satisfied:
and for every leaf of T. In other words, all the leaves as well as the root contain empty bags.
- Every non-leaf node of T is of one of the following three types:
- Introduce node A note t with exactly one child such that for some vertex ; we say that v is introduced at t. If and uv is an edge in G, then we also say that uv is introduced at t.
- Forget node A note t with exactly one child such that for some vertex ; we say that w is forgotten at t.
- Join node A node t with two children , such that .
We note that there exists a polynomial-time algorithm that converts an arbitrary tree-decomposition into a nice tree-decomposition of the same width [23]. A path-decomposition is a tree-decomposition where each node of T has degree at most 2, and nice path-decompositions are nice tree-decompositions which do not contain join nodes. Nice path-decompositions can also be computed from standard path-decompositions in polynomial time while preserving width [23]. Observe that any path-decomposition can be fully characterized by the order of appearance of its bags along T, and hence we will consider succinct representations of path-decompositions in the form , where is the i-th bag in . The pathwidth of G, , is the minimum width of a path-decomposition of G.
We list some useful facts about treewidth and pathwidth.
Fact 2
[3, 4] There exists an algorithm which, given a graph G and an integer k, runs in time and either outputs a tree-decomposition of G of width at most k or correctly identifies that . Furthermore, there exists an algorithm which, given a graph G and an integer k, runs in time and either outputs a path-decomposition of G of width at most k or correctly identifies that .
Fact 3
(Folklore) Let be a tree-decomposition of G and . Then each connected component of lies in a single subtree of . In particular, for each connected component C of there exists a subtree of such that for each vertex there exists such that .
We note that if G is a directed graph, then and a tree-decomposition of G refer to the treewidth and a tree-decomposition of the underlying undirected graph of G, i.e., the undirected graph obtained by replacing each directed edge with an edge (and removing duplicate edges).
Monadic Second Order Logic
We consider Monadic Second Order (MSO) logic on (edge-)labeled directed graphs in terms of their incidence structure whose universe contains vertices and edges; the incidence between vertices and edges is represented by a binary relation. We assume an infinite supply of individual variables and of set variables The atomic formulas are Vx (“x is a vertex”), Ey (“y is an edge”), Ixy (“vertex x is incident with edge y”), Hxy (“vertex x is the head of the edge y”), Txy (“vertex x is the tail of the edge y”), (equality), (inequality), (“vertex or edge x has label a”), and Xx (“vertex or edge x is an element of set X”). MSO formulas are built up from atomic formulas using the usual Boolean connectives , quantification over individual variables (, ), and quantification over set variables (, ).
Let be an MSO formula with a free set variable X. For a labeled graph and a set we write if the formula holds true on G whenever X is instantiated with S.
The following result (an extension of the well-known Courcelle’s Theorem [8]) shows that if G has bounded treewidth then we can count the number of sets S with .
Fact 4
[1] Let be an MSO formula with a free set variable X and w a constant. Then there is a linear-time algorithm that, given a labeled directed graph of treewidth at most w, outputs the number of sets such that .
We note that the above result requires a tree-decomposition of width at most w to be provided with the input. However, as seen in Fact 2, for a graph of treewidth at most w such a tree decomposition can be found in linear time, hence we can drop this requirement from the statement of the theorem.
Posets
A partially ordered set (poset) is a pair where P is a set and is a reflexive, antisymmetric, and transitive binary relation over P. The size of a poset is . We say that pcovers for , denoted by , if , , and for every with it holds that . We say that p and are incomparable (in ), denoted , if neither nor .
A chainC of is a subset of P such that or for every . An antichainA of is a subset of P such that for all it is true that . A family of pairwise disjoint subsets of P forms a total order if for each and each , , it holds that iff . Furthermore, for each we say that and are consecutive. We call a poset such that every two elements of are comparable a linear order. A linear extension of a poset is a reflexive, antisymmetric, and transitive binary relation over P such that whenever and the poset is a linear order.
We denote the number of linear extensions of by . For completeness, we provide a formal definition of the problem of counting the number of linear extensions below. ![]()
We consider the following graph representations of a poset . The cover graph of , denoted , is the undirected graph with vertex set P and edge set . The incomparability graph of , denoted , is the undirected graph with vertex set P and edge set . The combined graph of , denoted , is the directed graph with vertex set P and edge set . Finally, the poset graph of , denoted , is the directed graph with vertex set P and edge set . We will use the following known fact about tree-decompositions and path-decompositions of incomparability graphs.
Fact 5
[20, Theorem 2.1] Let be a poset. Then .
Corollary 1
(of Facts 2 and 5) Let be a poset and . Then it is possible to compute a nice path-decomposition of of width at most k in time .
Parameterized Complexity
We refer the reader to [9, 12, 16] for an in-depth introduction to parameterized complexity; here we only briefly summarize the most important notions required by our results.
A parameterized counting problem is a function for some finite alphabet . We call a parameterized counting problem fixed-parameter tractable () if can be computed in time where f is an arbitrary computable function and (x, k) is the instance. The complexity class W[1] can be seen an the analog of NP for parameterized decision problems. To prove that a parameterized problem is W[1]-hard, one can give an fpt turing reduction from a known W[1]-hard problem to ; such an fpt turing reduction is a deterministic algorithm solving with an oracle to with the following properties: (a) the algorithm is FPT, and (b) the parameter for in each oracle query is bounded by a function of the parameter for . To avoid confusion, we remark that there also exists the complexity class W[1] which is an analog of P for parameterized counting problems.
Our main negative result is based on an fpt turing reduction from the following fairly well-known W[1]-hard decision problem [14]. 
We denote by the number of equitable colorings of graph G with r colors. We remark that the problem remains W[1]-hard even if we restrict to the instances, where |V(G)| is divisible by r. This can be seen, for example, by padding of the instance by a single isolated clique.
Fixed-Parameter Intractability of Counting Linear Extensions
The goal of this section is to prove Theorem 1, stated below.
Theorem 1
#LE parameterized by the treewidth of the cover graph of the input poset does not admit an fpt algorithm unless W[1]=.
We begin by giving a brief overview of the proof, whose general outline follows the #P-hardness proof of the problem [6]. However, since our parameter is treewidth, we needed to reduce from a problem that is not fixed-parameter tractable parameterized by treewidth. Consequently, instead of reducing from SAT, we will use Equitable Coloring. This made the reduction considerably more complicated and required the introduction of novel gadgets, which allow us to encode the problem without increasing the treewidth too much.
The proof is based on solving an instance (G, r) of Equitable Coloring[tw] in FPT time using an oracle that solves #LE in FPT time parameterized by the treewidth of the cover graph (i.e., an fpt turing reduction). The first step is the construction of an auxiliary poset of size . Then, for a given sufficiently large (polynomially larger than |V(G)|) prime number p, we show how to construct a poset such that , where is a constant that depends on p and is not divisible by p. Therefore, if we choose a prime p that does not divide , then will not be divisible by p. Using Fact 1 we show that if , then there always exists a prime p within a specified polynomial range of |V| such that p does not divide .
From the above, it follows that there exists an equitable coloring of G with r colors if and only if, for at least one prime p within a specified (polynomial) number range, the number of linear extensions of is not divisible by p. Moreover, we show that all inputs for the oracle will have size polynomial in the size of G and treewidth bounded by a polynomial in . Before proceeding to a formal proof of Theorem 1, we state two auxiliary lemmas which will be useful for counting linear extensions later in the proof.
Lemma 1
If a poset is a disjoint union of posets for some positive integer k, then
Proof
We use induction on k, and observe that the lemma trivially holds for . Let denote the disjoint union of posets . For each combination of linear extension of and of there are linear extensions of . Hence,
In the following we say that a set C of elements of a poset is a connected component of if C is a connected component of .
Lemma 2
Let p be a prime number and be a connected component of a poset such that . If the number of linear extensions of is not divisible by p, then the number of elements in each connected component of other than is divisible by p.
Proof
Let be a connected component of different than . First note that from Lemma 1, it is clear that will be divisible by the number of linear extensions of the poset formed as a disjoint union of and . Now, by Lemma 1 it holds that
Since is not divisible by p, it must follow that is also not divisible by p. Note that is a natural number and a divisor of . Furthermore, cannot be divisible by p since p is prime. Hence it follows that cannot be divisible by p. Suppose that for some non-negative integers a and b such that ; then we obtain that the expression is not divisible by p. But
which is clearly divisible by whenever . Therefore and hence is divisible by p, which concludes the proof of the lemma.
We now proceed to the proof of our main theorem.
Proof
(of Theorem 1) The proof is structured as follows. We begin by giving the construction of and , after which we establish the desired properties of and , and summarize in the conclusion.
Construction ofand the main gadget Let (G, r) be an instance of Equitable Coloring[tw] such that |V(G)| is divisible by r (if this is not the case, then this can be enforced by padding the instance with isolated vertices, see also [14]). We begin by constructing the poset , which will play an important role later on. For every vertex v of V(G) we create elements denoted , where and , such that the only dependencies in the poset between these elements are for all , for all . For every edge we create pairwise-incomparable elements , such that . The dependencies of are: if then , and if then (see also Fig. 1).
Fig. 1.

The cover graph for an edge of G in
Construction of Let us now fix a prime number p such that p does not divide and . The main gadget in our reduction is a so-called (a, b)-flower, which consists of an antichain of a vertices (called the petals) covering a chain of elements (called the stalk); an illustration is provided in Fig. 2. Due to Lemma 2, (a, b)-flowers will later allow us to force a choice of exactly b vertices out of a.
Fig. 2.

An (a, b)-flower
Let G be a graph, r be an integer and p be a prime number as above. Recall that |V(G)| is divisible by r and let (note that this implies that each color in an equitable coloring of G must occur precisely s times in G). We proceed with a description of the poset . The poset is split into “levels” by linearly ordered elements , called the anchors. Each of these levels, besides , will consist of some flowers and a chain of elements which we call a stick; each of these flowers and the stick will always be pairwise incomparable. The anchors and are the unique minimum and maximum elements, respectively. The stick and all the stalks of flowers in level will always lie between two consecutive elements and , and the petals of these flowers will be incomparable with as well as some anchors above that (as defined later). Observe that while the relative position of any stalk and any anchor is fixed in every linear extension, petals can be placed above .
We say that a flower (or its stalk, petals, or elements) is associated with the level in which it is constructed, i.e., with the level such that for stalk elements c and and for petals d. We denote the set of all petals associated with level as (see Fig. 3). For the construction, it will be useful to keep in mind the following intended goal: whenever an (a, b)-flower is placed in level i, it will force the selection of precisely b petals (from its total of a petals), where selected elements remain on level i (i.e., between and ) in the linear extension and unselected elements are moved to level (i.e., between and ) in the linear extension. We will later show that the total number of linear extensions which violate this goal must be divisible by p, and hence such extensions can all be disregarded modulo p.
Fig. 3.

Each level consists of a chain of length and a few flowers. The set of petals associated with level is denoted by
The first r levels are so-called color class levels, each representing one color class. We use these levels to make sure that every color class contains exactly s vertices. Aside from the stick, each such level contains a single (|V(G)|, s)-flower. Recall that the stalk and the stick on level both lie between anchors and , and that the stalk and the flower are incomparable. We associate each petal of the flower at level with a unique vertex and denote the petal . Each petal will be incomparable with all anchors above up to , i.e., for and . Intuitively, the flower in each color class level will later force a choice of s vertices to be assigned the given color.
Level is called the vertex level and consists of one stick and |V(G)|-many (r, 1)-flowers; the purpose of this level is to ensure that every vertex is assigned exactly one color. Each flower is associated with one vertex and we denote the petals of the flower associated with vertex v as for . We set for all and .
Level is called the edge level, and its purpose is to ensure that the endpoints of every edge have a different color. It consists of a stick and |E(G)|-many -flowers. Each flower is associated with one edge and we denote the petals of the flower associated with e as for and . Moreover, for edge we set , , and we set whenever . Observe that this forces any petal to lie between and in every linear extension (i.e., prevents from being “selected”).
Level is called the trash level. It does not contain any new elements in the poset, but it plays an important role in the reduction: we will later show that any petals which are interpreted as “not selected” must be located between and in any linear extension that is not automatically “canceled out” due to counting modulo p.
A high-level overview of the whole constructed poset is presented in Fig. 4.
Fig. 4.

The cover graph of . The edge e is the edge in G between vertices u and v
Establishing the desired properties ofand We begin by formalizing the notion of selection. Let a configuration be a partition of petals of all flowers into sets . Let denote a set of all configurations. We say that a linear extension of respects the configuration if and we denote the set of all linear extensions of that respects by . We say that a configuration is consistent if is non-empty; this merely means that does not violate any inequalities in . Observe that if is consistent, then is exactly the set of linear extension of the partial order , where is obtained by enriching with the relations and performing transitive closure (in other words, is obtained by enforcing onto ).
Since every linear extension of respects exactly one configuration, it is easy to see that . Intuitively, a configuration contributes to the above sum modulo p if is not divisible by p. We shall prove that the only configurations which contribute to this sum modulo p are those where from every (a, b)-flower there are exactly b petals in the same level as the stalk, and the remaining petals are in the trash. Furthermore, in each configuration which contributes to the above sum modulo p, the petals in represent a proper equitable coloring of G with r colors, and each such configuration is respected by the same number of linear extensions.
Let us first remark that for any configuration , the anchors are comparable to all elements of . Now, let be the poset induced by all elements such that and , . It is readily seen that . We proceed by stating a series of claims about our construction.
Claim 1
For each , it holds that either , or and contains exactly s petals of and no other petals.
Proof
(of the Claim) Assume that and recall that level contains a stick, which is a chain of elements that is incomparable with all elements of in every configuration . By Lemma 2 this implies that every connected component of distinct from the stick has size divisible by p. Clearly, contains only those stalks that are associated with the level , and it contains all such stalks. It is readily seen from the construction that any petal in would necessarily form a component of size one in . Hence, contains only elements associated with level , namely elements of the stick and elements of a (|V(G)|, s)-flower. Moreover, by Lemma 2 and the fact that , each such flower has exactly p elements in level . Since the elements of the stalk must be in , the poset contains exactly s elements of . Clearly, the number of linear extensions of the petals of the (|V(G)|, s)-flower in is s! and hence by Lemma 1, which concludes the proof.
Claim 2
Either , or and contains exactly |V(G)| elements of , specifically one petal for each (r, 1)-flower on level .
Proof
(of the Claim) Assume , and let us first examine elements that are not associated with level . Clearly, no element associated with level can appear in and the only elements associated with any level that can end up in are petals. Each of these elements is smaller than exactly one petal at level and incomparable to all other elements associated with this level. It is easy to see that largest possible size of a connected component of is . By Lemma 2, every connected component in (except for the stick) will have size p, and therefore will contain exactly one element for every set of petals associated with and no other elements. Hence, consists of |V(G)| chains of length p and one chain of length . Then follows from Lemma 1.
Claim 3
Either , or and contains exactly |E(G)| elements of , specifically one petal for each -flower on level .
Proof
(of the Claim) The idea of the proof is similar to the proof of the previous claim, with one additional obstacle: that several flowers can be connected with petals from lower levels into one connected component on level through the petals of flowers on level . So, assume contains a connected component C which contains at least a single stalk. If C contains precisely the single stalk, then by Lemma 2 we have . Otherwise, for each stalk in C, there must be at least one petal in the same flower (otherwise the stalk cannot be connected to the rest of C); in other words, the intersection of each flower and C contains at least p vertices. Let a denote the number of flowers which intersect C, denote , denote and denote . Then it follows that , and recall that . Furthermore, if (and at least one petal from is required unless C contains only a single flower), we have . Hence any such C cannot have size divisible by p and by Lemma 2 we have . Otherwise, if no two flowers are connected through a petal of a flower associated with level , then every connected component of of size p must consist of a stalk and exactly one petal and the claim follows analogously as the proof of Claim 2.
Claim 4
If is a consistent configuration and for all it holds that , then 1) the petals in encode a proper equitable coloring of V(G) where vertex v receives color i iff the petal lies in , and 2) is isomorphic with .
Proof
(of the Claim) From Claims 1, 2 and 3 together with the assumption that , it follows that each of the levels contains exactly s petals associated with the corresponding level, level contains exactly one petal for each vertex of G and level contains exactly one petal for each edge of G.
For the first part of this claim, we observe that each pair of petals in are associated with distinct vertices of G. If this were not the case, then since there would exist a vertex v such that no element of is associated with v. But due to the construction at level there exists some such that . Then, since and can only occur either in level or (the latter of which lies above in the linear extension due to the configuration ), this would lead to a contradiction. In particular, we conclude that there is a matching between the petals in level (encoding the color for each vertex) and the union of petals in levels (encoding the vertices assigned to each color class), and by Claim 1 it follows that there are exactly s petals in associated with each color class.
We now argue that the coloring is proper. Observe that by the same argument as above, if an edge satisfies , then and . From the construction of it follows that if , then . Combining these two facts we get that the coloring encoded in is indeed proper.
Now let us take a look at level . To prove the claim, we will construct an isomorphism f from elements of to elements of . For every vertex , precisely one element and precisely one of the first r levels contains an element associated with v; to be precise, and and hence also for all . We set and , whenever and . For the last remaining elements, we set and . Next, for every edge there is exactly one . Moreover, if then and , and all other petals for this edge e are in . Let , , and otherwise. Then we set . Observe that, since does not lie in , no edge is mapped to the non-existent element in . It is straightforward to verify that f is really bijective mapping between elements of and . Moreover, in if and only if in . Therefore, is isomorphic with and the claim holds.
Claim 5
if and only if .
Proof
(of the Claim) From previous claims and in particular Claim 4, we already know that only if corresponds to an equitable coloring of G with r colors. Moreover, we know that and if , then
Since , is divisible by , but not by and is divisible by , but not by . Therefore, it is readily seen that
is not divisible by p. We will denote this latter expression as ; note that corresponds to the constant introduced at the beginning of this section. Hence, it is easy to see that if denotes the actual number of equitable coloring of G with r colors, then
Since is not divisible by p, it is clear that if and only if , and the claim holds.
Claim 6
If , then there is a prime number p greater than and smaller than such that p does not divide .
Proof
(of the Claim) Let us first upperbound . Clearly, contains elements, hence . It can easily be verified that the number of possibilities of dividing vertices into r color classes with exactly s colors each is . By Fact 1, the product of all primes between and is at least . However, and hence is clearly less than the product of all primes between and . Note that if a natural number N is divisible by set of primes then N is divisible by the product of these primes and in particular N is bigger than the product of these primes. Therefore, cannot be divisible by all primes between and , from which the claim follows.
Claim 7
.
Proof
(of the Claim) To distinguish vertices of G and in this proof, we will refer to the vertices of as elements. So, let be a nice tree-decomposition of G of width . Using , we show how to construct a tree-decomposition of with treewidth at most . The construction can be summarized as follows:
All bags of will contain the anchors as well as the top-most element of each stalk of the (|V(G)|, s)-flowers in the first r levels; let denote this set of elements.
For every bag , the tree-decomposition will contain a node such that if then .
Afterwards, every introduce node that introduces a vertex v will be replaced by a long path which gradually introduces and subsequently forgets all remaining elements associated with the flower of v at level (i.e., the stalk) as well as every petal from the first r levels associated with v .
For each edge e, we pick an introduce node which contains both endpoint of e and extend the path by a new segment which introduces and subsequently forgets all elements associated with the flower of e at level .
The root node is replaced by a path that takes care of all elements which are not associated with any vertex or edge in G.
Let us now take a closer look what happens in when is an introduce node. Let be the vertex introduced at t. Since contains elements , and the maximum element of each stalk of the (|V(G)|, s)-flower in the first r levels, it is easily seen that every petal from the first r levels associated with v as well as the stalk of the flower associated with v in level each forms a separate connected component of . Moreover, for an edge such that contains both endpoints of e, we have that also contains elements and one can see that also the flower associated with e at level is a connected component of . It is readily seen that the singleton, chain, and flower all have pathwidth 1 and hence there is a nice path-decomposition with of the graph containing every petal element from first r levels associated with v, the stalk of the flower associated with v in level , and the flower associated with e in level for every edge e introduced at t. We then replace by a path such that and for each the node with bag is the parent of the node with the bag .
It is easy to see now, that when we are forgetting vertex v in node t in , we can forget elements in , because we already introduced all its adjacent edges in either in the path corresponding to the node of introducing v or the one introducing a neighbor of v.
Finally, when we get to the root node of , we have already forgotten all elements associated with any specific vertex or edge of G. Therefore, the only elements besides which need to be included in are the remaining elements in the stalks in the first r levels and the sticks in every level. However, it is easy to see that at this point they all form separate chains in . Hence there once again exists a path-decomposition of width at most which gradually introduces and subsequently forgets all of these elements.
One can readily see that the properties (T1), (T2), and (T3) are satisfied and we are only left with computing the width of . By construction, every join and forget node in will become a node in whose bag has size at most . On the other hand, every introduce node in will become a path in , and the largest bag on this path has size at most , from which the claim follows.
Concluding the proof Let us summarize the fpt turing reduction used to prove Theorem 1. Given an instance (G, r) of Equitable Coloring[tw], we loop over all primes p such that , and for each such prime we construct the poset ; from Claim 6 it follows that if , then at least one such prime will not divide , and by Claim 7 the cover graph of each of the constructed posets P(G, r, p) has bounded treewidth. For each such poset , we compute by the black-box procedure provided as part of the reduction. If for any prime p we get , then we conclude that (G, r) is a yes-instance, and otherwise we reject (G, r), and this is correct by Claim 5.
Fixed-Parameter Tractability of Counting Linear Extensions
This section is dedicated to proving our algorithmic result, stated below.
Theorem 2
#LE is fixed-parameter tractable parameterized by the treewidth of the incomparability graph of the input poset.
The proof of Theorem 2 is divided into two steps. First, we apply a transformation process to a path-decomposition of small width (the existence of which is guaranteed by Corollary 1) of which results in a tree-decomposition of satisfying certain special properties. The properties of are then used to prove that has treewidth bounded by the treewidth of . In the second step, we construct an MSO formulation which enumerates all the linear extensions of using , and apply Fact 4.
The Treewidth of Combined Graphs
We begin by arguing a useful property of separators in incomparability graphs.
Lemma 3
Let . Then for each pair of distinct connected components in , it holds that for any and any we have iff . Namely, the poset contains a total order of all connected components in .
Proof
We begin by proving the following claim.
Claim 8
Let a, b, c be three distinct elements of such that and both pairs a, c and b, c are comparable. Then iff .
Proof
(of the Claim) Suppose that, w.l.o.g., and . Then by the transitivity of , we get which contradicts our assumption that .
Now to prove Lemma 3, assume for a contradiction that, w.l.o.g., there exist and such that and . Let be an - path in . By Claim 8, implies that every element q on satisfies , and in particular . Next, let be a - path in . Then Claim 8 also implies that each element on satisfies . Since lies on , this would imply that , a contradiction.
To proceed further, we will need some additional notation. Let be a rooted tree-decomposition and . We denote by L(t) the set of all vertices which occur in the “branch” of containing the root r; formally, lies in the same connected component as . We then set . We also let denote the connected component of which contains the root r.
Next, recall that each connected component of the graph obtained after deleting must lie in a subtree of (Fact 3). Let be the set of connected components of . Recall that because of Lemma 3, the components of are totally ordered by . We say that two components , are consecutive if there is no element that is in between elements in these components; formally, for every v it holds that either for all , or for all .
A block of a bag is a maximum set of consecutive connected components in ; note that each block has a natural total ordering among the contained components, given by Lemma 3. We say that a node has z blocks if there exist z distinct blocks of . Blocks will play an important role in the tree-decomposition we wish to obtain from our initial path-decomposition of . The following lemma captures the operation we will use to alter our path-decomposition.
Lemma 4
Let be a rooted tree-decomposition of a graph G and let be such that there are z blocks of . Then there is a tree-decomposition satisfying:
The width of is at most the width of .
The tree contains as a subtree which is separated from the rest of by t.
The degree of t in is .
There exists a bijection between the z blocks of and the z trees in other than such that for each block B of , we have .
For each , we have .
Proof
It will be useful to observe that is a subtree of T and in particular it is connected. Consider the following construction of . First, we copy all nodes of (along with their bags) into , thus ensuring that Property 2 holds. Second, for each block B of we make a copy of the tree , and connect the node corresponding to t in by an edge to the node t in . Moreover, for each node we set . It is easy to verify that all of the required properties are now satisfied, and it remains to show that is indeed a tree-decomposition.
We argue that satisfies all three properties of tree-decompositions. Property (T1) follows directly from fact that was tree decomposition, and hence every vertex that does not occur in a bag in must occur in some bag for some node ; then this vertex either also occurs in or occurs in some block B and hence in . Property (T2) is also straightforward, since each vertex either does not occur in any block or in exactly one block, and in both cases monotonicity follows from the monotonicity of and the construction. For the final Property (T3), we recall that there are no edges between the blocks of ; in particular every edge in is either contained in , goes between a vertex of and a vertex of some block B, or is contained in some block B. In all three cases, it holds that if for some , then for some block B. Therefore, is a tree-decomposition and the proof is complete.
We proceed by showing how Lemma 4 is applied to transform a given path-decomposition.
Lemma 5
Let be a nice path-decomposition of . Then there is a rooted tree-decomposition of with the following properties. is rooted at a leaf r and , the width of is at most the width of , and for any node with blocks:
The degree of t in T is .
There exists a bijection between the z blocks of and the z trees in other than such that for each block B of , we have .
For there exists a vertex v such that , and furthermore has degree at most 2 and 1 block.
For each pair of neighbors , it holds that .
Proof
Let us order the vertices of in the order in which they were introduced in . We set the first leaf of to be the root r, and observe that since is nice. We then process the vertices of in their order of introduction; when processing each such vertex v, we apply Lemma 4 to the unique node t of the current tree-decomposition which is closest to r and contains v; with a slight abuse of terminology, we say that t is the node where v is introduced. We show that the following invariants hold after (and before) each step of this procedure:
For each pair of neighbors , it holds that .
For each vertex u that was already processed, the introduce node of u satisfies the conditions of the lemma.
Any node t of degree greater than 2 is an introduce node of an already processed vertex.
Clearly, all invariant conditions hold for rooted at r (the first invariant condition follows by the fact that is nice, and the remaining two are satisfied trivially). Similarly, all invariant conditions hold after applying Lemma 4 on the first introduce node t in . Indeed, note that since , we can assume w.l.o.g. that t is a child of r and for some vertex v. Then the first and third invariant condition is immediately seen to hold; as for invariant condition 2, if t has more than 1 block then applying Lemma 4 ensures that t satisfies Conditions 1, 2, and 4, while Condition 3 holds since .
For the induction step, suppose that the conditions hold in a tree-decomposition obtained by inductively applying Lemma 4 as above, and the first unprocessed vertex is v. Let t be the unique node where v is introduced, and let be the tree-decomposition we obtained by applying Lemma 4 on and t.
It is easy to verify that then satisfies the desired Conditions 1, 2, and 4 at the node t by Lemma 4. As for Condition 3, since t is the introduce node of v and the first invariant condition holds in , it is clear that for it is the case that . Moreover, cannot be an introduce node, since then would have to introduce an already processed vertex, which would imply that due to our application of Lemma 4 on introduce nodes. So, let us consider the node s on the unique -r path that is the closest introduce node to , and let be the neighbor of s on the s- path. Since no vertex was introduced on the - path, it follows that . Since only has 1 block by the construction, it must be the case that also only has one block, and so Condition 3 also holds.
We proceed by arguing that the invariant conditions remain satisfied by . Since was nice and satisfied the first invariant condition, it is readily seen that the first invariant condition holds for all pairs of neighbors in as well as for t with all of its neighbors. If and are neighbors in a tree of , then by the construction in Lemma 4 there exists a pair of neighbors such that and . But then and the first invariant condition follows. As for the second invariant condition, notice that from the construction it follows that all the vertices that precede v in the order of introduction in must have been introduced in some node of , and the application of Lemma 4 does not alter such introduce nodes for previously processed vertices. Finally, by the induction hypothesis all nodes of have degree at most 2, therefore from the construction in Lemma 4 it is clear that all nodes in also have degree 2. Since all introduce nodes of unprocessed vertices lie in , we conclude that the third invariant condition also holds in .
Now, let us consider the tree-decomposition obtained after processing all vertices of according to the procedure described above. satisfies Condition 4 due to the first invariant of our procedure, and for all other conditions it suffices to consider nodes with more than 1 block. In particular, it suffices to verify that all such nodes satisfy the conditions of Lemma 4 and additionally also condition 3 of this Lemma. So, suppose for a contradiction that there exists a node t which does not meet these conditions, but all nodes on the unique t-r path do. Then there are two possibilities to consider for the unique neighbor of t on the t-r path. If were to have more than 1 block, then by our assumptions would have to satisfy the conditions of Lemma 4, contradicting the fact that t has more than 1 block. On the other hand, if were to have only a single block, then by construction t must be an introduce node of some vertex v and by our invariants and the construction it follows that t in fact must satisfy all the required conditions. In particular we conclude that all nodes t satisfy Conditions 1-4 and the lemma follows.
We call a tree-decomposition rooted at a leaf with which satisfies the properties of Lemma 5 a blocked tree-decomposition. The next ingredient we will need for proving that has small treewidth is the notion of cover-guards.
Let be a tree-decomposition of rooted at r and let . Then the cover-guard of t, denoted , is the set of vertices in L(t) which are incident to a cover edge whose other endpoint lies in R(t); formally, . For a vertex , we let and .
Our next aim is to add all the cover-guards into each bag. Below, we show that this does not increase the size of bags too much.
Lemma 6
Let be a blocked tree-decomposition of of width k. Then for each it holds that .
Proof
First, observe that if a node has 0 blocks, then . So, consider a node t which has exactly 1 block consisting of connected components in .
Claim 9
.
Proof
(of the Claim) Assume for a contradiction that . By Lemma 3 we have that are consecutive connected components in a total order of connected components in . Hence any edge in between R(t) and L(t) must necessarily have one endpoint in . Furthermore, an element in cannot be adjacent to both and in due to transitivity and acyclicity. So, we may partition into and .
By Lemma 3, it also follows that and must each lie in separate connected components of , say and respectively. Furthermore, each element in is maximal in and each element in is minimal in . In particular, each of , forms a clique in . But by our assumption on the size of , at least one of and must have size greater than , which implies that contains a clique of size at least . It is well-known that each clique must be completely contained in at least one bag of a tree-decomposition, and so we arrive at a contradiction with . Hence we conclude that and the claim holds.
Finally, consider a node t which has at least 2 blocks. By Property 3 of Lemma 5, it holds that t has a neighbor in such that and has 1 block. By Claim 9 we know that . Since and , it follows that , and in particular . We have now proved the desired bound for all nodes in , and so the lemma holds.
The following lemma allows us to argue that adding cover-guards into each bag still results in a tree-decomposition; it is worth noting that the assumption that the decomposition is blocked is essential for the lemma to hold.
Lemma 7
Let be a blocked tree-decomposition of rooted at r and let . Then is a tree.
Proof
Since is a tree-decomposition, we have that must be a tree. Consider a connected component A of and its unique A- path Q, with endpoints and . Since r is located at a leaf of T it must hold that . We consider two cases: either r lies in the same connected component as in , or it lies in a different connected component.
In the former case, it follows that each internal vertex q of Q satisfies and . But then by the definition of and the fact that , this would imply , contradicting our construction of Q. Hence if r lies in the same connected component as in , then A is adjacent to .
In the latter case, there must exist a node of degree at least 3 such that each of A, and r occur in different components of . By the definition of , there exists a vertex such that or . Since due to the location of the root and there is a cover edge between them, it follows that either u, v occur in the same connected component of or in two consecutive ones, but in either case u, v must lie in the same block of q, say block B. But since , this contradicts Property 2 in Lemma 5; indeed, each tree in contains at most one of v, u in its bags, and hence there exists no tree in satisfying . Hence r cannot occur in a different connected component than in .
We conclude that Q contains no internal vertices. In particular, every connected component of is adjacent to .
With Lemmas 6 and 7, we have the tools necessary for arguing that there exists a tree-decomposition of the combined graph of small width.
Lemma 8
Let be a blocked tree-decomposition of such that . Then there exists a tree-decomposition of of width at most .
Proof
Consider the tree-decomposition where is defined as follows. For each such that its unique neighbor s in satisfies , we set ; it will be useful to observe that . For all other nodes , we then set . We call nodes of the first type non-standard and nodes of the second type standard.
First, we note that the size of each bag in is at most , since every node satisfies by Lemma 6. Furthermore, satisfies condition (T1) because was a tree-decomposition of . also satisfies condition (T2); indeed, for each it holds that restricted to standard nodes is a connected tree by Lemma 7, and by construction every non-standard node t such that is adjacent to a standard node containing v. So, it only remains to argue condition (T3).
Obviously, condition (T3) holds for any edge of . So, consider two elements u, v of such that or . If there exists a node such that , then and the condition also holds for this edge in . So, assume that and are disjoint and let Q be the unique - path in T. By Property 4, the - path Q in T must contain at least one internal node.
Consider the case where one of these subtrees, say w.l.o.g. , lies in the connected component of . Then for each internal node , it holds that and , which in turn implies that . Let be the endpoint of Q in and let be the neighbor of in Q. By Property 4 we have , which implies that is a non-standard node and in particular . Since is an internal node of Q, it follows that which means that condition (T3) also holds for any edge uv in this case.
Finally, consider the case where there exists a node of degree at least 3 such that each of , and r occur in different components of . Then we reach a contradiction similarly as in the proof of Lemma 7. In particular, since due to the location of the root and there is a cover edge between them, it follows that either u, v occur in the same connected component of or in two consecutive ones, but in either case u, v must lie in the same block of q, say block B. But since , this contradicts Property 2 in Lemma 5; indeed, each tree in contains at most one of v, u in its bags, and hence there exists no tree in satisfying . Hence this case in fact violates our assumptions and cannot occur.
Summarizing the above arguments, we conclude that each bag in has size at most and that satisfies all of the conditions of a tree-decomposition.
Corollary 2
Let be a poset such that . Then .
Proof
By Corollary 1 we know that there exists a nice path-decomposition of of width at most k. By Lemma 5, it follows that there exists a blocked tree-decomposition of of width at most k. The corollary then follows by Lemma 8.
MSO Formulation
In this subsection, we use Fact 4 to prove the following result, which forms the second ingredient required for our proof of Theorem 2.
Lemma 9
#LE is fixed-parameter tractable parameterized by the treewidth of the combined graph of the input poset.
Proof
Let be a poset. Let G be an (edge-)labeled directed graph obtained from by directing every bidirectional edge of , i.e., every edge of , in an arbitrary way and labeling it with the label .
For a set of edges with label , let G[E] be the graph obtained from G after reversing every edge in E. Moreover, for a linear extension of let be the set of edges (u, v) of G such that . Note that because every linear extension of has to respect the direction of the edges in G given by , it holds that every edge in has label .
Claim 10
defines a bijection between the set of linear extensions of and the set of subsets E of edges of G with label such that G[E] is acyclic.
Proof
(of the Claim) Let be a linear extension of . Then, as observed above, is a set of edges of G with label . Moreover, because is a subgraph of and is acyclic so is . Hence, is a function from the set of linear extensions of to the set of subsets E of edges of G with label such that G[E] is acyclic. Towards showing that is injective, assume for a contradiction that this is not the case, i.e., there are two distinct linear extensions and of such that and let u and v be two elements of ordered differently by and . Then and hence either or the label of (u, v) or (v, u) respectively is . W.l.o.g. assume that with label . But then, because and differ on u and v, either but not or but not . In both cases we get a contradiction to our assumption that .
It remains to show that is surjective. To see this let E be a subsets of the edges of G with label such that G[E] is acyclic. Because G[E] is acyclic it has a topological ordering, say , of its vertices. Because G[E] contains as a subgraph and any topological ordering of is a linear extension of , we obtain that is a linear extension and also .
It follows from the above that instead of counting the number of linear extensions of directly, we can count the number of subsets E of the edges of G with label such that G[E] is acyclic. We will show next that there is an MSO formula , whose length is independent of G and can hence be considered constant, such that if and only if X is a subset of the edges of G with label such that G[E] is acyclic. Because of Fact 4, this implies that #LE is fixed-parameter tractable when parameterized by and hence also when parameterized by , concluding the proof of the lemma.
Informally, will check that X is a set of edges of G with label and there is no non-empty set of edges C of G[X] that forms a cycle. For the definition of we will need the following auxiliary formulas.
The formula , which holds if and only if X is a set of edges of G with label .
The formula , which holds if and only if C is a non-empty set of edges of G.
The formula , which holds if and only if the set C of edges of G[X] is a disjoint union of directed cycles. Note that this implies that either C is empty or C contains at least one (directed) cycle.
The formula , which holds if and only if either no edge in C is incident to v or there are exactly two edges in C that are incident to v such that one of them corresponds to an edge in G[X] with tail v and the other corresponds to an edge in G[X] with head v.
The formula , which holds if and only if no edge in C is incident to v.
- The formula
which holds if and only if there are exactly two edges in C that are incident to v such that one of them corresponds to an edge in G[E] with tail v and the other corresponds to an edge in G[E] with head v. - The formula
which holds if and only if v is the head of the edge of G[X] represented by c. - The formula
which holds if and only if v is the tail of the edge of G[X] represented by c.
Then is the formula:
Which concludes the proof.
For completeness, we conclude the section by stating the proof of Theorem 2.
Proof
(of Theorem 2) Let be the input poset and let . Then by Corollary 2, and the theorem follows by Lemma 9.
Conclusions and Future Work
We have given the first parameterized intractability result for counting linear extensions. We hope that the employed techniques will inspire similar results and expand our knowledge about the parameterized complexity of counting problems. In particular, even for #LE there remain many open questions concerning other very natural parameterizations such as the width of the poset (which is, in fact, upper-bounded by the treewidth of the incomparability graph) or the treewidth of the poset graph. Moreover, our intractability result for the treewidth of the cover graph poses the question whether there are stronger parameterizations under which #LE becomes tractable, e.g., the treewidth of the comparability graph (i.e., the undirected graph underlying the poset graph), the treedepth or even vertex cover number of the comparability or cover graph, as well as combinations of these parameters with parameters such as the width, the dimension, or the height of the poset. These numerous examples illustrate that the parameterized complexity of #LE is still largely unexplored. As a side note it would also be interesting to establish whether our hardness result for #LE can be sharpened to W[1]-hardness and to obtain matching membership results.
Acknowledgements
Open access funding provided by Austrian Science Fund (FWF). Eduard Eiben was supported by Pareto-Optimal Parameterized Algorithms (ERC Starting Grant 715744) and by the Austrian Science Fund (FWF, projects P26696 and W1255-N23). Robert Ganian is also affiliated with FI MU, Brno, Czech Republic.
Footnotes
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Arnborg S, Lagergren J, Seese D. Easy problems for tree-decomposable graphs. J. Algorithms. 1991;12(2):308–340. doi: 10.1016/0196-6774(91)90006-K. [DOI] [Google Scholar]
- 2.Atkinson MD. On computing the number of linear extensions of a tree. Order. 1990;7(1):23–25. doi: 10.1007/BF00383170. [DOI] [Google Scholar]
- 3.Bodlaender HL. A linear-time algorithm for finding tree-decompositions of small treewidth. SIAM J. Comput. 1996;25(6):1305–1317. doi: 10.1137/S0097539793251219. [DOI] [Google Scholar]
- 4.Bodlaender HL, Kloks T. Efficient and constructive algorithms for the pathwidth and treewidth of graphs. J. Algorithms. 1996;21(2):358–402. doi: 10.1006/jagm.1996.0049. [DOI] [Google Scholar]
- 5.Bresar B, Changat M, Klavzar S, Kovse M, Mathews J, Mathews A. Cover-incomparability graphs of posets. Order. 2008;25(4):335–347. doi: 10.1007/s11083-008-9097-1. [DOI] [Google Scholar]
- 6.Brightwell, G., Winkler, P.: Counting linear extensions is #P-complete. In: Proceedings of the 3rd Annual ACM Symposium on Theory of Computing, STOC’91, pp. 175–181 (1991)
- 7.Bubley R, Dyer M. Faster random generation of linear extensions. Discrete Math. 1999;201(1–3):81–88. doi: 10.1016/S0012-365X(98)00333-1. [DOI] [Google Scholar]
- 8.Courcelle B. The monadic second-order logic of graphs. i. Recognizable sets of finite graphs. Inf. Comput. 1990;85(1):12–75. doi: 10.1016/0890-5401(90)90043-H. [DOI] [Google Scholar]
- 9.Cygan M, Fomin FV, Kowalik L, Lokshtanov D, Marx D, Pilipczuk M, Pilipczuk M, Saurabh S. Parameterized Algorithms. Berlin: Springer; 2015. [Google Scholar]
- 10.De Loof K, De Meyer H, De Baets B. Exploiting the lattice of ideals representation of a poset. Fundam. Inf. 2006;71(2,3):309–321. [Google Scholar]
- 11.Diestel R. Graph Theory. 4. Berlin: Springer; 2012. [Google Scholar]
- 12.Downey RG, Fellows MR. Fundamentals of Parameterized Complexity. Berlin: Springer; 2013. [Google Scholar]
- 13.Dyer M, Frieze A, Kannan R. A random polynomial-time algorithm for approximating the volume of convex bodies. J. ACM. 1991;38(1):1–17. doi: 10.1145/102782.102783. [DOI] [Google Scholar]
- 14.Fellows MR, Fomin FV, Lokshtanov D, Rosamond FA, Saurabh S, Szeider S, Thomassen C. On the complexity of some colorful problems parameterized by treewidth. Inf. Comput. 2011;209(2):143–153. doi: 10.1016/j.ic.2010.11.026. [DOI] [Google Scholar]
- 15.Felsner S, Manneville T. Linear extensions of N-free orders. Order. 2014;32(2):147–155. doi: 10.1007/s11083-014-9321-0. [DOI] [Google Scholar]
- 16.Flum J, Grohe M. The parameterized complexity of counting problems. SIAM J. Comput. 2004;33(4):892–922. doi: 10.1137/S0097539703427203. [DOI] [Google Scholar]
- 17.Gottlob G, Pichler R, Wei F. Bounded treewidth as a key to tractability of knowledge representation and reasoning. Artif. Intell. 2010;174(1):105–132. doi: 10.1016/j.artint.2009.10.003. [DOI] [Google Scholar]
- 18.Grohe M. The complexity of homomorphism and constraint satisfaction problems seen from the other side. J. ACM. 2007;54(1):1:1–1:24. doi: 10.1145/1206035.1206036. [DOI] [Google Scholar]
- 19.Habib M, Möhring RH. On some complexity properties of N-free posets and posets with bounded decomposition diameter. Discrete Math. 1987;63(2):157–182. doi: 10.1016/0012-365X(87)90006-9. [DOI] [Google Scholar]
- 20.Habib M, Möhring RH. Treewidth of cocomparability graphs and a new order-theoretic parameter. Order. 1994;11(1):47–60. doi: 10.1007/BF01462229. [DOI] [Google Scholar]
- 21.Husfeldt T, Paturi R, Sorkin GB, Williams R. Exponential algorithms: algorithms and complexity beyond polynomial time (Dagstuhl Seminar 13331) Dagstuhl Rep. 2013;3(8):40–72. [Google Scholar]
- 22.Kangas, J.-K., Hankala, T., Niinimäki, T.M., Koivisto, M.: Counting linear extensions of sparse posets. In: Proceedings of the 25th International Joint Conference on Artificial Intelligence, IJCAI 2016, New York City, July 9–15, 2016 (2016) (to appear)
- 23.Kloks T. Treewidth, Computations and Approximations. Berlin: Springer; 1994. [Google Scholar]
- 24.Lukasiewicz T, Martinez MV, Simari GI. Probabilistic preference logic networks. In: Schaub T, Friedrich G, O’Sullivan B, editors. ECAI 2014—21st European Conference on Artificial Intelligence, Aug 18–22, 2014, Prague, Czech Republic—Including Prestigious Applications of Intelligent Systems (PAIS 2014), Amsterdam: IOS Press; 2014. pp. 561–566. [Google Scholar]
- 25.Mannila, H., Meek, C.: Global partial orders from sequential data. In: Proceedings of the 6th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD’00, pp. 161–168, New York (2000). ACM
- 26.Möhring Rolf H. Computationally tractable classes of ordered sets. In: Rival I, editor. Algorithms and Order. Dordrecht: Springer; 1989. pp. 105–193. [Google Scholar]
- 27.Morton J, Pachter L, Shiu A, Sturmfels B, Wienand O. Convex rank tests and semigraphoids. SIAM J. Discrete Math. 2009;23(3):1117–1134. doi: 10.1137/080715822. [DOI] [Google Scholar]
- 28.Niinimäki, T.M., Koivisto, M.: Annealed importance sampling for structure learning in Bayesian networks. In: IJCAI. IJCAI/AAAI (2013)
- 29.Paulusma D, Slivovsky F, Szeider S. Model counting for CNF formulas of bounded modular treewidth. Algorithmica. 2016;76(1):168–194. doi: 10.1007/s00453-015-0030-x. [DOI] [Google Scholar]
- 30.Peczarski M. New results in minimum-comparison sorting. Algorithmica. 2004;40(2):133–145. doi: 10.1007/s00453-004-1100-7. [DOI] [Google Scholar]
