A loop-free induced subgraph game is a convex cooperative game exactly when all edge weights are nonnegative. Necessity follows by testing the supermodular inequality on two distinct singleton coalitions. For sufficiency,Only edges connecting the two set differences survive cancellation. Loop contributions cancel as well, so the same off-diagonal condition remains sufficient and necessary when self-loops are added.
Sort the edge weights of a minimum spanning tree and of any spanning tree in nondecreasing order. Then for every position. To prove it, fix a threshold and retain the graph's edges of weight at most . If this graph has connected components, contains a spanning forest of each component using those edges: otherwise a light edge joining two of its pieces could replace an edge heavier than on its tree path, decreasing total weight. Hence exactly edges of have weight at most . No other spanning tree can have more, since its retained edges form a forest inside those components. These threshold counts imply the coordinatewise inequality for sorted weights.
Edge length 2026-11-05
An edge length is a nonnegative numerical label assigned to an edge of a graph to measure the length or cost of traversing it. A path's length is the sum of its edge lengths, and the shortest-path distance is the infimum of these sums. This metric use is more restrictive than a general edge weight, which can be negative in other models.
For a triangle with edge lengths , , and , the shortest distance from to is five via , although the direct edge has length ten. Thus edge length and vertex-to-vertex distance need not coincide.
Strictly positive lengths on a finite connected graph give a metric on its vertices. Zero-length edges can identify distinct vertices at distance zero, producing a pseudometric; negative edges can destroy the metric interpretation. The labels need not equal the apparent lengths of edges in a drawing.
Edge weight 2026-10-25
The numerical label assigned to an edge of a graph. An edge weight can be negative when the model allows it. It is distinct from the vertex degree, which counts incident edges.
Edsger W. Dijkstra Created 2026-10-24 Updated 2026-11-05
Edsger W. Dijkstra was a computer scientist whose work includes the Dijkstra algorithm for shortest paths with nonnegative edge weights. Its key step finalizes the unsettled vertex with the smallest tentative distance; nonnegative edge weights ensure that a later route cannot improve that distance.[ref]
The same short paper also treated the minimum spanning tree problem. The distinction is instructive: minimizing the total weight of a connecting tree differs from minimizing routes from a source. Dijkstra later recalled devising the shortest-path example for a 1956 computer demonstration using a simplified Dutch railway map, a concrete explanation of the computational task for a general audience.[ref]
Reflections on A Note on Two Problems in Connexion with Graphs by Edsger W. Dijkstra. EWD841a, recollection of the 1956 demonstration
Portrait of Edsger W. Dijkstra
. Hamilton Richards. CC BY-SA 3.0, via Wikimedia Commons. Source. Exclusive-or gadget in Valiant's permanent reduction Created 2026-09-28 Updated 2026-11-05
The Exclusive-or gadget in Valiant's permanent reduction cancels invalid cycle covers of a directed graph using signed edge weights. In the original four-vertex junction matrix , only vertices one and four have external connections. Writing for row and column deletions, its permanents satisfyandSurviving weighted routes therefore enter once and leave at the opposite port. Invalid patterns have total weight zero, even when individual covers exist.[ref]
The Complexity of Computing the Permanent by Leslie G. Valiant. junction identities (i)–(v), proof of Lemma 3.1
Failure of uniform edge shifts to preserve shortest paths Created 2026-10-31 Updated 2026-11-05
Adding the same constant to every edge weight adds times the number of edges to each path's cost. Routes with different edge counts need not retain their order. For example, edges , , of weights make the two-edge path optimal with cost zero. Adding three changes the direct cost to four and the two-edge cost to six. The graph is a directed acyclic graph and all shifted weights are positive, yet the minimizing path changes.
Graph algorithm 2026-11-05
A graph algorithm computes a property of a graph or constructs a related object from its graph vertices and graph edges. The input representation matters: an adjacency list lets an algorithm inspect the neighbours of one graph vertex without scanning every possible pair of graph vertices, whereas an adjacency matrix provides direct tests for individual graph edges.
For example, breadth-first search finds every graph vertex reachable from a starting graph vertex . Mark , place it in a FIFO queue, then repeatedly remove the oldest marked graph vertex and mark/enqueue each previously unmarked neighbour. A graph vertex is enqueued at most once, so scanning adjacency lists costs . The FIFO queue processes distance layers in order; the first discovery of a graph vertex supplies a shortest graph path in an unweighted graph.
For graph edges , , , starting at discovers before , with distances . The same graph can support different questions: depth-first search investigates traversal structure, Dijkstra's algorithm uses nonnegative edge weights for shortest graph paths, and a minimum spanning tree minimizes the total weight needed to connect an undirected graph. Matching the algorithm to its assumptions is part of modelling the problem.
Light edge crossing a cut 2026-10-31
An edge of minimum edge weight among those crossing a specified cut of a graph. It exists when the crossing set is nonempty. Several tied edges can all be light; lightness does not imply uniqueness or membership in every minimum spanning tree.
Maximum spanning tree 2026-10-31
A spanning tree with greatest total edge weight. Apply Kruskal's algorithm in decreasing weight order, or negate every edge weight and compute a minimum spanning tree. Every graph path within a maximum spanning tree solves the widest path problem between its endpoints.
Minimum spanning tree Created 2026-10-07 Updated 2026-11-05
A minimum spanning tree of a finite connected undirected weighted graph minimizes the sum of edge weights over all spanning trees. Kruskal's algorithm repeatedly accepts a least-weight edge joining different current connected components. The cut-exchange argument preserves an optimum containing every accepted edge, including when weights tie.
For nonnegative edge costs, an MST gives a lower bound on a travelling salesman tour: removing one tour edge leaves a spanning path whose cost is no greater than the tour cost, and the minimum spanning tree costs no more than that path.
Nonnegativity is needed for this comparison. A triangle with all three edge weights equal to minus one has tour cost and minimum spanning tree cost , so the latter is not a lower bound. The MST optimization problem itself permits negative edge weights.
On the Complexity of Cooperative Solution Concepts by Xiaotie Deng and Christos Papadimitriou Created 2026-10-24 Updated 2026-11-05
Readable original-paper scan: yhwu-is.github.io/Teach/ec/seminar/25sp/On%20the%20Complexity%20of%20Cooperative%20Solution%20Concepts.pdf
Relevant locators: §1, printed p. 258, definition using signed integer edge weights and the nonnegative-weight convex case; §2.2, printed p. 260, discussion preceding Lemma 4. The self-loop extension and the elementary representation and convexity arguments are stated and proved directly in the solutions.
Past exam of the computer science course of the University of Oxford 2018 Algorithms 3 d Solution 2026-10-31
Regard the two kinds of agents as the two sides of a complete bipartite graph, with edge weight . Pairing everyone is a perfect matching, and its maximum total weight is . Consider the capacitated linear programIt is feasible and bounded. Every optimum has all row and column sums equal to one: otherwise the equal total deficits of the two sides give a row and column both below one. Increasing by the smaller of their positive deficits remains feasible and increases the objective because , a contradiction.
Thus an optimum is a doubly stochastic matrix. By the Birkhoff-von Neumann theorem it is a convex combination of permutation matrices, so at least one corresponding perfect matching has weight at least its objective. Conversely every such perfect matching gives a feasible matrix. Hence . One way to justify the decomposition is to apply Hall's marriage theorem to the positive-entry support, subtract the smallest entry on a supported perfect matching, and repeat after rescaling the nonzero remainder; each subtraction removes a positive entry, so the process terminates.
The dual linear program assigns nonnegative dual variables to the row and column capacity constraints:These are exactly the permitted payments and all the pairwise acceptance conditions, so its optimal value is . It is feasible, for example by taking and . Strong duality now gives . In particular, the nonnegative payment restriction has been retained throughout; using capacity inequalities rather than equality constraints avoids introducing unrestricted prices.
For a direct weak duality check, sum over any pairing . Its revenue never exceeds the company's total offered payment. The linear programming duality and integrality argument prove that this lower bound on payments is attained.
An induced subgraph game is a transferable utility game represented by a weighted undirected graph with one vertex per player; a coalition's value is the sum of the edge weights in its induced subgraph. With no self-loops,where each unordered pair is counted once and an absent edge has weight zero. Weights may have either sign. In an induced subgraph game with self-loops, write the loop weight at as and add , counting each loop once. In particular, when loops are allowed and is zero otherwise.[ref]
On the Complexity of Cooperative Solution Concepts by Xiaotie Deng and Christos Papadimitriou. §1, printed p. 258: weighted induced-subgraph representation; the self-loop extension is stated explicitly here
Yes; without self-loops, such a nontrivial simple cooperative game has exactly one positive edge, of weight . For each pair,because singleton and loop contributions are zero. Summing all edge weights gives , so precisely one unordered pair has weight , and all other pairs have weight zero.
Thus the winning coalitions are exactly those containing both and . For any , setThis payoff vector is efficient, since . Every winning coalition receives and every losing coalition receives a nonnegative total, so all inequalities hold. Hence it belongs to the core of a cooperative game.
In fact these are all core allocations. Singleton conditions require , and the winning pair requires ; efficiency then forces equality and zero payoffs outside the pair. The endpoints are both veto players, consistent with the general characterization of the core of a simple cooperative game.
A loop-free induced subgraph game is a convex cooperative game if and only if every edge weight is nonnegative. Necessity follows by applying the supermodular inequality to and . Since both singleton values and the empty value are zero,
Conversely, direct cancellation of common edge contributions gives, for any coalitions ,Every summand is nonnegative, proving that is a supermodular set function and hence convexity. Equivalently, a player's marginal contribution to is , which cannot decrease as grows. This establishes the convexity criterion for an induced subgraph game directly.[ref]
For a finite connected graph with undirected edges and edge weights , a spanning tree is a connected, acyclic subgraph containing all vertices. It has edges. A minimum spanning tree is one minimizing the sum of its edge weights:It minimizes total weight, rather than the distance of every route from a chosen root. Equal edge weights may permit more than one minimum spanning tree; negative weights do not invalidate the definition.
Run Kruskal's algorithm in nonincreasing order of edge weight, accepting an edge exactly when its endpoints belong to different current connected components. Use a disjoint-set data structure to test and merge those components. Stop after accepting edges.
Equivalently, apply ordinary Kruskal's algorithm to . For every spanning tree,so minimizing transformed total weight is exactly maximizing original total weight. Thus the output is a maximum spanning tree. Equal weights may be processed in any fixed order. Sorting dominates the time complexity, giving with the usual efficient disjoint-set data structure.
Build a maximum spanning tree by the decreasing-weight version of Kruskal's algorithm. For the specified distinct endpoints , find their unique graph path in by depth-first search, retaining predecessors to reconstruct it. Return that path and its minimum edge weight .
For correctness, choose an edge of weight on . Deleting it splits into two connected components, separating from . No edge across this cut of a graph can have : replacing by would give a spanning tree of greater total weight, contradicting maximality of .
Every – graph path must cross the same cut of a graph, so it contains a crossing edge with . Therefore its minimum edge weight is at most . The tree route attains , provingThis is precisely the widest path problem. The proof allows tied, zero and negative edge weights. It depends on maximizing the total tree weight, not on a shortest-distance algorithm.
Let and . Sorting and Kruskal's algorithm take time; the tree search adds . HenceFor a connected simple graph with at least two vertices, , so the time is also . The expression remains valid when parallel edges are permitted. If the two endpoints coincide, the empty path is returned, with bottleneck under the usual empty-minimum convention; otherwise connectedness guarantees a nonempty route.
A spanning tree is a connected acyclic subgraph containing every vertex of the original undirected graph. For a graph with vertices it has edges. A minimum spanning tree minimizes the sum of its edge weights over all spanning trees:Connectedness guarantees existence for a finite graph; equal weights can permit several minimizers.
