Algorithm Search⌘K

Algorithmcore

Bird's rule

Also called Bird allocation.

Charges each player the cost of the edge by which Prim's algorithm connects it to the source. The charges add up to the MST cost and lie in the core of the spanning tree game.

Time
O(n^2) worst
Space
O(n) extra
Where
n = the number of players
Properties
deterministicexactofflineiterative
Origin
Charles G. Bird, 1976

Bird's rule divides the cost of a network among the users who must connect to a common source. It builds a minimum spanning tree from the source with Prim's algorithm and charges each player the cost of the edge by which the tree reaches it. The charges add up to the cost of the tree, and no group of players pays more than it would pay to build its own network. In the language of cooperative games, the allocation is in the core of the minimum cost spanning tree game. Bird gave the rule and the core result in 1976. This page is the rule as an algorithm, with a full proof; the game itself, its other solutions and its complexity results are on the model page.

In plain words

Several houses must be connected to a power plant. Any two points can be joined by a cable with a known price. The cheapest network that reaches every house is a minimum spanning tree. Build it outward from the plant, one house at a time, always adding the cheapest cable that reaches a new house. Each house pays for the cable that brought the network to it. The payments cover the whole network. No group of houses can complain that it could build its own network to the plant for less than it pays now. The rule is quick to compute and easy to explain, but a house can pay more after a new house joins, so it is not stable under growth.

The problem

The input is a symmetric cost c(u,v)=c(v,u)c(u, v) = c(v, u) for each pair of vertices of V=N∪{0}V = N \cup \{0\}, where vertex 0 is the source and N={1,…,n}N = \{1, \ldots, n\} are the players. The game is a cost game: for a coalition S⊆NS \subseteq N, the cost c(S)c(S) is the cost of a minimum spanning tree of the complete graph on S∪{0}S \cup \{0\}. A coalition may use only its own vertices and the source. The output is an allocation x∈RNx \in \mathbb{R}^N that splits the total cost, x(N)=c(N)x(N) = c(N), where x(S)=∑i∈Sxix(S) = \sum_{i \in S} x_i. The goal is a core allocation: x(S)≤c(S)x(S) \le c(S) for every coalition SS, so that no coalition pays more than its stand-alone cost.

The core of a general cost game can be empty, and testing whether a given vector is in the core of this game is coNP-complete (Faigle, Kern, Fekete and Hochstattler 1997). Bird's rule avoids the test: it outputs a vector that is always in the core, in O(n2)O(n^2) time.

The algorithm

  1. BIRD(c)
  2. 1for v ← 1 to n: d[v] ← c(0, v); p[v] ← 0
  3. 2T ← {0}
  4. 3repeat n times:
  5. 4v ← the vertex outside T with the smallest d[v] (smallest index on ties)
  6. 5x_v ← d[v]; T ← T ∪ {v}
  7. 6for each w outside T: if c(v, w) < d[w]: d[w] ← c(v, w); p[w] ← v
  8. 7return x, p

The procedure is Prim's algorithm on the complete graph, started at the source. The array dd holds, for each vertex ww that is not yet in the tree, the cost of the cheapest edge from the tree to ww, and p[w]p[w] is the tree end of that edge. Line L1 starts with the edges from the source. Line L4 takes the vertex that is cheapest to reach, and line L5 charges it exactly that cost. Line L6 lowers d[w]d[w] when the new vertex vv is a cheaper way to reach ww. When the loop ends, the parent pointers pp describe the tree, and player vv pays xv=c(p[v],v)x_v = c(p[v], v), the cost of the edge that joins vv to its parent.

Example

The source is 0 and the players are 1, 2 and 3, with the costs

0 1 2 3
0 0 4 5 6
1 4 0 2 5
2 5 2 0 3
3 6 5 3 0

The trace shows dd and pp after each step.

step vertex added charge d[1],d[2],d[3]d[1], d[2], d[3] after line L6 p[1],p[2],p[3]p[1], p[2], p[3]
L1 none none 4, 5, 6 0, 0, 0
1 1 x1=4x_1 = 4 done, 2, 5 0, 1, 1
2 2 x2=2x_2 = 2 done, done, 3 0, 1, 2
3 3 x3=3x_3 = 3 done, done, done 0, 1, 2

