- Source: Metrical task system
Task systems are mathematical objects used to model the set of possible configurations of online algorithms. They were introduced by Borodin, Linial and Saks (1992) to model a variety of online problems. A task system determines a set of states and costs to change states. Task systems obtain as input a sequence of requests such that each request assigns processing times to the states. The objective of an online algorithm for task systems is to create a schedule that minimizes the overall cost incurred due to processing the tasks with respect to the states and due to the cost to change states.
If the cost function to change states is a metric, the task system is a metrical task system (MTS). This is the most common type of task systems.
Metrical task systems generalize online problems such as paging, list accessing, and the k-server problem (in finite spaces).
Formal definition
A task system is a pair
(
S
,
d
)
{\displaystyle (S,d)}
where
S
=
{
s
1
,
s
2
,
…
,
s
n
}
{\displaystyle S=\{s_{1},s_{2},\dotsc ,s_{n}\}}
is a set of states and
d
:
S
×
S
→
R
{\displaystyle d:S\times S\rightarrow \mathbb {R} }
is a distance function. If
d
{\displaystyle d}
is a metric,
(
S
,
d
)
{\displaystyle (S,d)}
is a metrical task system. An input to the task system is a sequence
σ
=
T
1
,
T
2
,
…
,
T
l
{\displaystyle \sigma =T_{1},T_{2},\dotsc ,T_{l}}
such that for each
i
{\displaystyle i}
,
T
i
{\displaystyle T_{i}}
is a vector of
n
{\displaystyle n}
non-negative entries that determine the processing costs for the
n
{\displaystyle n}
states when processing the
i
{\displaystyle i}
th task.
An algorithm for the task system produces a schedule
π
{\displaystyle \pi }
that determines the sequence of states. For instance,
π
(
i
)
=
s
j
{\displaystyle \pi (i)=s_{j}}
means that the
i
{\displaystyle i}
th task
T
i
{\displaystyle T_{i}}
is run in state
s
j
{\displaystyle s_{j}}
. The processing cost of a schedule is
c
o
s
t
(
π
,
σ
)
=
∑
i
=
1
l
d
(
π
(
i
−
1
)
,
π
(
i
)
)
+
T
i
(
π
(
i
)
)
.
{\displaystyle \mathrm {cost} (\pi ,\sigma )=\sum _{i=1}^{l}d(\pi (i-1),\pi (i))+T_{i}(\pi (i)).}
The objective of the algorithm is to find a schedule such that the cost is minimized.
Known results
As usual for online problems, the most common measure to analyze algorithms for metrical task systems is the competitive analysis, where the performance of an online algorithm is compared to the performance of an optimal offline algorithm. For deterministic online algorithms, there is a tight bound
2
n
−
1
{\displaystyle 2n-1}
on the competitive ratio due to Borodin et al. (1992).
For randomized online algorithms, the competitive ratio is lower bounded by
Ω
(
log
n
/
log
log
n
)
{\displaystyle \Omega (\log n/\log \log n)}
and upper bounded by
O
(
(
log
n
)
2
)
{\displaystyle O\left((\log n)^{2}\right)}
. The lower bound is due to Bartal et al. (2006, 2005). The upper bound is due to Bubeck, Cohen, Lee and Lee (2018) who improved upon a result of Fiat and Mendel (2003).
There are many results for various types of restricted metrics.
See also
Adversary model
Competitive analysis
K-server problem
Online algorithm
Page replacement algorithm
Real-time computing
References
Yair Bartal; Avrim Blum; Carl Burch & Andrew Tomkins (1997). "A polylog(n)-Competitive Algorithm for Metrical Task Systems". Proceedings of the Twenty-Ninth Annual ACM Symposium on the Theory of Computing. pp. 711–719. doi:10.1145/258533.258667.
Yair Bartal, Béla Bollobás, Manor Mendel (2006). "Ramsey-type theorems for metric spaces with applications to online problems". Journal of Computer and System Sciences. 72 (5): 890–921. arXiv:cs/0406028. doi:10.1016/j.jcss.2005.05.008. S2CID 1450455.{{cite journal}}: CS1 maint: multiple names: authors list (link)
Yair Bartal, Nathan Linial, Manor Mendel, Assaf Naor (2005). "On metric Ramsey-type phenomena". Annals of Mathematics. 162 (2): 643–709. arXiv:math/0406353. doi:10.4007/annals.2005.162.643.{{cite journal}}: CS1 maint: multiple names: authors list (link)
Allan Borodin and Ran El-Yaniv (1998). Online Computation and Competitive Analysis. Cambridge University Press. pp. 123–149.
Allan Borodin, Nati Linial, and Michael Saks (1992). "An optimal online algorithm for metrical task systems". Journal of the ACM. 39 (4): 745–763. doi:10.1145/146585.146588. S2CID 18783826.{{cite journal}}: CS1 maint: multiple names: authors list (link)
Amos Fiat & Manor Mendel (2003). "Better Algorithms for Unfair Metrical Task Systems and Applications". SIAM J. Comput. 32 (6): 1403–1422. arXiv:cs/0406034. doi:10.1137/S0097539700376159.
Bubeck, Sébastien; Cohen, Michael B.; R. Lee, James & Lee, Yin Tat (2019). "Metrical task systems on trees via mirror descent and unfair gluing". Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms. arXiv:1807.04404.
Kata Kunci Pencarian:
- Metrical task system
- MTS
- Nati Linial
- Sébastien Bubeck
- Online algorithm
- K-server problem
- Assaf Naor
- Michael Saks (mathematician)
- History of the metric system
- Metre