Greedy 1/2-approximate DSIC knapsack auction #
In a single-parameter knapsack auction ([Rou13], Lecture 4, §2.2, pp. 4–5;
[Rou16], Lecture 4), bidder i : ι has a publicly known positive size w i > 0 and
private nonnegative bid b i ≥ 0, and the seller has capacity W ≥ 0 with feasible allocations
SingleParameter.knapsackFeasible w W (CslibFrontier.GameTheory.Mechanism.Knapsack).
Because exact knapsack welfare maximization is NP-hard, Roughgarden's greedy allocation rule
(GreedyKnapsack.allocation w W) trades exact optimality for a simple 1/2-approximation,
reusing the canonical tie-broken strict comparison SingleParameter.MultiUnit.Beats:
- Order bidders by decreasing bang-per-buck
fun i => b i / w i, breaking ties in favour of smaller indices (MultiUnit.Beats (fun i => b i / w i)). - Pack bidders in that order until the first bidder that does not fit and halt (
prefixWinners: equivalently, whenw j > 0, all bidders whose bang-per-buck prefix fits withinW). - Return whichever of
prefixWinnersand the highest feasible single bidder (singleWinners, ordered byMultiUnit.Beats b) achieves larger reported surplus (greedyWinners).
This module proves:
- Feasibility and binarity (
allocation_mem_knapsackFeasible,isBinary_allocation): for nonnegative sizes andW ≥ 0,allocation w Walways outputs a 0-1 knapsack-feasible vector. - Monotonicity and DSIC / IR (
isMonotone_allocation,mechanism_isDSIC,mechanism_isIR,mechanism_isNormalized,mechanism_payment_eq_myersonPayment; [Rou13], Lecture 4, Exercise 18): when allw i > 0andW ≥ 0, the greedy allocation rule is monotone, so pairing it withSingleParameter.criticalBidMechanismyields a DSIC, individually rational, normalized mechanism whose payments agree with Myerson's integral formula. 1/2-approximation to optimal welfare (two_mul_welfare_ge; [Rou13], Lecture 4, §2.2, Theorem 2.1, p. 5): whenever0 < w i ≤ Wfor every bidderi, the greedy allocation recovers at least half of the welfare of everyy ∈ knapsackFeasible w W(proved via the fractional knapsack cutoff inequality at the stopping bidderk).- Small-item
(1 - α)-approximation (one_sub_mul_welfare_le_prefixValue; [Rou13], Lecture 4, §2.2 remark after Theorem 2.1, p. 5): when0 < W,0 ≤ α, andw i ≤ α * Wfor every bidderi, even step 2 alone (prefixWinners) achieves surplus at least(1 - α)times the optimal welfare.
This module proves the mathematical properties of the greedy allocation rule and its critical-bid mechanism over real bids; no machine-level running-time theorem is claimed here.
Main definitions #
SingleParameter.GreedyKnapsack.densityPrefix,prefixWinners: step-2 maximal fitting prefix in bang-per-buck order.SingleParameter.GreedyKnapsack.IsBestSingle,singleWinners: step-3 best feasible single bidder.SingleParameter.GreedyKnapsack.greedyWinners,allocation,mechanism: greedy knapsack winners, 0-1 allocation rule, and critical-bid DSIC mechanism.
Main results #
SingleParameter.GreedyKnapsack.allocation_mem_knapsackFeasible,isBinary_allocation: feasibility and 0-1 property.SingleParameter.GreedyKnapsack.isMonotone_allocation: monotonicity ([Rou13], Lecture 4, Exercise 18).SingleParameter.GreedyKnapsack.mechanism_isDSIC,mechanism_isIR,mechanism_isNormalized,mechanism_payment_eq_myersonPayment: DSIC, IR, normalization, and Myerson payment identity.SingleParameter.GreedyKnapsack.two_mul_welfare_ge: Theorem 2.1 ([Rou13], Lecture 4, §2.2, p. 5):1/2-approximation to optimal knapsack welfare.SingleParameter.GreedyKnapsack.one_sub_mul_welfare_le_prefixValue:(1 - α)-approximation for small itemsw i ≤ α * Wwithout step 3 ([Rou13], Lecture 4, §2.2, p. 5).
References #
Strict linear orders on finite sets #
Step 1 & Step 2: Bang-per-buck order and prefix packing #
Bidders ranked at or before i in the bang-per-buck order
MultiUnit.Beats (fun j => b j / w j).
Step 2 of the greedy knapsack rule ([Rou13], Lecture 4, §2.2): the set of
bidders whose bang-per-buck prefix fits within capacity W.
Step 3: Best feasible single bidder and greedy knapsack rule #
Bidder i is the unique highest-bidding feasible single bidder (w i ≤ W), breaking ties in
favour of smaller indices (MultiUnit.Beats b).
The singleton (or empty, if no bidder fits) set containing the best feasible single bidder.
Greedy knapsack winning set ([Rou13], Lecture 4, §2.2, step (3)): returns
whichever of prefixWinners w W b and singleWinners w W b has higher reported surplus (breaking
ties in favour of prefixWinners).
Greedy knapsack 0-1 allocation rule ([Rou13], Lecture 4, §2.2).
Greedy knapsack critical-bid mechanism ([Rou13], Lecture 4, §2.2): pairs
allocation w W with Myerson's critical-bid payments (SingleParameter.criticalBidMechanism).
allocation w W is a 0-1 allocation rule.
For nonnegative sizes and capacity W ≥ 0, allocation w W always chooses a knapsack-feasible
allocation.
Monotonicity and DSIC / IR (Roughgarden Lecture 4, Exercise 18) #
Monotonicity of the greedy knapsack allocation rule ([Rou13], Lecture 4,
Exercise 18): when all bidder sizes w i are strictly positive, raising bidder i's bid from z
to z' ≥ z never turns a winner into a loser.
Greedy knapsack mechanism is individually rational.
Greedy knapsack mechanism is normalized (a zero bid pays 0).
Greedy knapsack critical-bid payments equal Myerson's payments.
Approximation guarantees (Roughgarden Lecture 4, §2.2, Theorem 2.1) #
Greedy knapsack is a 1/2-approximation to optimal welfare ([Rou13],
Lecture 4, §2.2, Theorem 2.1, p. 5): assuming 0 < w i ≤ W for every bidder i and nonnegative
bids b, twice the surplus of allocation w W b is at least the surplus of every knapsack-feasible
allocation y ∈ knapsackFeasible w W.
Small-item (1 - α)-approximation without step 3 ([Rou13], Lecture 4,
§2.2 remark after Theorem 2.1, p. 5): when 0 < W, 0 ≤ α, and every bidder satisfies
0 < w i ≤ α * W, step 2 alone (prefixWinners) already achieves surplus at least (1 - α) times
the surplus of every knapsack-feasible allocation y ∈ knapsackFeasible w W.