1 Introduction

The central question of cooperative game theory is how to distribute the total benefit gained from cooperative behavior of players, and many solution concepts have been proposed to date. Computational complexity is one of the most important criteria to judge whether a given solution concept is appropriate. A solution concept is not applicable in real settings if it requires computation time proportional to an exponential of the problem size; see, for example, [3].

This paper studies cooperative games with directed graph structure from the viewpoint of computational complexity. Khmelnitskaya et al. [5] introduced a cooperative game on a directed graph that furnishes the game with a communication structure. They proposed a single-valued solution concept, and named it the average covering tree value. To construct the average covering tree value, they introduced a so-called covering tree of a directed graph. The average covering tree value is defined as the average of marginal contribution vectors, each of which corresponds to a covering tree. The solution coincides with the Shapley value [7] when the game has a complete communication structure. We can apply the average covering tree value to games on undirected graphs by replacing every undirected link with two oppositely-directed links. The average covering tree value for this class of game is equal to the GC solution proposed by Koshevoy and Talman [6].

Concerning the computational complexity issue, we show in this paper that the problem of calculating the average covering tree value is #P-complete. The proof uses a reduction from counting the number of all linear extensions of an arbitrary partial order, which has been shown by Brightwell et al. to be a #P-complete counting problem. This result implies that an efficient algorithm to calculate the average covering tree value is unlikely to exist.

2 Preliminaries

2.1 TU-Games with Directed Graph Structure

We consider a cooperative transferable utility game with restricted communication structure, called digraph games. A digraph game is represented by a triple (N,v,Γ), where N is a finite set of n players, \(v :2^{N} \rightarrow\mathbb{R}\) is a characteristic function, and Γ is a subset of the set of all ordered pair of nodes, which represents directed communication links between players. A subset S∈2N is called a coalition and v(S) stands for the worth of a coalition S. A payoff vector \({x}\in\mathbb{R}^{n}\) is an n-dimensional vector giving payoff x i to player iN.

2.2 Definitions for Digraph

The pair G=(N,Γ) is called a digraph where N is a finite set of nodes and Γ is a collection of directed links between nodes. In this paper, we only consider digraphs without self-loops. For a digraph G=(N,Γ), a sequence of different nodes (i 1,i 2,⋯,i k ), k⩾2, is a path in Γ if {(i h ,i h+1),(i h+1,i h )}∩Γ≠∅ for h=1,2,⋯,k−1. A path is said to be a directed path if (i h ,i h+1)∈Γ for h=1,2,⋯,k−1. A path is said to be a cycle in Γ if {(i k ,i 1),(i 1,i k )}∩Γ≠∅, and a directed path is said to be a directed cycle in Γ if (i k ,i 1)∈Γ. A digraph G=(N,Γ) is said to be acyclic if it has no directed cycles, and to be transitive if for all i,j,kN, (i,j)∈Γ and (j,k)∈Γ imply (i,k)∈Γ. For a digraph G=(N,Γ), the subset of Γ induced by S∈2N is defined as

$$\varGamma|S:=\bigl\{ (i,j) \in\varGamma\mid i,j \in S \bigr\}. $$

A subset S∈2N is connected if for any two distinct nodes i,jS there is a path in Γ|S between i and j. For S∈2N, a subset K of S is called a connected component of S if K is maximally connected, i.e., K is connected but the set K∪{j} is not connected for any jSK. In this paper, we assume that N is always connected in the digraph (N,Γ).

For each node iN of a digraph G=(N,Γ) we define the set of children ch(Γ,i) and the set of successors scc(Γ,i) as

$${\textrm{ch}}({\varGamma},i)=\bigl\{ j \in N \mid(i,j) \in\varGamma\bigr\} $$

and

$${\mathrm{scc}}({\varGamma},i)=\{ j \in N \mid\mbox{there exists a directed path from $i$ to $j$ in $\varGamma$}\}. $$

We also write

$$\overline{{\mathrm{scc}}}({\varGamma},i)=\{i\}\cup{\mathrm {scc}}({ \varGamma},i). $$

A node iN is said to be a predecessor of jN in Γ if j∈scc(Γ,i). We denote the set of predecessors of j by prd(Γ,j), i.e.,

$${\mathrm{prd}}({\varGamma},j)=\bigl\{ i\in N \mid j\in{\mathrm {scc}}({ \varGamma},i)\bigr\}. $$

