Past exam of the computer science course of the University of Oxford 2019 Computational game theory 3 a Solution by
Codex 0 2026-10-25
For a fixed finite player set and characteristic function with , let be the allocated payoff vector. A standard four-axiom characterization is:
These axioms uniquely specify the Shapley value. This is the zero-marginal null-player convention. The original work combines some requirements into an equivalent formulation.[ref]
A Value for N-Person Games by Lloyd Shapley (RAND paper). RAND P-295, 1952, abstract identifies an axiomatic construction; the four-part formulation and proof are given in Shapley value axioms
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 2 f Solution by
Codex 0 2026-10-25
Compute and in one pass. Scan the columns again: return the top cell of column if and , or its bottom cell if and . Each test is exactly mutual best response, so any returned cell is a pure Nash equilibrium.
If none is found, part (e) supplies columnsLocate one of each and mix with probability on each of those two columns, while the row player mixes on each row. The two row actions then both have expected payoff .
To check all opposing deviations, observe that no column can have . Such a column would maximize the column player's payoff in either row; choosing a row-player best response within it would give a pure equilibrium, contrary to the failed scan. Therefore every column has , and against the equal row mixture its expected payoff is at most . The two supported columns attain that bound.
Hence the returned half-half profile is a Nash equilibrium against every column, not only the two supported ones. A constant number of scans takes running time, with constant auxiliary storage if the output mixture is represented by its two supported column indices and probabilities. This is the construction in equilibrium in a two-row binary game.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 2 e Solution by
Codex 0 2026-10-25
Write column as , where the row player's binary payoff is first. Suppose, for a contradiction, there is no pure Nash equilibrium.
The column player's maximum payoff in the top row must be one. Otherwise every column would be its best response there. To avoid a top-row equilibrium, every column would then need . But a column maximizing would immediately give a bottom-row equilibrium. The same reasoning with rows exchanged shows that the maximum bottom-row column payoff is also one.
Choose a column with . To avoid a top-row equilibrium, it must have . It cannot also have , because its bottom cell would then be an equilibrium. Hence this column is , the specified second column type. Exchanging rows forces a column , the specified first type.
Thus absence of a pure equilibrium forces both forbidden column types to occur. If the given game omits them, this is a contradiction, proving existence of a pure Nash equilibrium. The argument actually proves the stronger statement that omitting either one of the two types suffices.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 2 d Solution by
Codex 0 2026-10-25
A pure action is weakly dominated by a mixture when the mixture's expected payoff is at least as high against every opposing pure strategy profile, and strictly higher against at least one. The latter condition automatically rules out the mixture concentrated on the original action.
Yes: the pure-domination conclusion remains true for this weak version. The argument in part (c) shows that every positively supported action is no worse than the original everywhere. At a profile with strict mixed improvement, the original binary payoff must be zero and the mixed expected payoff positive. Some positively supported action therefore pays one there. It is distinct from the original, very weakly dominates it everywhere, and improves strictly at that profile. Thus it weakly dominates the original pure action. Not every supported action must improve strictly somewhere; selecting one from an actual strict-improvement profile is essential.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 2 c Solution by
Codex 0 2026-10-25
As literally stated, the claim is false. Give player one two pure actions, with payoffs one and zero against every opposing action. A mixed strategy assigning probability one to the first action has exactly that action's payoffs, so very weakly dominates it under the printed non-strict inequality. The other pure action nevertheless fails to dominate it.
The intended statement becomes true if the mixture gives positive probability to some distinct action, equivalently . Fix any opposing pure strategy profile at which pays one. Since all payoffs are in ,Equality forces every positive-probability supported action to pay one there. At a profile where pays zero, every other action already pays at least zero. Therefore every action in the support of a mixed strategy is no worse than against every opposing profile. Choosing a distinct supported action proves the corrected conclusion: nontrivial mixed very weak dominance implies very weak domination by a distinct pure action. This proof does not insert the missing support condition silently.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 2 b Solution by
Codex 0 2026-10-25
The row player's unique best response to is and to is . The column player's unique best response to is and to is . Thus the pure Nash equilibria are and .
For a fully mixed equilibrium, let and . Row-player indifference requiresColumn-player indifference requiresBoth probabilities lie strictly between zero and one, so these indifference conditions make both supported actions best responses. Hence the remaining equilibrium isIts expected payoffs are . There are no other partly mixed equilibria: if either player is pure, the other's best response is unique, forcing both to be pure. If both mix, the displayed linear indifference equations uniquely determine their probabilities. The row player's equilibrium mixture differs from its maxmin mixture in part (a); these are different optimization criteria in this non-zero-sum game.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 2 a Solution by
Codex 0 2026-10-25
Let be the row player's probability of . Its expected payoffs against and are and . The security level payoff is thereforeThe first line decreases and the second increases, so their intersection is optimal: gives . HenceThe two column actions then give the same expected payoff, so an opposing mixed strategy cannot reduce it further.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 1 g Solution by
Codex 0 2026-10-25
Write , where . For three distinct sites , the left, middle and right firms receive respectivelyThese follow by counting the two midpoint boundaries, including split ties. Therefore, after two firms occupy , the final entrant compares at , at , and at every available interior site. Omit an unavailable region and retain every maximizing tie. This is the final entrant payoff in a discrete location game.
First suppose opens at the central site . If chooses , the final entrant's best possible payoffs on the left, right and interior are at most , exactly , and at most , respectively. Hence 's unique best response is . The resulting payoff to is , uniquely maximized on that side at . Reflection gives the other optimal choice , followed by . Under either choice, receives only . Any mixture of the tied optimal second-mover choices has the same consequence.
Now let deviate to . If chooses , the unique final best response is , yielding at most . If chooses , the unique final best response is , yielding only two. Both classes will be strictly inferior to an available alternative, independently of how later ties are resolved:
- If , can choose . The final entrant compares , and , so uniquely chooses . This gives exactly .
- If , can choose site four after chooses two. All three remaining sites are final-mover best responses; they give payoffs five, four and three. Thus guarantees at least three, exceeding the excluded choices' payoff two.
Accordingly, in every subgame perfect equilibrium continuation after , the second mover must choose a site . This remains true with mixed strategies: every excluded choice pays strictly less than the displayed guaranteed alternative, under every possible continuation tie policy.
For any such , every legal final site gives at least three. If lies left of , then is the middle firm and receives . If lies right of , then is the left firm and receives . Thus the deviation gives at least , against every subgame-perfect continuation, whereas the central opening gives it .
Final-mover ties and the second mover's guarantee after the first firm deviates on a nine-building street
. Details. In this original example, a final-mover tie produces the line segment for : its points are expected payoff pairs from a mixed strategy over two final best responses. The second mover can independently secure eight by choosing , so only the segment to the right of that guarantee can support its optimal choice. Mixing over a tied final response cannot make the first mover's payoff fall below three.
A subgame perfect equilibrium must prescribe optimal continuation play even after the first mover's off-path deviation. Since the deviation is strictly profitable under every such prescription, no subgame perfect equilibrium can have open centrally. The argument does not select favourable ties or assume that off-path players cooperate with the deviator.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 1 f Solution by
Codex 0 2026-10-25
There is no pure Nash equilibrium. If the firms choose different sites, serves at least its own building, so receives less than . By moving onto 's site, makes every customer equidistant from the two shops and wins every tie, obtaining . Thus any separated profile has a profitable unilateral deviation by .
At any co-located profile, receives zero. It can move to a different site and capture at least that site's customers, obtaining at least two. Thus every co-located profile also has a profitable unilateral deviation. These cases exhaust all pure strategy profiles.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 1 e Solution by
Codex 0 2026-10-25
Both players can guarantee by part (d), so at any Nash equilibrium each must receive at least . Their payoffs sum to , forcing both equilibrium payoffs to equal .
Moreover, an equilibrium action must itself have the maxmin guarantee . If a player's chosen action allowed an opposing response that reduced its payoff below , that response would give the opponent more than , a profitable unilateral deviation. Thus both equilibrium sites belong to the central set identified in part (d).
Conversely, if both choose from that central set, each chosen action guarantees . Neither can improve above , because the other player's fixed central action still guarantees the other player . Consequently, all pure Nash equilibria areFor even , this includes both co-located central profiles and both orders of the two distinct central sites.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 1 d Solution by
Codex 0 2026-10-25
If a player chooses site , the opponent can co-locate and hold its payoff to . Among opposing sites to its right, the lowest payoff is obtained against , giving . Among opposing sites to its left, the lowest is against , giving . Thus the pure-action security level payoff isThe expression remains valid at an endpoint, where the missing-side term is redundant. It reaches its largest possible value exactly when . Hence the pure maxmin strategies areReflection gives the same answer for the other player.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 1 c Solution by
Codex 0 2026-10-25
Yes to both questions, for both players. Site one is strictly dominated by site two. Against opposing site , the payoff difference isEvery difference is positive for . By reflection, site is strictly dominated by site . These endpoint actions are therefore also weakly dominated strategies, since strict dominance is stronger than the requirement of being no worse everywhere and better somewhere.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 1 b Solution by
Codex 0 2026-10-25
Neither player has a weakly dominant strategy among its pure strategies. Against an opponent at site one, the unique best response is site two, yielding . Co-location yields only , and moving further right reduces one's payoff. Against an opponent at site , the unique best response is , by reflection. For , these two sites differ. No single pure strategy can therefore be a best response to both opposing actions, as a weakly dominant strategy would require.
Past exam of the computer science course of the University of Oxford 2019 Computational game theory 1 a Solution by
Codex 0 2026-10-25
The players are the two chains, each with the set of pure strategies . A strategy profile gives the sites of and . For later use, write the first player's payoff for a general street size asWhen , count customers to the left of , assigning value one rather than two to any midpoint customer. This gives whether the midpoint is an occupied building or lies between buildings. The other player receives . At co-location, every customer's value is split, giving each.
For , the payoff matrix for isRows and columns are indexed by sites ; the full ordered payoff pair in cell is . This discrete location game is a constant-sum game.
Past exam of the computer science course of the University of Oxford 2019 Artificial intelligence 3 f Solution by
Codex 0 2026-10-25
Read the satisfying assignment in increasing time order. In layer , output the unique ground action whose occurrence Boolean variable is true, or output nothing if all are false. Discard idle layers. The result is a sequence of at most actions.
For correctness, the layer-zero planning fluents are exactly the actual initial state. The action precondition axioms make the selected action applicable, while the successor-state axioms give precisely its add/delete update; the action exclusion axioms prevent simultaneous competing actions. By induction, every following time layer is the real state reached by the decoded prefix. The final goal formula therefore proves that the extracted plan reaches both required goals.
Conversely, execute any valid plan of length at most , assign each layer its actual fluent values and pad with idle layers. These values satisfy every component of . In this instance, decoding the three-action trajectory in part (d) gives a model at and at every larger horizon after padding; direct state-space and propositional checks find no model for .
Past exam of the computer science course of the University of Oxford 2019 Artificial intelligence 3 e Solution by
Codex 0 2026-10-25
Use a sequential SATPlan encoding with times . The fluent universe isThere are nine support Boolean variables and three clearance Boolean variables per time layer. Static block types, parameter inequalities and permanent table availability are handled during action grounding. For each well-typed ground action from parts (b)–(c), introduce an occurrence Boolean variable for . Allow at most one action per layer, including no action, so that a horizon of encodes at most physical actions.
The complete initial-state formula isEvery well-typed fluent not initially true is explicitly false. The final goal formula is simply . Leaving unrelated final facts unconstrained is appropriate; leaving unrelated initial facts unconstrained would introduce imaginary starting states.
For each , include all action precondition axioms , after removing static true conditions. For example,The precondition axiom for similarly requires .
For every fluent , let be the logical disjunction of actions at adding , and the logical disjunction deleting it. Include the successor-state axiomIt combines action effects with the frame axiom, preventing unsupported changes. A fully grounded example isApply the same construction to every support and clearance fluent, using the exact add/delete lists. If no action occurs, both effect logical disjunctions are false, so all fluents persist.
The sequential action exclusion axioms are for every pair of distinct grounded actions . For example,forbids selecting those two occurrences together. Do not add a requirement that some action occur in every layer: that would remove idle padding and change “at most ” into an exact-length requirement. One may additionally include true planning state invariants, such as a block having at most one support and a block support carrying at most one block; the unlimited table must be exempt from the latter restriction.
Finally, conjoin , , and all precondition, successor and exclusion formulas over the layers to obtain . It is a propositional formula; if a solver requires conjunctive normal form, use a satisfiability-preserving Tseitin transformation with auxiliary Boolean variables. The equivalence between this encoding and real action sequences follows from sequential SATPlan correctness: a satisfying assignment induces exactly the stated STRIPS trajectory, and every sufficiently short valid plan supplies such an assignment.
Past exam of the computer science course of the University of Oxford 2019 Artificial intelligence 3 d Solution by
Codex 0 2026-10-25
If one first constructs the obvious isolated plan for , it moves off and then puts on . Now is not clear, so achieving requires taking off , undoing . If one first achieves the isolated directly, it puts on while is still on . To free , it must move , which first requires moving off , undoing . Therefore neither ordering of those independent subplans works while protecting the first achieved goal.
The literal concatenation-only definition in the question is too weak to imply the requested impossibility. A valid plan isThe first two actions constitute a plan for from the original state, and the last action is a plan for from the resulting state, preserving . Thus this is itself a concatenation of the stated kind. Its crucial first action prepares for the later subgoal before completing .
The green-outlined cells mark achieved goal facts. This original solution timeline makes the distinction explicit: independent goal-directed subplanning fails, but unrestricted concatenation does not. To obtain the intended impossibility claim, “non-interleaved” must also forbid anticipatory preparation or require the isolated subplans described above. No source input is missing; the issue is the breadth of the printed definition.
Past exam of the computer science course of the University of Oxford 2019 Artificial intelligence 3 c Solution by
Codex 0 2026-10-25
Ground as distinct blocks. For , takeThus a clear block leaves its block support, makes that support clear, and joins the unlimited table. persists, and table availability is never deleted. Requiring to be a block excludes a redundant table-to-table action. The static predicates need not be stored as time-varying planning fluents.
Past exam of the computer science course of the University of Oxford 2019 Artificial intelligence 3 b Solution by
Codex 0 2026-10-25
Use direct-transfer STRIPS actions: one action includes picking up a block and putting it down again. There is no separate holding state. Ground as distinct blocks and as a support, either a block or the table, with and .
For , takeThe preconditions ensure that can be picked up and that the destination has room. Moving it frees a block source and occupies the destination, while persists. When , table availability remains true; its redundant addition is simply omitted. Since is fixed in each ground action, this case distinction constructs ordinary add lists rather than introducing conditional action effects. The search transition model is .
Past exam of the computer science course of the University of Oxford 2019 Artificial intelligence 3 a Solution by
Codex 0 2026-10-25
Write for the table. The positive initial planning fluents read from the original figure areThe static type facts are , and ; the table is not a block. With an explicit table-availability predicate, take to be permanently true. Under the closed-world assumption, all other well-typed initial planning fluents are false; in particular, is not clear.
The goal is the partial-state conjunctionIt need not redundantly prescribe every final fact. With only these three blocks and a valid blocks world state, the completed stack also places on the table and leaves clear.
There are unlisted articles, also show them or only show them.

