Algorithm Search⌘K

Problemadvanced

Coalition structure generation

Also called optimal coalition structure.

Partition the players into coalitions so that the sum of coalition values is maximum. Dynamic programming solves it in O(3^n) time.

Coalition structure generation asks how to split a set of agents into teams so that the teams together produce the most value. Each team, or coalition, has a value given by a characteristic function, and the value of a split is the sum of the values of its coalitions. The problem is the first step of coalition formation in multiagent systems: before the agents divide the payoff of a coalition, they must decide which coalitions to form. The number of splits grows faster than any exponential function, but a dynamic program over subsets finds the best one in O(3n)O(3^n) time. In terms of the size of the input, which lists 2n2^n values, the problem is in polynomial time, but it is NP-hard when the values are given compactly.

In plain words

A company has a group of workers and many possible teams. For each possible team, it knows how much that team would earn. Every worker must be in exactly one team, and a worker may also work alone. The company wants the split into teams that earns the most in total. Trying every split is hopeless, because the number of splits explodes as the group grows. A smarter method works one group of workers at a time: the best split of a group is found by choosing the team of its first worker and adding the best split of the rest. Remembering the best split for every group makes this fast enough for about twenty workers. If the earnings are given only for a short list of teams, the input is small, and no method is known that is fast compared with it: the problem is hard.

Definition

The input is a set N={1,…,n}N = \{1, \ldots, n\} of agents and a characteristic function v:2N→Rv : 2^N \to \mathbb{R} with v(∅)=0v(\emptyset) = 0, given as a table of 2n−12^n - 1 numbers. A coalition structure is a partition CS={C1,…,Ck}CS = \{C_1, \ldots, C_k\} of NN into nonempty, pairwise disjoint coalitions. Its value is

V(CS)=∑j=1kv(Cj).V(CS) = \sum_{j = 1}^{k} v(C_j).

The task is to find a coalition structure CS∗CS^* with the largest value. There is no transfer of payoff between coalitions here; the question of how to divide v(C)v(C) among the members of CC is separate, and is answered by solutions such as the core or the Shapley value.

The number of coalition structures is the Bell number BnB_n, the number of set partitions of an nn-element set. BnB_n grows faster than cnc^n for every constant cc, so enumeration is out of the question beyond about 15 agents.

Variants

  • Anytime with a guarantee. The algorithm must report, at any time, a structure and a bound β\beta such that V(CS∗)≤β V(CS)V(CS^*) \le \beta\, V(CS). This is the setting of Sandholm et al. (1999).
  • Sparse input. Only some coalitions are listed with a value, and every other coalition is not allowed or has value 0. The input is then small, and the problem is NP-hard.
  • Compact representations. The function vv is given by a short description, such as marginal contribution nets, a graph, or skills and tasks. The complexity depends on the representation.
  • Externalities. In a partition function game, the value of a coalition depends on how the other agents are partitioned.
  • Constraints. Some coalitions are forbidden, or coalition sizes are bounded.

Examples

Four agents have the values below.

coalition value coalition value coalition value
{1} 3 {1, 2} 6 {1, 2, 3} 8
{2} 2 {1, 3} 5 {1, 2, 4} 7
{3} 2 {1, 4} 4 {1, 3, 4} 7
{4} 1 {2, 3} 6 {2, 3, 4} 9
{2, 4} 5 {1, 2, 3, 4} 10
{3, 4} 4

There are B4=15B_4 = 15 coalition structures. Let f(S)f(S) be the best value of a partition of SS. The dynamic program gives f({1,2})=6f(\{1, 2\}) = 6, f({2,3})=6f(\{2, 3\}) = 6, f({2,4})=5f(\{2, 4\}) = 5, f({3,4})=4f(\{3, 4\}) = 4, and f({2,3,4})=max⁡(9,2+4,6+1,5+2)=9f(\{2, 3, 4\}) = \max(9, 2 + 4, 6 + 1, 5 + 2) = 9. For the full set, the coalition that contains agent 1 is tried in all 8 ways:

coalition of agent 1 value of the rest total
{1} f({2,3,4})=9f(\{2, 3, 4\}) = 9 12
{1, 2} f({3,4})=4f(\{3, 4\}) = 4 10
{1, 3} f({2,4})=5f(\{2, 4\}) = 5 10
{1, 4} f({2,3})=6f(\{2, 3\}) = 6 10
{1, 2, 3}, {1, 2, 4}, {1, 3, 4} 1, 2, 2 9, 9, 9
{1, 2, 3, 4} 0 10

The optimum is {{1},{2,3,4}}\{\{1\}, \{2, 3, 4\}\} with value 12, more than the grand coalition with value 10.