The tree is the path 0−1−2−30 - 1 - 2 - 3 with cost 4+2+3=9=c(N)4 + 2 + 3 = 9 = c(N), and Bird's rule gives x=(4,2,3)x = (4, 2, 3). The table checks every core inequality.

coalition SS c(S)c(S) x(S)x(S)
{1} 4 4
{2} 5 2
{3} 6 3
{1, 2} 6 6
{1, 3} 9 7
{2, 3} 8 5
{1, 2, 3} 9 9

Player 1 pays its full stand-alone cost, because the tree reaches it first by its own direct edge. Players 2 and 3 pay much less than alone, because they use the edges through player 1. The Shapley value of the same game is (7/3,7/3,13/3)(7/3, 7/3, 13/3): it charges player 1 less and player 3 more, and here it is also in the core.

Correctness

The file proofs/correctness.md gives the full proof. The charges add up to c(N)c(N) because lines L1 to L6 are Prim's algorithm, so the tree TT of the parent edges is a minimum spanning tree and each of its edges is charged once.

For the core inequality, fix a coalition SS and a minimum spanning tree TST_S on S∪{0}S \cup \{0\}. The proof matches each player v∈Sv \in S with its own edge of TST_S that costs at least xvx_v. An edge (a,b)(a, b) of TST_S can be matched with vv when the parent edge of vv is on the path from aa to bb in TT. Then xv≤c(a,b)x_v \le c(a, b) by the cycle property of minimum spanning trees: otherwise TT minus the parent edge of vv plus (a,b)(a, b) would be a cheaper spanning tree. For any set W⊆SW \subseteq S, removing the parent edges of WW cuts TT into ∣W∣+1|W| + 1 parts, and each part contains a vertex of S∪{0}S \cup \{0\}. The tree TST_S must cross between these parts at least ∣W∣|W| times, and each crossing edge can be matched with some player of WW. So Hall's condition holds, a perfect matching exists, and x(S)≤c(TS)=c(S)x(S) \le c(T_S) = c(S).

The proof uses only that TT is a minimum spanning tree. So the allocation read from any minimum spanning tree is in the core, also when ties make the tree not unique.

Proof: Bird's rule charges the cost of a minimum spanning tree and gives a core allocationfull

Setting. The vertex set is V=N∪{0}V = N \cup \{0\} with N={1,…,n}N = \{1, \ldots, n\}. The cost c(u,v)=c(v,u)c(u, v) = c(v, u) is given for every pair of distinct vertices. For a coalition S⊆NS \subseteq N, the cost c(S)c(S) is the cost of a minimum spanning tree of the complete graph on S∪{0}S \cup \{0\}, with c(∅)=0c(\emptyset) = 0. An allocation x∈RNx \in \mathbb{R}^N is in the core of the cost game if x(N)=c(N)x(N) = c(N) and x(S)≤c(S)x(S) \le c(S) for every S⊆NS \subseteq N, where x(S)=∑i∈Sxix(S) = \sum_{i \in S} x_i.

