Bertsekas's auction algorithm on the word RAM #
This module re-exports the public problem instances from Auction.Instance and exposes the uniform
standard-basis Word-RAM running-time theorems for Bertsekas's Gauss–Seidel ε-auction algorithm
(Cslib.Algorithms.Lean.Assignment.auction and Cslib.Algorithms.Lean.Assignment.scaledAuction).
The Memory.Prog implementation and proof are organized into focused submodules under
CslibFrontier.Algorithms.WordRAM.Auction:
Auction.Instance: publicInstanceandEpsInstancedefinitions, encodings, and fit bounds.Auction.Workspace: workspace recordAuctionWS,AuctionMem,ValidWS, and shared reduced-cost readout lemmaAuctionMem.redCost_read.Auction.ScanFill: input magnitude scanscanMaxProgand shifted-scaled cost fillfillCProg.Auction.RowScan:O(n)row scansfindBestProgandfindSecondProg.Auction.BidStep: single Gauss–Seidel bid stepbidStepProg(≤ 4 n + 6memory ops).Auction.Loop: workspace array initialization and bounded-while coreauctionCoreProg.Auction.Scatter: scatteringownerto length-prefixed output memory (scatterProg).Auction.SumCost: unscaling and summing the optimal cost (sumScaledCostProg).Auction.Solve: end-to-end clientsepsMainProgandscaledSolveProg.
Main definitions #
Cslib.Algorithms.WordRAM.Auction.Instance,Cslib.Algorithms.WordRAM.Auction.EpsInstance: problem instances for the exact(n + 1)-scaled integer auction and unscaledε-auction, with their encodings,maxMag,rowSpread,wordBound, and outputs (assignment,minCost,encodedMinCost).
Main results #
Cslib.Algorithms.WordRAM.Auction.exists_epsAuction_program: uniform deterministic width-blindProgram .standard r(¬ prog.ReadsWidth,prog.IsRandFree) computingEpsInstance.assignmentinK * (inst.n ^ 2 * (C / inst.eps + 1) + 1)instructions (ExecutesListandProgram.ComputesListInTime;n * eps-optimal bysum_auctionPerm_le).Cslib.Algorithms.WordRAM.Auction.exists_scaledAuction_program: uniform deterministic width-blindProgram .standard r(¬ prog.ReadsWidth,prog.IsRandFree) computingInstance.assignmentinK * (inst.n ^ 3 * C + inst.n ^ 2 + 1)instructions (ExecutesListandProgram.ComputesListInTime; optimal bysum_scaledAuctionPerm_le).Cslib.Algorithms.WordRAM.Auction.exists_scaledMinCost_program: uniform deterministic width-blindProgram .standard r(¬ prog.ReadsWidth,prog.IsRandFree) computingInstance.encodedMinCostinK * (inst.n ^ 3 * C + inst.n ^ 2 + 1)instructions (ExecutesandProgram.ComputesInTime).
References #
O(n² (C / ε + 1)) Word-RAM ε-auction (ExecutesList and Program.ComputesListInTime).
There is a uniform deterministic width-blind standard-basis program (Program .standard r,
¬ prog.ReadsWidth, prog.IsRandFree) that, on inst.encode for any inst : EpsInstance with
0 < inst.eps, row cost ranges bounded by C, and Fits w inst.wordBound
(w = O(log n + log M + log ε)), halts within K * (inst.n ^ 2 * (C / inst.eps + 1) + 1)
instructions returning inst.assignment (n * eps-optimal by sum_auctionPerm_le and
ε-complementary-slack by isEpsCompSlack_auctionPerm; [Ber88], §1).
O(n³ C + n²) Word-RAM exact (n + 1)-scaled integer assignment (ExecutesList and
Program.ComputesListInTime). There is a uniform deterministic width-blind standard-basis
program (Program .standard r, ¬ prog.ReadsWidth, prog.IsRandFree) that, on inst.encode for
any inst : Instance with row cost ranges bounded by C and Fits w inst.wordBound
(w = O(log n + log M)), halts within K * (inst.n ^ 3 * C + inst.n ^ 2 + 1) instructions
returning the exact optimal assignment inst.assignment (sum_scaledAuctionPerm_le;
[Ber88], §3).
O(n³ C + n²) Word-RAM exact (n + 1)-scaled integer minimum assignment cost (Executes
and Program.ComputesInTime). There is a uniform deterministic width-blind standard-basis
program (Program .standard r, ¬ prog.ReadsWidth, prog.IsRandFree) that, on inst.encode for
any inst : Instance with row cost ranges bounded by C and Fits w inst.wordBound
(w = O(log n + log M)), halts within K * (inst.n ^ 3 * C + inst.n ^ 2 + 1) instructions
returning inst.encodedMinCost (Signed.encode inst.minCost; [Ber88], §3).