Known algorithms

  • Dynamic programming. For every nonempty S⊆NS \subseteq N, let mm be the smallest agent in SS and

    f(S)=max⁡m∈C⊆S(v(C)+f(S∖C)),f(∅)=0.f(S) = \max_{m \in C \subseteq S} \big( v(C) + f(S \setminus C) \big), \qquad f(\emptyset) = 0.

    Fixing the coalition of the smallest agent counts each partition once. Every pair C⊆SC \subseteq S is visited at most once, and there are 3n3^n such pairs, because each agent is in CC, in S∖CS \setminus C, or outside SS. So the time is O(3n)O(3^n) with submask enumeration over bitmasks, and the space is O(2n)O(2^n). Yeh (1986) gave this algorithm for complete set partitioning, and it was found again for the winner determination problem of combinatorial auctions.

  • Anytime search with a bound (Sandholm et al. 1999). Arrange the structures by their number of coalitions. Level 1 is the grand coalition and level 2 has the 2n−1−12^{n - 1} - 1 splits into two coalitions. If all values are nonnegative, the best structure in levels 1 and 2 is within a factor nn of the optimum. Sandholm et al. showed that searching these 2n−12^{n-1} structures is the least search that gives any bound, and gave a schedule of further search that lowers the bound.

  • Search over integer partitions. Later exact algorithms split the search space by the multiset of coalition sizes and use upper bounds to prune whole subspaces. They are often much faster than dynamic programming in practice; the survey of Rahwan et al. (2015) compares them.

  • Integer programming. The problem is a set partitioning integer program with one binary variable for each coalition and one equality constraint for each agent.

Bounds

  • Search space. There are BnB_n coalition structures, which is more than exponential in nn. The dynamic program avoids this by sharing the solutions of subsets.
  • Input size. With a full table the input has 2n−12^n - 1 numbers, so 3n=(2n)log⁡233^n = (2^n)^{\log_2 3} is about the input size to the power 1.585. In this sense the full-table problem is in polynomial time.
  • Hardness. With a sparse or compact input, the problem is NP-hard (Sandholm et al. 1999).
  • The factor nn of levels 1 and 2. Let CS∗CS^* have k≤nk \le n coalitions, and let CC be the one with the largest value, so v(C)≥V(CS∗)/k≥V(CS∗)/nv(C) \ge V(CS^*)/k \ge V(CS^*)/n. The structure {C,N∖C}\{C, N \setminus C\}, or {N}\{N\} if C=NC = N, is in level 1 or 2, and with nonnegative values its value is at least v(C)v(C). So the best structure in these levels is within a factor nn.

Reductions

  • From weighted set packing. Given sets T1,…,TmT_1, \ldots, T_m over a ground set with weights, let the ground elements be the agents, let v(Tj)=wjv(T_j) = w_j, and let every other coalition have value 0. A coalition structure of value WW gives a packing of the listed sets of weight WW, and a packing becomes a structure by putting each uncovered element alone. So weighted set packing, which is NP-hard, reduces to the sparse problem.
  • Winner determination. In a combinatorial auction, the items are the agents and the value of a bundle is the highest bid on it. The best allocation of the items is the best coalition structure. So the two problems are the same, and their algorithms transfer.
  • Hedonic games. In a hedonic game each agent has its own utility for each coalition that contains it. A partition that maximizes the sum of the agents' utilities is an optimal coalition structure for v(C)=∑i∈Cui(C)v(C) = \sum_{i \in C} u_i(C).

Applications

Coalition structure generation is used to form teams of agents or robots for tasks, to group sensors, vehicles or ride-sharing customers, and to clear combinatorial auctions. It also appears in clustering, where the value of a cluster replaces the value of a coalition.

References

  1. Tuomas Sandholm, Kate Larson, Martin Andersson, Onn Shehory and Fernando Tohme, Coalition structure generation with worst case guarantees, Artificial Intelligence 111(1-2) (1999), 209-238, the NP-hardness of the problem, the search of the two lowest levels of the coalition structure graph as the least search that gives a bound, and the anytime algorithm that lowers the bound
  2. D. Y. Yeh, A dynamic programming approach to the complete set partitioning problem, BIT 26(4) (1986), 467-474, the dynamic program over subsets in O(3^n) time for complete set partitioning
  3. Talal Rahwan, Tomasz P. Michalak, Michael Wooldridge and Nicholas R. Jennings, Coalition structure generation: a survey, Artificial Intelligence 229 (2015), 139-174, the survey of exact, anytime and heuristic algorithms, compact representations, and the variants with externalities and constraints

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml