GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Algebra
  • Applied Mathematics
  • Calculus and Analysis
  • Discrete Mathematics
  • Foundations of Mathematics
  • Geometry
  • History and Terminology
  • Number Theory
  • Probability and Statistics
  • Recreational Mathematics
  • Topology
  • Alphabetical Index
  • Random Entry
  • New in MathWorld

This view

  • Original page
  • New address

GeezerVison is showing mathworld.wolfram.com — Work Function Algorithm -- from Wolfram MathWorld

Search

Work Function Algorithm


The work function algorithm is an online algorithm that chooses its next state using the optimal offline costs for the input revealed so far. In the k-server problem, let w_t(X) be the minimum cost of serving the first t requests from a specified initial configuration and then ending with the servers at configuration X. This function is the work function. It can be updated from w_(t-1) by dynamic programming.

The distance between configurations X={x_1,...,x_k} and Y={y_1,...,y_k} is the minimum total distance required to move the servers from one configuration to the other,

 D(X,Y)=min_(pi in S_k)sum_(i=1)^kd(x_i,y_(pi(i))),

where d is the underlying metric and S_k is the symmetric group of permutations of the k servers. If the current configuration is C_(t-1) and the next request is r_t, the work function algorithm chooses

 C_t in argmin_(X:r_t in X)[w_t(X)+D(C_(t-1),X)].

Thus the chosen configuration must contain the requested point, and ties may be broken arbitrarily. Configurations are multisets of server locations, so multiple servers may occupy the same point.

Koutsoupias and Papadimitriou (1995) proved a competitive ratio of at most 2k-1 for the k-server problem. Coester et al. (2026) reported the optimal competitive ratio k, with independent specialist verification and external peer review not reported as of Sep. 18, 2026.


See also

Competitive Ratio, Dynamic Programming, k-Server Problem, Online Algorithm

Explore with Wolfram|Alpha

WolframAlpha

More things to try:

  • 219 to binary
  • Champernowne constant
  • Jordan decomp {{-10,1,7},{-7,2,3},{-16,2,12}}

References

Coester, C.; Koutsoupias, E.; and Zbysiński, M. "The k-Server Conjecture Is True." 14 Sep 2026. https://arxiv.org/abs/2609.15979.Koutsoupias, E. and Papadimitriou, C. H. "On the k-Server Conjecture." J. ACM 42, 971-983, 1995. https://doi.org/10.1145/210118.210128.

Cite this as:

Weisstein, Eric W. "Work Function Algorithm." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/WorkFunctionAlgorithm.html

Subject classifications

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.