The output. Lines L1 to L6 are Prim's algorithm from the source 0 on the complete graph on VV. Line L4 adds the vertex vv outside the tree with the smallest d[v]d[v], and d[v]=c(p[v],v)d[v] = c(p[v], v) is the cheapest edge from the tree to vv, by the updates of line L6. So each player vv enters the tree by the edge ev=(p[v],v)e_v = (p[v], v), and line L5 sets xv=c(ev)x_v = c(e_v). Let TT be the tree with the edges e1,…,ene_1, \ldots, e_n. Every vertex other than 0 has exactly one parent edge, and a parent enters the tree before its child, so TT is a spanning tree of VV rooted at 0. Prim's algorithm returns a minimum spanning tree (see Prim's algorithm), so TT is a minimum spanning tree and

x(N)=∑v∈Nc(ev)=c(T)=c(N).x(N) = \sum_{v \in N} c(e_v) = c(T) = c(N).

The rest of the proof uses only the fact that TT is a minimum spanning tree of the complete graph on VV. So the result holds for every minimum spanning tree, also when ties make it not unique.

Lemma 1 (cycle property). Let a,b∈Va, b \in V be distinct, and let ff be an edge on the path from aa to bb in TT. Then c(f)≤c(a,b)c(f) \le c(a, b).

Proof. If (a,b)(a, b) is an edge of TT, the path is this edge and the claim holds. Otherwise remove ff from TT. This splits TT into two components, one with aa and one with bb, because ff is on the only path between them. Adding the edge (a,b)(a, b) joins them again, so T−f+(a,b)T - f + (a, b) is a spanning tree. Its cost is c(T)−c(f)+c(a,b)c(T) - c(f) + c(a, b), and it is at least c(T)c(T) because TT is a minimum spanning tree. So c(f)≤c(a,b)c(f) \le c(a, b). □\square

Lemma 2. Let S⊆NS \subseteq N be nonempty, and let TST_S be a minimum spanning tree on S∪{0}S \cup \{0\}. Let W⊆SW \subseteq S. Call an edge (a,b)(a, b) of TST_S a witness for the player vv if eve_v is on the path from aa to bb in TT. Then at least ∣W∣|W| edges of TST_S are witnesses for some player of WW.

Proof. Remove the ∣W∣|W| edges eve_v, v∈Wv \in W, from TT. A tree with ∣W∣|W| edges removed has ∣W∣+1|W| + 1 components. Each component contains a vertex of S∪{0}S \cup \{0\}. The component of 0 contains 0. Any other component KK does not contain the root, so its vertex vv that is nearest to 0 in TT has its parent edge eve_v removed; therefore v∈W⊆Sv \in W \subseteq S.

So the components split S∪{0}S \cup \{0\} into ∣W∣+1|W| + 1 nonempty classes. The tree TST_S connects all vertices of S∪{0}S \cup \{0\}. If we contract each class to one point, the edges of TST_S still connect the ∣W∣+1|W| + 1 points, so at least ∣W∣|W| edges of TST_S join two different classes. Let (a,b)(a, b) be such an edge. Then aa and bb are in different components of TT without the edges eve_v, v∈Wv \in W, so the path from aa to bb in TT contains a removed edge eve_v with v∈Wv \in W. So (a,b)(a, b) is a witness for vv. □\square

Theorem. For every S⊆NS \subseteq N, x(S)≤c(S)x(S) \le c(S). Together with x(N)=c(N)x(N) = c(N), the allocation xx is in the core.

Proof. For S=∅S = \emptyset both sides are 0. Let SS be nonempty, and let TST_S be a minimum spanning tree on S∪{0}S \cup \{0\}, so c(TS)=c(S)c(T_S) = c(S) and TST_S has ∣S∣|S| edges. Build the bipartite graph with the players of SS on one side and the edges of TST_S on the other side, and join vv to each edge of TST_S that is a witness for vv. By Lemma 2, every set W⊆SW \subseteq S has at least ∣W∣|W| neighbours. By Hall's theorem, there is a matching that covers SS. As both sides have ∣S∣|S| elements, the matching is a bijection φ\varphi from SS to the edges of TST_S.

The edge φ(v)=(a,b)\varphi(v) = (a, b) is a witness for vv, so eve_v is on the path from aa to bb in TT. By Lemma 1, xv=c(ev)≤c(a,b)=c(φ(v))x_v = c(e_v) \le c(a, b) = c(\varphi(v)). Sum over v∈Sv \in S:

x(S)=∑v∈Sxv≤∑v∈Sc(φ(v))=c(TS)=c(S).x(S) = \sum_{v \in S} x_v \le \sum_{v \in S} c(\varphi(v)) = c(T_S) = c(S).

□\square

Cost. Line L1 takes O(n)O(n) time. The loop of line L3 runs nn times, and lines L4 and L6 scan nn vertices each, so the time is O(n2)O(n^2). The arrays dd, pp, xx and the tree flags take O(n)O(n) extra space.

Remark. The tests in impl/python/test_bird_rule.py check the sum against Kruskal's algorithm with a union-find, check that the parent edges form a spanning tree, and check x(S)≤c(S)x(S) \le c(S) for all coalitions of 600 random games with at most 6 players, with integer costs (many ties) and with fractional costs. ■\blacksquare

Complexity

The loop of line L3 runs nn times. Lines L4 and L6 each scan at most nn vertices, so the time is O(n2)O(n^2) in the word RAM model with costs that fit in a word. The input is a complete cost matrix with Θ(n2)\Theta(n^2) entries, so no algorithm can do better in general. The extra space is O(n)O(n) for dd, pp, xx and the tree flags. On a sparse input graph with mm edges, where the missing edges have infinite cost, Prim's algorithm with a binary heap gives the same allocation in O(mlog⁡n)O(m \log n) time.

Properties

  • Efficient. The charges add up to exactly c(N)c(N), the cost of the cheapest network.
  • In the core. No coalition pays more than its stand-alone cost, as proved above. Since every subgame of a minimum cost spanning tree game is again such a game, Bird's rule also shows that every subgame has a nonempty core: the game is totally balanced.
  • Not unique. With ties, different minimum spanning trees give different allocations. The code breaks ties by the smallest index.
  • Not population monotonic. With c(0,1)=8c(0, 1) = 8, c(0,2)=9c(0, 2) = 9, c(0,3)=7c(0, 3) = 7, c(1,2)=1c(1, 2) = 1, c(1,3)=8c(1, 3) = 8 and c(2,3)=4c(2, 3) = 4, the game on players 1 and 2 gives x=(8,1)x = (8, 1). When player 3 joins, the tree is 0−3−2−10 - 3 - 2 - 1, and the charges are (1,4,7)(1, 4, 7). Player 2 pays 4 instead of 1, although the new player only adds options. So Bird's rule is not cross-monotonic, and it cannot be used in a Moulin mechanism.

Variants and improvements

  • Shapley value. The Shapley value of the game is symmetric and additive, but it needs the costs of exponentially many coalitions, and it can be outside the core. With c(0,1)=2c(0, 1) = 2, c(0,2)=2c(0, 2) = 2, c(0,3)=6c(0, 3) = 6, c(1,2)=2c(1, 2) = 2, c(1,3)=5c(1, 3) = 5 and c(2,3)=4c(2, 3) = 4, the Shapley value is (11/6,4/3,29/6)(11/6, 4/3, 29/6), and the coalition {2,3}\{2, 3\} pays 37/6>c({2,3})=637/6 > c(\{2, 3\}) = 6.
  • Folk rule. Bergantinos and Vidal-Puga (2007) studied a rule that is the Shapley value of the irreducible game, where each cost c(u,v)c(u, v) is replaced by the smallest possible largest edge cost on a path from uu to vv. It is in the core, it is cost monotonic, and it is population monotonic, which Bird's rule is not.
  • Nucleolus. The nucleolus of the game is in the core and is unique, but computing it is NP-hard for this game (Faigle, Kern and Kuipers 1998).
  • Steiner networks. If a coalition may also route through the vertices of other players, the game becomes a Steiner tree game. Cost sharing for Steiner trees needs other methods, such as Jain-Vazirani cost sharing, which recovers only part of the cost.

When to use it

Use Bird's rule when a fixed group of users shares the cost of a tree network to a source and the allocation must be in the core: no group of users should be able to leave and build its own network for less. It is a good default when the users and the costs are known and do not change, because it needs only one run of Prim's algorithm. Do not use it when users join and leave over time and each user must never pay more after a new user joins; use the folk rule or another population monotonic rule. Do not use it in a mechanism that asks users for their values, because without cross-monotonicity the Moulin mechanism built on it is not strategyproof.

Pitfalls

  • Coalitions that use other players' vertices. The core result is for the game in which a coalition builds a tree on its own vertices and the source. If a coalition may route through outside vertices, its cost can be lower, and the core inequalities change.
  • Asymmetric costs. The proof uses c(u,v)=c(v,u)c(u, v) = c(v, u). With directed costs the right structure is a minimum arborescence, and the proof does not apply. The code rejects an asymmetric matrix.
  • A tree that is not minimum. Charging the edges of any spanning tree adds up to that tree's cost, which can exceed c(N)c(N). The proof needs a minimum spanning tree.
  • Charging the wrong end of an edge. Each player pays the edge toward the source, its parent edge in the tree rooted at 0. If Prim's algorithm starts at a player, the order in which vertices enter changes, and the edge charged to a vertex may be an edge away from the source. Orient the tree from the source before charging.
  • Using the rule in a mechanism. The Moulin mechanism needs cross-monotonic shares. With Bird's shares and the costs of the population monotonicity example, a player with value 2 that bids 4 when players 1 and 3 bid their values 8 and 0 is served at price 1 and gains, while the truthful bid leaves it unserved.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

bird_rule.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/bird-rule/. The authors are listed in prov/7MY1TF.jsonl.
"""Bird's rule for minimum cost spanning tree games (Bird 1976).

The input is a symmetric cost matrix c on the vertices 0, 1, ..., n. Vertex 0 is the
source and vertices 1 to n are the players. The rule grows a tree from the source with
Prim's algorithm and charges each player the cost of the edge by which the tree reaches
it. The charges add up to the cost of a minimum spanning tree, and they are in the core
of the game c(S) = cost of a minimum spanning tree on S and the source.

Ties are broken by the smallest vertex index, so the output is deterministic. The time is
O(n^2) and the extra space is O(n).
"""


def _check(cost):
    size = len(cost)
    if size == 0:
        raise ValueError("the cost matrix must contain the source")
    for row in cost:
        if len(row) != size:
            raise ValueError("the cost matrix must be square")
    for u in range(size):
        for v in range(u + 1, size):
            if cost[u][v] != cost[v][u]:
                raise ValueError("the cost matrix must be symmetric")
    return size - 1


def bird(cost):
    """Return (x, parent): x[v] is the charge of player v and parent[v] the vertex
    that connects v in the Prim tree from the source 0. x[0] = 0 and parent[0] = None."""
    n = _check(cost)
    dist = [None] * (n + 1)
    parent = [None] * (n + 1)
    for v in range(1, n + 1):  # @line L1
        dist[v] = cost[0][v]
        parent[v] = 0
    in_tree = [False] * (n + 1)  # @line L2
    in_tree[0] = True
    x = [0] * (n + 1)
    for _ in range(n):  # @line L3
        v = None
        for w in range(1, n + 1):  # @line L4
            if not in_tree[w] and (v is None or dist[w] < dist[v]):
                v = w
        x[v] = dist[v]  # @line L5
        in_tree[v] = True
        for w in range(1, n + 1):  # @line L6
            if not in_tree[w] and cost[v][w] < dist[w]:
                dist[w] = cost[v][w]
                parent[w] = v
    return x, parent  # @line L7


def coalition_cost(cost, coalition):
    """c(S): the cost of a minimum spanning tree on S and the source, by Prim's algorithm."""
    nodes = [0] + sorted(set(coalition))
    best = {v: cost[0][v] for v in nodes[1:]}
    total = 0
    while best:
        v = min(best, key=lambda w: (best[w], w))
        total += best.pop(v)
        for w in best:
            if cost[v][w] < best[w]:
                best[w] = cost[v][w]
    return total
test_bird_rule.py 116 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/bird-rule/. The authors are listed in prov/7MY1TF.jsonl.
"""Tests for bird_rule: the worked example, the core property against a Kruskal oracle,
the spanning tree, and the failure of population monotonicity."""

import itertools
import random
import unittest
from fractions import Fraction as F

from bird_rule import bird, coalition_cost

EXAMPLE = [
    [0, 4, 5, 6],
    [4, 0, 2, 5],
    [5, 2, 0, 3],
    [6, 5, 3, 0],
]

NOT_MONOTONE = [
    [0, 8, 9, 7],
    [8, 0, 1, 8],
    [9, 1, 0, 4],
    [7, 8, 4, 0],
]


def kruskal(cost, nodes):
    """An independent oracle: Kruskal's algorithm with a union-find on the given nodes."""
    nodes = list(nodes)
    root = {v: v for v in nodes}

    def find(v):
        while root[v] != v:
            root[v] = root[root[v]]
            v = root[v]
        return v

    total = 0
    for w, u, v in sorted((cost[u][v], u, v) for u, v in itertools.combinations(nodes, 2)):
        ru, rv = find(u), find(v)
        if ru != rv:
            root[ru] = rv
            total += w
    return total


def random_matrix(rng, n, frac=False):
    c = [[0] * (n + 1) for _ in range(n + 1)]
    for u in range(n + 1):
        for v in range(u + 1, n + 1):
            w = F(rng.randint(1, 30), rng.randint(1, 4)) if frac else rng.randint(1, 9)
            c[u][v] = c[v][u] = w
    return c


def bird_on(cost, players):
    """Bird's rule on the subgame of the given players (with the source 0)."""
    nodes = [0] + list(players)
    sub = [[cost[a][b] for b in nodes] for a in nodes]
    x, _ = bird(sub)
    return {p: x[k + 1] for k, p in enumerate(players)}


class TestBirdRule(unittest.TestCase):
    def test_worked_example(self):
        x, parent = bird(EXAMPLE)
        self.assertEqual(x, [0, 4, 2, 3])
        self.assertEqual(parent, [None, 0, 1, 2])
        self.assertEqual(sum(x), 9)
        costs = {S: coalition_cost(EXAMPLE, S) for r in range(1, 4) for S in itertools.combinations([1, 2, 3], r)}
        self.assertEqual(costs, {(1,): 4, (2,): 5, (3,): 6, (1, 2): 6, (1, 3): 9, (2, 3): 8, (1, 2, 3): 9})

    def test_edge_cases(self):
        self.assertEqual(bird([[0]]), ([0], [None]))
        self.assertEqual(bird([[0, 7], [7, 0]]), ([0, 7], [None, 0]))
        x, parent = bird([[0, 1, 1], [1, 0, 1], [1, 1, 0]])
        self.assertEqual((x, parent), ([0, 1, 1], [None, 0, 0]))
        with self.assertRaises(ValueError):
            bird([[0, 1], [2, 0]])
        with self.assertRaises(ValueError):
            bird([[0, 1], [1]])
        with self.assertRaises(ValueError):
            bird([])

    def test_core_and_tree_on_random_games(self):
        rng = random.Random(7)
        for trial in range(600):
            n = rng.randint(1, 6)
            c = random_matrix(rng, n, frac=trial % 3 == 0)
            x, parent = bird(c)
            players = range(1, n + 1)
            self.assertEqual(sum(x), kruskal(c, range(n + 1)))
            for v in players:
                self.assertEqual(x[v], c[parent[v]][v])
                seen, w = set(), v
                while w != 0:
                    self.assertNotIn(w, seen)
                    seen.add(w)
                    w = parent[w]
            for r in range(1, n + 1):
                for S in itertools.combinations(players, r):
                    cs = kruskal(c, (0,) + S)
                    self.assertEqual(coalition_cost(c, S), cs)
                    self.assertLessEqual(sum(x[i] for i in S), cs)

    def test_not_population_monotonic(self):
        small = bird_on(NOT_MONOTONE, [1, 2])
        full = bird_on(NOT_MONOTONE, [1, 2, 3])
        self.assertEqual(small, {1: 8, 2: 1})
        self.assertEqual(full, {1: 1, 2: 4, 3: 7})
        self.assertGreater(full[2], small[2])


if __name__ == "__main__":
    unittest.main()

History

Bird (1976) formulated cost allocation for a spanning tree as a cooperative game. He showed that the allocation that charges each player the edge connecting it in a minimum spanning tree is in the core, and he introduced the irreducible core, the core of the game in which every cost is lowered as far as possible without changing the cost of the minimum spanning tree. Later work studied the complexity of the core and the nucleolus of the game (Faigle and coauthors, 1997 and 1998) and rules with stronger monotonicity properties, such as the folk rule of Bergantinos and Vidal-Puga (2007).

References

  1. On cost allocation for a spanning tree, a game theoretic approach, the minimum cost spanning tree game, the allocation that charges each player the edge that connects it in a minimum spanning tree, the proof that it is in the core, and the irreducible core
  2. A fair rule in minimum cost spanning tree problems, the folk rule, its characterization by cost monotonicity, population monotonicity and equal share of extra costs, and its relation to Bird's rule and the irreducible game
  3. On the complexity of testing membership in the core of min-cost spanning tree games, deciding whether a given allocation is in the core is coNP-complete
  4. Computing the nucleolus of min-cost spanning tree games is NP-hard, the NP-hardness of the nucleolus of the game
  5. Noam Nisan, Tim Roughgarden, Eva Tardos and Vijay V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 15 (Kamal Jain and Mohammad Mahdian, Cost Sharing), Section 15.2 on the core of cost-sharing games

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 proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example