ArticleslgStudy

computer science

Metrical task system

Metrical task system is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Metrical task system rather than just read about it. In short: 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.

Key takeaways

  • Metrical task system belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Metrical task system to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Metrical task system from memory before moving on to harder problems.

Reference excerpt

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

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Metrical task system

Start with the simplest possible case. Write down what Metrical task system claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Metrical task system before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Metrical task system ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Metrical task system

In research
Metrical task system appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Metrical task system in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Metrical task system is common in secondary-school and first-year university syllabi. It links to neighbouring topics Online algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Metrical task system outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Metrical task system in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Metrical task system means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Metrical task system out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Metrical task system in simple terms?

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.

Why does Metrical task system matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Metrical task system?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Metrical task system.

Tags

  • Online algorithms

Keep exploring