An acyclic connected digraph (N,T) is said to be a tree if it has a unique node without predecessors, the root, and for every other node in N there is a unique directed path in T from the root to that node. A node iS is an undominated node of S if prd(Γ|S,i)⊆scc(Γ|S,i), and the set of undominated nodes of S is denoted by U(Γ,S), i.e.,

$$U({\varGamma},S)=\bigl\{ i\in S \mid{\mathrm{prd}}({\varGamma|S},i)\subseteq { \mathrm{scc} }({\varGamma|S},i)\bigr\}. $$

A node iS is a nondominant node of S if scc(Γ|S,i)⊆prd(Γ|S,i), and the set of non dominant nodes of S is denoted by D(Γ,S), i.e.,

$$D({\varGamma},S)=\bigl\{ i\in S \mid{\mathrm{scc}}({\varGamma|S},i)\subseteq { \mathrm{prd} }({\varGamma|S},i)\bigr\}. $$

A node iN is called a minimum node of (N,Γ) if i∈scc(Γ,j) for every jN∖{i}. If an acyclic digraph has a minimum node, it is uniquely determined.

2.3 Definitions for Poset

partially ordered set, or poset for short, is a pair (N,Γ) where N is a finite set and Γ is a partial order on N, that is, an irreflexive, antisymmetric, and transitive binary relation. Two elements i and j are comparable in Γ if either (i,j)∈Γ or (j,i)∈Γ. A linear order on N is a partial order Γ in which every pair of elements of N is comparable. A linear extension of a partial order Γ on N is a linear order \(\overline{\varGamma}\) on N such that \((i,j) \in\overline{\varGamma}\) whenever (i,j)∈Γ. Equivalently, a linear extension of a partial order Γ on N is a bijection π from N to {1,2,⋯,|N|} such that for all i,jN, (i,j)∈Γ implies π(i)<π(j).

2.4 Digraphs and Posets

Every poset (N,Γ) corresponds to a digraph by considering N as the set of nodes and Γ as the set of directed links. This digraph is acyclic and transitive. Conversely, for every acyclic transitive digraph G=(N,Γ), Γ is a partial order on N.

Lemma 2.1

(Bondy [1])

A digraph G is a poset if and only if G is acyclic and transitive.

3 The Average Covering Tree Value

3.1 Covering Trees

In this section, we provide the definition of the average covering tree value introduced by Khmelnitskaya et al. [5]. The average covering tree value is the average of marginal contribution vectors with respect to specific trees, called covering trees of G=(N,Γ). They propose to construct a covering tree of G by Algorithm 3.1 given below.

Algorithm 3.1
figure 1

Construction of a covering tree T of G

After initialization in Step 1, a node iU(Γ,N) is taken as the root of a covering tree in Step 2. In the next iteration step after node i is deleted from N, the algorithm selects an undominated node of each connected component, and expands the tree T towards the selected undominated nodes from node i. Setting Q(i) be empty, the algorithm proceeds to Step 4. As long as there remains a nonempty Q(j), this procedure is repeated, and ends up having explored all the nodes.

It is clear that the output T is a rooted tree that spans N. More importantly, since this algorithm grows the tree by adding undominated nodes of remaining connected components, the covering tree T preserves the subordination among nodes. This property is stated as the following lemma in [5].

Lemma 3.1

(Khmelnitskaya et al. [5])

Let T be a covering tree of a digraph (N,Γ). If (i,j)∈Γ and i∉scc(Γ,j), then \(\overline{\mathrm{scc}}(\varGamma,j) \subseteq\mathrm{scc}({T},i)\).

Example 3.1

Three digraphs and their covering trees are given in Figs. 1, 2 and 3. The digraph G 1 is acyclic and transitive, and has a minimum node 3. Observe that every covering tree forms a directed path. G 2 is acyclic and transitive, but has no minimum node. The last digraph G 3 has a minimum node 4 but is neither acyclic nor transitive.

Fig. 1
figure 2

G 1: Acyclic transitive digraph with a minimum node and its covering trees

Fig. 2
figure 3

G 2: Acyclic transitive digraph without a minimum node and its covering trees

Fig. 3
figure 4

G 3: Not acyclic digraph with a minimum node and its covering trees

