Abstract
We study several variants of a fixed length ski rental problem and related scheduling problems with rejection. A ski season consists of m days, and an equipment of cost 1 is to be used during these days. The equipment can be bought on any day, in which case it can be used without any additional cost starting that day and until the vacation ends. On each day, the algorithm is informed with the current non-negative cost of renting the equipment. As long as the algorithm did not buy the equipment, it must rent it every day of the vacation, paying the rental cost of each day of rental. We consider the case of arbitrary, non-increasing, and non-decreasing rental costs. We consider the case where the season cannot end before the mth day, and the case that it can end without prior notice. We propose optimal online algorithms for all values of m for all variants. The optimal competitive ratios are either defined by solutions of equations (closed formulas or finite recurrences) or sets of mathematical programs, and tend to 2 as m grows.
Similar content being viewed by others
Notes
Using the standard analysis for ski rental, for an input of i requests, the cost of an optimal solution is min{i/M, 1}, and the cost of the algorithm for i < 2M − 1 is 1+(i − 1)/M, while its cost for 2M − 1 requests is at least 2−1/M.
References
Azar, Y., Bartal, Y., Feuerstein, E., Fiat, A., Leonardi, S., Rosén, A.: On capital investment. Algorithmica 25(1), 22–36 (1999)
Bartal, Y., Leonardi, S., Marchetti-Spaccamela, A., Sgall, J., Stougie, L.: Multiprocessor scheduling with rejection. SIAM J. Discret. Math. 13(1), 64–78 (2000)
Bienkowski, M.: Price fluctuations: To buy or to rent. In: Proc. of the 7th International Workshop on Approximation and Online Algorithms (WAOA2009), pp. 25-36 (2009)
Dong, Y., Xu, Y., Xu, W.: The on-line rental problem with risk and probabilistic forecast. In: Proc. of the 1st Annual International Workshop on Frontiers in Algorithmics (FAW2007), pp. 117-123 (2007)
El-Yaniv, R., Kaniel, R., Linial, N.: Competitive optimal on-line leasing. Algorithmica 25(1), 116–140 (1999)
El-Yaniv, R., Karp, R.: Nearly optimal competitive online replacement policies. Math. Oper. Res. 22(4), 814–839 (1997)
El-Yaniv, R., Karp, R. M.: The mortgage problem. In: 2nd Israeli Symposium on Theory of Computing and Systems (ISTCS1993), pp. 304–312 (1993)
Epstein, L., Fiat, A., Levy, M.: Caching content under digital rights management. In: Proc. of the 6th International Workshop on Approximation and Online Algorithms (WAOA2008), pp. 188–200 (2008)
Epstein, L., Zebedat-Haider, H.: Online scheduling with rejection and withdrawal. Theor. Comput. Sci. 412(48), 6666–6674 (2011)
Epstein, L., Zebedat-Haider, H.: Online scheduling with rejection and reordering: exact algorithms for unit size jobs. J. Comb. Opt. doi:10.1007/s10878-012-9593-5 (2013)
Epstein, L., Zebedat-Haider, H.: Online scheduling with rejection and unit size jobs on three identical machines. Manuscript (2013)
Fleischer, R.: On the bahncard problem. Theor. Compuer Sci. 268(1), 161–174 (2001)
Irani, S., Ramanathan, D.: The problem of renting versus buying. Manuscript (1994)
Karlin, A. R., Kenyon, C., Randall, D.: Dynamic TCP acknowledgment and other stories about e/(e − 1). Algorithmica 36(3), 209–224 (2003)
Karlin, A. R., Manasse, M. S., McGeoch, L. A., Owicki, S. S.: Competitive randomized algorithms for nonuniform problems. Algorithmica 11(6), 542–571 (1994)
Karlin, A. R., Manasse, M. S., Rudolph, L., Sleator, D. D.: Competitive snoopy caching. Algorithmica 3, 77–119 (1988)
Karp, R. M.: On-line algorithms versus off-line algorithms: How much is it worth to know the futureIn: Proc. of the IFIP 12th World Computer Congress (IFIP1992), Algorithms, Software, Architecture - Information Processing, volume A-12 of IFIP Transactions (1992)
Lotker, Z., Patt-Shamir, B., Rawitz, D.: Ski rental with two general options. Inf. Process. Lett. 108(6), 365–368 (2008)
Lotker, Z., Patt-Shamir, B., Rawitz, D.: Rent, lease, or buy: Randomized algorithms for multislope ski rental. SIAM J. Discret. Math. 26(2), 718–736 (2012)
Meyerson, A.: The parking permit problem. In: Proc. of the 46th Annual IEEE Symposium on Foundations of Computer Science (FOCS2005), pp. 274–284 (2005)
Rudolph, L., Segall, Z.: Dynamic paging schemes for MIMD parallel processors. Technical report, CS Department. Carnegie-Mellon University (1986)
Seiden, S. S.: Preemptive multiprocessor scheduling with rejection. Theor. Comput. Sci. 262(1), 437–458 (2001)
Yang, X., Zhang, W., Zhang, Y., Xu, W.: Optimal randomized algorithm for a generalized ski-rental with interest rate. Inf. Process. Lett. 112(13), 548–551 (2012)
Zhang, G., Poon, C. K., Xu, Y.: The ski-rental problem with multiple discount options. Inf. Process. Lett. 111(18), 903–906 (2011)
Zhang, Y., Zhang, W., Xu, W., Li, H.: A risk-reward model for the on-line leasing of depreciable equipment. Inf. Process. Lett. 111(6), 256–261 (2011)
Author information
Authors and Affiliations
Corresponding author
Additional information
An extended abstract of this paper appears in Proc. MFCS’13, pages 361-372.
Rights and permissions
About this article
Cite this article
Epstein, L., Zebedat-Haider, H. Rent or Buy Problems with a Fixed Time Horizon. Theory Comput Syst 56, 309–329 (2015). https://doi.org/10.1007/s00224-014-9552-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00224-014-9552-x