Sequential greedy assignment
Also known as Greedy task allocation
allocation task-allocation
The sequential greedy assignment knows every agent's valuation and builds the assignment one task at a time. Each round it looks at every agent with room left and every unassigned task, and gives the task with the highest marginal gain, an integer u64 score, to that agent at its best insertion; ties go to the smaller agent, then the smaller task, and tasks with gain zero stay unassigned. For submodular valuations the property tests check that it scores at least half the optimum without capacity limits and a third with them, the bounds for greedy over one and two matroids. It is the reference the decentralized algorithms are measured against: with diminishing gains and every task known from the start, CBBA agents with Replan::Full settle on it up to tied gains. Use it as the centralized fallback when one process sees every valuation; use the auctions when only bids reach a center, and CBBA when there is no center at all.
Pseudocode
algorithm Sequential-Greedy(V, m, L)input: valuations V₁, …, V_n, tasks 1, …, m, capacity Loutput: one bundle per agent, conflict-freeB_a ← ⟨⟩ for every agent arepeatw, t, best ← nil, nil, 0for each agent a with |B_a| < L dofor each task j not yet assigned dog, p ← best-insertion(V_a, B_a, j)if g > best thenw, t, best, pos ← a, j, g, p ▷ strict: ties go to the smaller agent, then taskif w ≠ nil theninsert t into B_w at position posuntil w = nil ▷ no agent gains from any task leftreturn B₁, …, B_nIn the crates
task-allocationWith every valuation known, repeatedly gives the most valuable remaining task to the agent that values it most; a reference for the decentralized algorithms and a centralized fallback.
Papers
- An analysis of approximations for maximizing submodular set functions—II M. L. Fisher, G. L. Nemhauser, L. A. Wolsey · 1978· Mathematical Programming Studies