As seen in the above examples, covering trees may have different structures according to digraphs considered and the root chosen. We will discuss in more detail in the next section. We denote by \(\mathcal{T}(\varGamma)\) the set of all covering trees of a digraph G=(N,Γ) constructed by Algorithm 3.1.

Definition 3.1

(Marginal Contribution Vector)

For a digraph game (N,v,Γ), the marginal contribution vector m T corresponding to a covering tree \(T \in\mathcal {T}(\varGamma)\) is the vector of payoffs given by

$$ m^{T}_{i}=v\bigl(\overline{\mathrm{scc}}(T,i)\bigr)-\sum _{j \in\textrm {ch}({T},i)}v\bigl(\overline {\mathrm{scc}}({T},j)\bigr) $$
(3.1)

for all iN.

Definition 3.2

(Average Covering Tree Value)

For a digraph game (N,v,Γ), the average covering tree value is the average of the marginal contribution vectors m T with respect to all covering trees of the digraph (N,Γ), i.e.,

$$ \mathit{ACT}(N,v,\varGamma)=\frac{1}{|\mathcal{T}(\varGamma)|}\sum _{T\in\mathcal{T}(\varGamma)} {m}^{T}. $$
(3.2)

3.2 Properties of Covering Trees

We give some properties of covering trees provided that a digraph is acyclic.

Lemma 3.2

Suppose G=(N,Γ) is an acyclic digraph. Then, iU(Γ,S) if and only if there is no node jS such that (j,i)∈Γ|S.

Proof

(If): It holds from the definition of undominated node.

(Only-if): Let iU(Γ,S). Assume that there exists a node jS such that (j,i)∈Γ|S. Then j∈prd(Γ|S,i), which implies j∈scc(Γ|S,i) by the definition of undominated node. Thus a directed path from i to j in Γ|S and the directed link (j,i) form a directed cycle in G, contradicting the fact that G is acyclic. □

Lemma 3.3

Suppose G=(N,Γ) is an acyclic digraph. Then, node iD(Γ,S) if and only if there is no node jS such that (i,j)∈Γ|S.

Proof

(If): It holds from the definition of nondominant node.

(Only-if): Let iD(Γ,S) and assume that there exists a node jS such that (i,j)∈Γ|S. Then j∈scc(Γ|S,i), hence we see j∈prd(Γ|S,i) since iD(Γ,S). Thus a directed path from j to i in Γ|S and the directed link (i,j) form a directed cycle in G, contradicting the fact that G is acyclic. □

Lemma 3.4

Suppose G=(N,Γ) is an acyclic and transitive digraph with a minimum node. Then the covering tree provided by Algorithm  3.1 is a directed path, which yields a linear extension of Γ.

Proof

First, note that G is a poset by Lemma 2.1. Let i be a minimum node of G. Node i will not be selected as j k at Step 3 of Algorithm 3.1 unless all other nodes have been chosen. Thus Q(i) is kept connected via i , and Algorithm 3.1 grows the tree by adding a single node at every iteration. Therefore, the final output T forms a directed path. Denote T as {(i k ,i k+1)∣k=1,2,⋯,n−1}, where i n =i . To show that the sequence (i 1,i 2,⋯,i n ) is a linear extension of Γ, we assume (i k ,i l )∈Γ for some k and l such that k>l. Let S=N∖{i 1,⋯,i l−1}={i l ,⋯,i n }. Then i k S and by construction i l U(Γ,S). This contradicts Lemma 3.2. □

Lemma 3.5

Suppose G=(N,Γ) is an acyclic and transitive digraph with a minimum node. Then, by making all possible choices of undominated nodes in Step 2 and Step 3, Algorithm  3.1 yields all linear extensions of Γ.

Proof

We have seen in Lemma 3.4 that Algorithm 3.1 yields a linear extension of Γ. We will show that any linear extension of Γ can be produced by Algorithm 3.1. Let (i 1,i 2,⋯,i n ) be any linear extension of Γ. Then (i k ,i 1)∉Γ for any k>1, meaning i 1U(Γ,N). Hence Algorithm 3.1 can choose i 1 at Step 2. We suppose that Algorithm 3.1 has grown the tree T in the order of i 1,i 2,⋯,i h−1, and show that i h can be one of the candidate nodes to be chosen at the next iteration. After i h−1 is selected as j k , Q(i h−1) is set to N∖{i 1,i 2,⋯,i h−1}={i h ,i h+1,⋯,i n } and Q(j)=∅ for all other node j. Hence Algorithm 3.1 chooses Q(i h−1) as Q(i) at Step 4 and returns to Step 3. Since Q(i h−1) is connected through a minimum node of G, Q(i h−1) itself forms a connected component of itself. Since (i 1,i 2,⋯,i n ) is a linear extension of Γ, (j,i h )∉Γ for any node j∈{i h ,i h+1,⋯,i n }. By Lemma 3.2, i h is an undominated node of {i h ,i h+1,⋯,i n }. Thus, Algorithm 3.1 can choose i h and set T=T∪{(i h−1,i h )} at the next iteration. □

