@techreport{azar2007on, author = {Azar, Yossi and Feige, Uriel and Nath, Suman}, title = {On the Work Function Algorithm for two state task}, year = {2007}, month = {February}, abstract = {We revisit the known work function online algorithm WFA for metrical task systems in the special case when there are only two states. We offer a slightly modified version of this algorithm, and show that our version exactly mimics the migration pattern of the best possible offline algorithm, though the timing of the migration events is somewhat different in these two algorithms. We use this to bound the cost of WFA in terms of the cost of the optimal offline algorithm. We show that our version of WFA not only has competitive ratio at most 3 in the worse case (which is best possible in the worst case), but additionally enjoys better competitive ratios on "typical" input sequences. We also present experimental evidence to support our theoretical analysis.}, url = {http://approjects.co.za/?big=en-us/research/publication/on-the-work-function-algorithm-for-two-state-task/}, pages = {11}, number = {MSR-TR-2007-20}, }