- Introduced by
- Lloyd Shapley, Herbert Scarf
- Year
- 1974
- Type
- algorithm
- Family
- Game-theoretic
What does it do?
Top Trading Cycles (TTC) is an algorithm for allocating indivisible goods among agents who each start with one good, without monetary transfers.
Lloyd Shapley and Herbert Scarf analysed the procedure in a housing-market model in their 1974 paper, where it produces an allocation that is Pareto efficient and individually rational, and in that setting it computes the core allocation. Variants of the procedure have been applied to kidney exchange.
The intuition behind the method
Imagine a group of people each owning one house, and each person ranking all houses by preference. The TTC algorithm asks: who is my favorite? Point to them. Now look at who pointed to you. If it is a cycle (A points to B, B points to C, C points to A), execute those trades: A gets B's house, B gets C's house, C gets A's house. Everyone in the cycle is happy because they got someone's house they prefer to their current one. Remove the cycle and repeat until every agent has been assigned a house. The result is efficient because all beneficial trades are made.
History
Shapley and Scarf introduced the housing-market model in their 1974 paper 'On cores and indivisibility', which analyses the top-trading-cycles procedure. In that setting TTC computes the core allocation, which is unique. Later work applied these ideas to kidney exchange; the paper cited here, by Roth, Sonmez and Unver, studies exchanges among incompatible patient-donor pairs under compatibility constraints.
When to use it
Choose TTC when goods are indivisible, each agent starts with one good (their endowment), preferences are strict, and monetary transfers are not used or not wanted. It suits problems where no agent should end up worse off than their starting position and where the outcome should be efficient, such as house swaps among existing occupants. In kidney exchange, TTC-type procedures can be used only in a constrained form: the basic model's individual rationality, efficiency and incentive results are not established for compatibility-constrained exchanges, so these properties must be checked separately for the variant in use. Do not use it when preferences contain indifferences unless a tie-breaking rule is specified, when agents need several goods as a bundle, when payments are available, or when the goal is equal outcomes rather than efficiency. The individual-level incentive result also does not cover groups of agents who might coordinate their reports.
Limitations and considerations
- Its guarantees hold only under stated assumptions: each agent owns exactly one indivisible good, preferences are strict and complete, there are no monetary transfers, and there are no feasibility constraints beyond the housing setting. If any of these assumptions is violated, the stated guarantees no longer apply.
- Requires strict preferences; with indifferences, the cycles found depend on how ties are broken, so the outcome is not determined without a tie-breaking rule.
- Not coalition-proof: a group of agents can sometimes gain by jointly misreporting preferences, even though no single agent can.
- The basic model assumes each agent holds exactly one good and that no monetary transfers occur; multi-unit demands or payments require different mechanisms or extensions.
- When constraints restrict which agents may trade, as with compatibility in kidney exchange, the set of feasible cycles is smaller, so some agents may remain unmatched.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Individually rational: an agent can always keep their own good, so no agent ends up worse off than under the initial endowment.
- Pareto efficient: all mutually beneficial cycles of swaps are executed, so no reallocation can improve one agent without harming another.
- Computes the core allocation in the basic Shapley-Scarf housing model, where that core allocation is unique.
- Strategy-proof for individual agents in the basic housing setting: an agent cannot gain by misreporting their preferences.
- Simple to explain: each round consists of direct swaps along cycles, and the number of rounds cannot exceed the number of agents.
Applications
- Kidney exchange, where compatibility constraints restrict which donor-recipient pairs can swap, as studied in the cited work on efficient kidney exchange
- Housing allocation, the original setting of the Shapley-Scarf model, in which each agent owns one house
How it works
How it works
Each remaining agent points to the owner of the most-preferred house still in the market. An agent whose own house is their top choice points to themselves.
Every agent points to exactly one agent (possibly itself), so following the pointers must eventually return to an agent already visited. This guarantees at least one cycle in each round; a self-pointing agent forms a cycle of length one.
Each agent in an identified cycle receives the house of the agent they pointed to. The agents and houses involved in these trades leave the market.
Repeat the procedure on the remaining agents and houses. Each round removes at least one agent, so the loop runs at most as many rounds as there are agents. Because a cycle exists in every round, the process ends only when no agents remain, so in the basic model every agent is assigned a house.
Common pitfalls
- Confusing efficiency with fairness: TTC can produce a highly unequal allocation as long as no further trade improves it.
- Assuming that the individual strategy-proofness result carries over to every extension; it is established for the basic housing model, and incentive properties in constrained settings such as kidney exchange need separate checking.
- Applying TTC to weak preferences without specifying a tie-breaking rule, which changes which cycles form.
- Expecting unmatched agents in the basic model: there every agent is assigned, and unmatched agents arise only when additional feasibility constraints are imposed.
Frequently asked questions
Why is Pareto efficiency important in resource allocation?
Pareto efficiency ensures no agent can be made better off without making another worse off. It is a minimal requirement for a 'good' allocation; violating it means resources are being wasted and could be reallocated to benefit someone.
Can TTC produce multiple different allocations?
In the basic housing model with strict preferences, TTC computes the unique core allocation, so the final outcome does not depend on the order in which cycles are found. Many other allocations are Pareto efficient; TTC selects the one that lies in the core.
How is TTC modified for kidney exchange when not all donor-recipient pairs are compatible?
In kidney exchange, the procedure is adapted to compatibility constraints, so cycles are restricted to feasible exchanges among compatible pairs. The cited work considers exchanges involving two, three and more pairs, and finds that exchanges larger than three-way have a smaller effect on efficiency. The guarantees of the basic model do not automatically transfer, so the exact model in the cited work should be checked.
Related methods
Sources
Shapley, L. S., & Scarf, H. (1974). On cores and indivisibility. Journal of Mathematical Economics, 1(1), 23-37.
Open DOI referenceRoth, A. E., Sönmez, T., & Ünver, M. U. (2008). Efficient kidney exchange: Coincidence of wants in markets with compatibility. American Economic Review, 97(3), 828-851.
Open DOI reference