4 #P-Completeness of the Average Covering Tree Value

Given a partial order on the set of players, Faigle and Kern [4] generalized the Shapley value to games where a coalition is formed if and only if it is an ideal of the partial order. The generalized Shapley value is defined as the average of marginal contribution vectors over the set of all linear extensions of the given partial order. We have seen in Lemma 3.5 that the average covering tree value coincides with the generalized Shapley value when a digraph corresponds to a poset and contains a minimum node. Faigle and Kern considered games with {0,1}-valued characteristic functions, and showed in Proposition 3 of [4] that computing the generalized Shapley value is #P-complete. Their proof is based on a polynomial-time reduction from counting the number of linear extensions of a given partial order. We will prove the #P-completeness of the average covering tree value in a similar way to their proof.

We start with giving another representation of the average covering tree value. For a poset (N,Γ), let \(\mathcal{L}(\varGamma)\) denote the set of all linear extensions of Γ. We denote the cardinality of \(\mathcal{L}(\varGamma)\) by (Γ) with the convention that (∅)=1.

Lemma 4.1

Let G=(N,Γ) be an acyclic and transitive digraph with a minimum node, and (N,v,Γ) be a digraph game on G. Then the average covering tree value of player iN is rewritten as

$$\begin{aligned} &\mathit{ACT}_{i}(N,v,\varGamma) \\ &\quad =\frac{1}{\ell(\varGamma)} \sum_{\substack{S \subseteq N;\\ i \in U({\varGamma} ,S), \\ i \in D({\varGamma},(N\setminus S)\cup\{i\}) }} \ell\bigl(\varGamma|\bigl(S\setminus\{i\}\bigr)\bigr)\cdot\ell\bigl( \varGamma|(N\setminus S)\bigr) \cdot\bigl(v(S)-v\bigl(S\setminus\{i\}\bigr)\bigr). \end{aligned}$$
(4.1)

Proof

Take an arbitrary player i and fix it. Since G has a minimum node, Algorithm 3.1 produces all linear extensions of Γ. Hence, the average covering tree value of player i is given by

$$\begin{aligned} &\mathit{ACT}_{i}(N,v,\varGamma) \\ &\quad =\frac{1}{\ell(\varGamma)}\sum_{\pi\in\mathcal{L}(\varGamma)} \bigl(v\bigl(\bigl\{j \in N | \pi(i) \leqslant \pi(j)\bigr\}\bigr)-v\bigl(\bigl\{j \in N | \pi(i) \leqslant \pi(j) \bigr\} \setminus\{i\}\bigr) \bigr). \end{aligned} $$

For each SN such that iU(Γ,S) and iD(Γ,(NS)∪{i}), there is the number

$$\ell\bigl(\varGamma\big|\bigl(S\setminus\{i\}\bigr)\bigr)\cdot\ell\bigl(\varGamma|(N \setminus S)\bigr) $$

of linear extensions \(\pi\in\mathcal{L}(\varGamma)\) such that {jNπ(i)⩽π(j)}=S. Substituting this for (3.2) yields (4.1). □

Let (N,Γ) be an arbitrary poset. Adding a new element i N we extend it as

$$N^{*}=N\cup\bigl\{i^{*}\bigr\} \quad \mbox{and} \quad \varGamma^{*} =\varGamma\cup\bigl\{\bigl(j,i^{*}\bigr) \bigm| j \in N \bigr\}, $$

and make a digraph G =(N ,Γ ). Then G is acyclic and transitive, and has a minimum node. Let (i 1,i 2,⋯,i n+1) be an arbitrary linear extension of Γ , where i n+1=i . Then let

