Skip to main content
Log in

Weighted Online Problems with Advice

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

Recently, the first online complexity class, A O C, was introduced. The class consists of many online problems where each request must be either accepted or rejected, and the aim is to either minimize or maximize the number of accepted requests, while maintaining a feasible solution. All A O C-complete problems (including Independent Set, Vertex Cover, Dominating Set, and Set Cover) have essentially the same advice complexity. In this paper, we study weighted versions of problems in A O C, i.e., each request comes with a weight and the aim is to either minimize or maximize the total weight of the accepted requests. In contrast to the unweighted versions, we show that there is a significant difference in the advice complexity of complete minimization and maximization problems. We also show that our algorithmic techniques for dealing with weighted requests can be extended to work for non-complete A O C problems such as Matching in the edge arrival model (giving better results than what follow from the general A O C results) and even non- A O C problems such as scheduling.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Notes

  1. For example, ⌈log n⌉could be written in unary (⌈log n⌉ones, followed by a zero) before writing n itself in binary.

  2. f is a norm if f(α v) = |α|f(v), f(u + v) ≤ f(u) + f(v), and f(v) = 0 ⇒v = 0.

References

  1. Albers, S., Hellwig, M.: Online Makespan Minimization with Parallel Schedules. In: SWAT, LNCS, vol. 8503, pp 13–25 (2014)

  2. Böckenhauer, H. J., Hromkovič, J., Komm, D., Krug, S., Smula, J., Sprock, A.: The string guessing problem as a method to prove lower bounds on the advice complexity. Theor. Comput. Sci. 554, 95–108 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  3. Böckenhauer, H. J., Komm, D., Královič, R., Královič, R., Mömke, T.: On the Advice Complexity of Online Problems. In: ISAAC, LNCS, vol. 5878, pp 331–340 (2009)

  4. Borodin, A., Irani, S., Raghavan, P., Schieber, B.: Competitive paging with locality of reference. J. Comput. Syst. Sci. 50(2), 244–258 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  5. Boyar, J., Epstein, L., Favrholdt, L.M., Larsen, K.S., Levin, A.: Online Bounded Analysis. In: CSR, LNCS, vol. 9691, pp 131–145 (2016)

  6. Boyar, J., Favrholdt, L.M., Kudahl, C., Larsen, K.S., Mikkelsen, J.W.: Online algorithms with advice: a survey. ACM Comput. Surv. (CSUR) 50(2), 19 (2017)

    Article  MATH  Google Scholar 

  7. Boyar, J., Favrholdt, L.M., Kudahl, C., Mikkelsen, J.W.: Advice Complexity for a Class of Online Problems. In: STACS, LIPIcs, vol. 30, pp. 116–129 (2015). Full paper to appear in Theory of Computing Systems

  8. Chrobak, M., Noga, J.: LRU is better than FIFO. Algorithmica 23(2), 180–185 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  9. Dobrev, S., Královič, R., Pardubská, D.: Measuring the problem-relevant information in input. RAIRO - Theor. Inf. Appl. 43(3), 585–613 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  10. Dürr, C., Konrad, C., Renault, M.P.: On the Power of Advice and Randomization for Online Bipartite Matching. In: ESA, LIPIcs, pp 37:1–37:16 (2016)

  11. Emek, Y., Fraigniaud, P., Korman, A., Rosén, A.: Online computation with advice. Theor. Comput. Sci. 412(24), 2642–2656 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  12. Karlin, A.R., Manasse, M.S., Rudolph, L., Sleator, D.D.: Competitive snoopy caching. Algorithmica 3, 77–119 (1988)

    Article  MathSciNet  MATH  Google Scholar 

  13. Komm, D., Královič, R., Královič, R., Kudahl, C.: Advice Complexity of the Online Induced Subgraph Problem. In: MFCS, LIPIcs, vol. 58, pp 59:1–59:13 (2016)

  14. Mikkelsen, J.W.: Randomization can be as Helpful as a Glimpse of the Future in Online Computation. In: ICALP, LIPIcs, vol. 55, pp 39:1–39:14 (2016)

  15. Renault, M.P., Rosén, A., van Stee, R.: Online algorithms with advice for bin packing and scheduling problems. Theor. Comput. Sci. 600, 155–170 (2015)

    Article  MathSciNet  MATH  Google Scholar 

  16. Sleator, D.D., Tarjan, R.E.: Amortized efficiency of list update and paging rules. Commun. ACM 28(2), 202–208 (1985)

    Article  MathSciNet  Google Scholar 

  17. Smula, J.: Information Content of Online Problems: Advice Versus Determinism and Randomization. Ph.D. Thesis, ETH Zürich (2015)

    Google Scholar 

  18. Sprock, A.: Analysis of Hard Problems in Reoptimization and Online Computation. Ph.D. thesis, ETH Zürich (2013)

    Google Scholar 

Download references

Acknowledgments

This work was partially supported by the Villum Foundation, grant VKR023219, and the Danish Council for Independent Research, Natural Sciences, grant DFF-1323-00247.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Joan Boyar.

Additional information

This article is part of the Topical Collection on Special Issue on Combinatorial Algorithms

A preliminary version of this paper appeared in the proceedings of the 27th International Workshop on Combinatorial Algorithms (IWOCA 2016), Lecture Notes in Computer Science, vol. 9843, pp. 179–190, Springer (2016).

Appendices

Appendix A: AOC-Complete Problems

For completeness, we state the full definition of minASGk from [7]:

Definition 7 ([7])

The minimum asymmetric string guessing problem with known history, minASGk, has input 〈?, x 1,…, x n 〉, where x = x 1x n ∈{0, 1}n, forsome \(n\in \mathbb {N}\).For 1 ≤ in,round i proceeds as follows:

  1. 1.

    If i > 1,the algorithm learns the correct answer, x i−1,to the request in the previous round.

  2. 2.

    The algorithm answers y i = f(x 1,…, x i−1) ∈{0, 1},where f is a function defined by the algorithm.

The output y = y 1y n computed by thealgorithm is feasible, if \(x\sqsubseteq y\).Otherwise, y is infeasible. The cost of a feasible output is |y|1, and the cost of aninfeasible output is .

In addition to minASGk, the class of A O C-complete problems also contains many graph problems. The following four graph problems are studied in the vertex-arrival model, so the requests are vertices, each presented together with its edges to previous vertices. The first three problems are minimization problems and the last one is a maximization problem. In Vertex Cover, an algorithm must accept a set of vertices which constitute a vertex cover, so for every edge in the requested graph, at least one of its endpoints is accepted. For Dominating Set, the accepted vertices must constitute a dominating set, so every vertex in the requested graph must be accepted, or one its neighbors must be accepted. In Cycle Finding, an algorithm must accept a set of vertices inducing a cyclic graph. For Independent Set, the accepted vertices must form an independent set, i.e., no two accepted vertices share an edge.

For Disjoint Path Allocation a path P is given, and the requests are subpaths of P. The aim is to accept as many edge disjoint paths as possible.

For Set Cover, the requests are finite subsets from a known universe, and the union of the accepted subsets must be the entire universe. The aim is to accept as few subsets as possible.

Appendix B: Reductions for Theorem 2

In the proof of Theorem 2, a reduction sketch was given for the weighted online version of Vertex Cover. Here we include sketches for the reductions for the weighted versions of Cycle Finding, Dominating Set and Set Cover.

1.1 Cycle Finding

Each input σ = 〈x 1, x 2,…, x n 〉 to the problem minASGk, is transformed to f(σ) = 〈v 1, v 2,…, v n 〉, where V = {v 1, v 2,…, v n } is the vertex set of a graph with edge set E = {(v j , v i ): f (x i ) = j}∪{(v min, v max)}, where f (x i ) is the largest j < i such that x j = 1, max is the largest i such that x i = 1, and min is the smallest i such that x i = 1. If |σ|1 > 2, the vertices corresponding to 1s form the only cycle in the graph.

The advice used by the minASGk algorithm Alg1 consists of the advice used by the Cycle Finding algorithm Alg2 in combination with 1 bit indicating whether or not |σ|1 ≤ 2 and in this case (an encoding of) one or two indices of 1s in the input sequence. If |σ|1 > 2, then Alg2 accepts some vertices, and Alg1 returns a 1 for the x i corresponding to each of those vertices.

If Alg1 returns a non-optimal feasible set, Alg2 does too, and the sets have the same weights, so Alg1(σ) ≤Alg2(f(σ)) + Opt(σ). In this case, the weights of the optimal solutions for σ and f(σ) are both the sum of the weights of the elements corresponding to 1s in σ, so f is a length preserving O(f(n))-reduction.

1.2 Dominating Set

Each input σ = 〈x 1, x 2,…, x n 〉 to the problem minASGk, is transformed to f(σ) = 〈v 1, v 2,…, v n 〉, where V = {v 1, v 2,…, v n } is the vertex set of a graph with edge set E = {(v i , v max)}., where max is the largest i such that x i = 1.

The advice used by the minASGk algorithm Alg1 consists of the advice used by the Dominating Set algorithm Alg2 in combination with 1 bit indicating whether or not |σ|1 = 0. If |σ|1 ≥ 1, then there is another bit of advice indicating whether or not Alg2 accepted v max. If Alg2 did not accept v max, the advice also contains an index of a vertex corresponding to a 0 in σ which was accepted, plus the index of v max.

If Alg1’s solution is feasible, but not optimal, then |σ|1 > 0 and Alg2 accepts some vertices, and Alg1 returns a 1 for the x i corresponding to each of those vertices (though, in the case where v max was rejected, it answers 1 for x max and answers 0 for the earlier request indicated by the advice).

If |σ|1 > 0 a minimum weight dominating set for f(σ) consists of exactly those vertices corresponding to 1s in σ, so the weights of the optimal solutions for σ and f(σ) are both the sum of the weights of the elements corresponding to 1s in σ, unless Alg2 did not accept v max. However, the weight of x max ≤Opt(σ), so Alg1(σ) ≤Alg2(f(σ)) + Opt(σ). Thus, f is a length preserving O(log(n)-reduction.

1.3 Set Cover

This reduction is very similar to that for Dominating Set. Each input σ = 〈x 1, x 2,…, x n 〉 to the problem minASGk, max is the largest i such that x i = 1. In the set cover instance, the universe is {1,…, n}, and f(σ) is a set of n requests, where request i is {i}, unless i = max, in which case, the set consists of max and all of the j where x j = 0.

As with the reduction to Dominating Set, this is a length preserving O(log(n)-reduction.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Boyar, J., Favrholdt, L.M., Kudahl, C. et al. Weighted Online Problems with Advice. Theory Comput Syst 62, 1443–1469 (2018). https://doi.org/10.1007/s00224-017-9806-5

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-017-9806-5

Keywords

Navigation