Chapter 9 · GameLoad Balancing and PoA? ← Chapter 9System cost0Best cost0Cost ÷ optimum—Nash equilibrium?—PoA (worst NE)— CloseHow to playJobs J1, J2, … arrive one at a time and must each be placed on one of the servers A, B, C. Press A, B or C to place the next job. A job’s completion time on a server is (total load on that server) ÷ (server speed). The system cost is the sum over all jobs of weight × completion time.Selfish equilibrium places the remaining jobs greedily (each job, on arrival, picks its fastest server), then lets every job switch servers as long as it can improve its own completion time, until nobody wants to move: a pure Nash equilibrium.Social optimum scans all 3n assignments and shows the one with the smallest system cost.Nash equilibrium? checks whether, in the current complete assignment, any job could lower its own completion time by moving.PoA (worst NE) is this instance’s Price of Anarchy: the cost of the worst Nash equilibrium ÷ the best cost. Cost ÷ optimum gives the same ratio for your current assignment.Why game theory?Each job is a selfish agent that prefers the server giving it the shortest completion time. Since every new job changes the congestion for the others, the social planner may prefer a different assignment. The Price of Anarchy compares the cost of selfish behavior with a centrally optimized assignment; values above 1 show the efficiency lost to decentralized selfish choices.Scenarios (server speeds from Level 2 on)Cloud servers: requests choose among cloud servers (speeds 1.35, 1, 0.75). The more requests share a machine, the more congestion raises response time.CPU scheduling: processes choose a processor: one fast core and two slow cores (2, 1, 1). The machine’s speed and the completion time stand out.Warehouse allocation: orders choose a distribution center (1.5, 1.2, 0.6); congestion acts like processing delay.ModesYou – bots: you place every other job (J1, J3, …; outlined in red); the jobs in between are selfish bots that pick their fastest server.You assign all: you make every assignment and can try to beat selfish behavior by hand.Selfish agents: all jobs behave selfishly and settle into a Nash equilibrium automatically.Social planner: the computer scans all assignments and picks the one that minimizes total cost.LevelsLevel 1 — Identical servers (6 jobs): all servers have the same speed; the congestion effect is easy to isolate.Level 2 — Different speeds (7 jobs): speeds differ, so the fastest machine can become overcrowded.Level 3 — Weighted jobs (8 jobs, weights 1–3, different speeds): jobs differ in size, creating stronger externalities and more complex best assignments.