$$\begin{aligned} N^{*}_k &=\{i_k,i_{k+1},\cdots, i_{n+1}\}, \\ \varGamma^{*}_{k}&=\varGamma^{*}|{N^{*}_k}, \\ \delta^{*}_{k}(S)&= \begin{cases} 1& \mbox{if}\ S=N^{*}_k, \\ 0& \mbox{otherwise} \end{cases} \end{aligned}$$

for k=1,2,⋯,n+1. Note that \(N^{*}_{k}\) is connected, \((N^{*}_{k},\varGamma^{*}_{k})\) is a poset with a minimum node, and the leading node i k is an undominated node of \(N^{*}_{k}\), i.e., \(i_{k}\in U(\varGamma^{*}_{k}, N^{*}_{k})\).

Proposition 4.1

(#P-Completeness of the Average Covering Tree Value)

Assume that for k=1,2,⋯,n there exists a polynomial-time algorithm to compute the average covering tree value for digraph games \((N^{*}_{k}, \delta^{*}_{k}, \varGamma^{*}_{k})\) constructed from a given poset (N,Γ). Then there exists a polynomial-time algorithm to compute the number (Γ) of linear extensions of Γ.

Proof

Since each \(N^{*}_{k}\) contains a minimum node i n+1, the formula (4.1) yields

$$ \begin{aligned}[b] &\mathit{ACT}_{i_k}\bigl(N^{*}_k, \delta^{*}_{k}, \varGamma^{*}_{k}\bigr) \\ &\quad = \frac{1}{\ell(\varGamma^{*}_{k})} \sum_{\substack{S \subseteq N^{*}_k;\\ i_k \in U({\varGamma ^{*}_{k}},S),\\ i_k \in D({\varGamma^{*}_{k}},(N^{*}_k \setminus S)\cup\{ i_k\})}} \ell\bigl(\varGamma^{*}\big|\bigl(S\setminus\{i_k \}\bigr)\bigr)\cdot\ell\bigl(\varGamma ^{*}\big|\bigl(N^{*}_k \setminus S\bigr)\bigr) \\ &\qquad {}\cdot\bigl(\delta^{*}_{k}(S)- \delta^{*}_{k}\bigl(S\setminus\{i_{k}\}\bigr) \bigr) \\ &\quad = \frac{1}{\ell(\varGamma^{*}_{k})}\ell\bigl(\varGamma ^{*}\big|\bigl(N^{*}_{k} \setminus\{i_k\}\bigr)\bigr)\cdot\ell(\emptyset) =\frac{\ell(\varGamma^{*}_{k+1})}{\ell(\varGamma^{*}_{k})} \end{aligned} $$
(4.2)

for k=1,2,⋯,n+1. It follows that

$$ACT_{i_1}ACT_{i_2}\cdots ACT_{i_{n}}=\ell\bigl( \varGamma^{*}\bigr)^{-1}. $$

Since i is a minimum node of (N ,Γ ), we have

$$\ell\bigl(\varGamma^{*}\bigr)=\ell\bigl(\varGamma^{*}\big|{N} \bigr)=\ell(\varGamma). $$

Consequently, we obtain

$$ACT_{i_1}ACT_{i_2}\cdots ACT_{i_{n}}=\ell( \varGamma)^{-1}. $$

This proves the proposition. □

Proposition 4.1 states that we are able to compute (Γ) in polynomial-time if there exists a polynomial-time algorithm to compute \(ACT_{i_{k}}(N^{*}_{k}, \delta^{*}_{k}, \varGamma|_{N^{*}_{k}})\) for k=1,2,⋯,n. Brightwell and Winkler [2] proved that the problem of counting the number of linear extensions of an arbitrary partial order is #P-complete. Therefore, computing the average covering tree value for this class of games is also #P-complete, implying that an efficient algorithm is unlikely to exist.

Note that our main result is not a direct consequence of Proposition 3 in [4]. This is because the average covering tree value coincides with the generalized Shapley value only when the digraph has a minimum node. Adding a minimum node i to a given poset plays a crucial role in obtaining (4.2) in the proof of Proposition 4.1.

5 Conclusion

In this paper, we showed that computing the average covering tree value is #P-complete even if the characteristic function of the game is {0,1}-valued. Characterization of games whose average covering tree value can be calculated efficiently might be an interesting future research theme. It seems reasonable to conjecture that the average covering tree value can be computationally more tractable when the digraph has tree-like structure. Development of an efficient algorithm is also desirable.