The Work Function Algorithm (WFA) for a Metrical Task System. The Work Function Algorithm is described very simply. At each step: 1) Read the request 2) Update the work function w 3) Move to some state in the support of w which minimizes the cost of movement plus the cost of service plus the value of w(A), where A is the new state. Theorem: WFA is 2k-1 competitive for any k-state MTS, and there is no better deterministic algorithm in the general case.