Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24...
Transcript of Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24...
![Page 1: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/1.jpg)
Rent, Lease or Buy 1 / 24
Rent, Lease or Buy:
Randomized Algorithms for Multislope Ski Rental
Zvi LotkerBen-Gurion University
Boaz Patt-Shamir Dror RawitzTel Aviv University
![Page 2: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/2.jpg)
Rent or Buy Dilemma
⊲ Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 2 / 24
Sleeping Baby Problem:
� You finally managed to put baby to sleep
![Page 3: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/3.jpg)
Rent or Buy Dilemma
⊲ Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 2 / 24
Sleeping Baby Problem:
� You finally managed to put baby to sleep
� Baby will wake up at some unknown timein the future
![Page 4: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/4.jpg)
Rent or Buy Dilemma
⊲ Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 2 / 24
Sleeping Baby Problem:
� You finally managed to put baby to sleep
� Baby will wake up at some unknown timein the future
� Should parent stay awake or go to sleep?When should the parent go to sleep?
– Going to sleep −→ fixed effort– Staying awake −→ effort per time unit
![Page 5: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/5.jpg)
Rent or Buy Dilemma
⊲ Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 3 / 24
Question:How do we measurethe quality of our solution?
![Page 6: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/6.jpg)
Rent or Buy Dilemma
⊲ Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 3 / 24
Question:How do we measurethe quality of our solution?
Competitive Analysis:
� Worst case analysis:Baby tries to make parent’s lifeas hard as possible
![Page 7: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/7.jpg)
Rent or Buy Dilemma
⊲ Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 3 / 24
Question:How do we measurethe quality of our solution?
Competitive Analysis:
� Worst case analysis:Baby tries to make parent’s lifeas hard as possible
� Our solution is comparedto best solution whenfuture is known in advance
![Page 8: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/8.jpg)
Ski Rental
Rent or Buy
⊲ Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 4 / 24
Discrete Version:
� Ski Rental Problem:
– Vacation at ski resort– End of vacation is unknown– Cost of skis is ¤B, rent is ¤1/day– Should we rent or buy the skis?– When should we buy?
![Page 9: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/9.jpg)
Ski Rental
Rent or Buy
⊲ Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 4 / 24
Discrete Version:
� Ski Rental Problem:
– Vacation at ski resort– End of vacation is unknown– Cost of skis is ¤B, rent is ¤1/day– Should we rent or buy the skis?– When should we buy?
� Optimal Offline Cost:
– Rent, if vacation isshorter than B days
– Buy at t = 0, otherwise
timeB
cost
B
![Page 10: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/10.jpg)
Ski Rental
Rent or Buy
⊲ Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 5 / 24
Optimal Online Strategies:
� 2-competitive deterministic strategy[Karlin et al. 88]
– Buy after B days timeB
cost
B
![Page 11: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/11.jpg)
Ski Rental
Rent or Buy
⊲ Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 5 / 24
Optimal Online Strategies:
� 2-competitive deterministic strategy[Karlin et al. 88]
– Buy after B days timeB
cost
B
�e
e−1 -competitive randomized strategy [Karlin et al. 94]
– Buy at time t ≤ B chosenaccording to some distribution
![Page 12: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/12.jpg)
Ski Rental
Rent or Buy
⊲ Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 5 / 24
Optimal Online Strategies:
� 2-competitive deterministic strategy[Karlin et al. 88]
– Buy after B days timeB
cost
B
�e
e−1 -competitive randomized strategy [Karlin et al. 94]
– Buy at time t ≤ B chosenaccording to some distribution
– Oblivious adversary
![Page 13: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/13.jpg)
Ski Rental
Rent or Buy
⊲ Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 5 / 24
Optimal Online Strategies:
� 2-competitive deterministic strategy[Karlin et al. 88]
– Buy after B days timeB
cost
B
�e
e−1 -competitive randomized strategy [Karlin et al. 94]
– Buy at time t ≤ B chosenaccording to some distribution
– Oblivious adversary
– There exists a distribution,for which the best competitive factor is e
e−1
![Page 14: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/14.jpg)
Rent, Lease or Buy
Rent or Buy
Ski Rental
⊲Rent, Lease orBuy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 6 / 24
Sleeping Problem:
� Price of sleep increases with its depth� Sleep rent decreases with its depth
awake closing eyes naping asleep
![Page 15: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/15.jpg)
Rent, Lease or Buy
Rent or Buy
Ski Rental
⊲Rent, Lease orBuy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 6 / 24
Sleeping Problem:
� Price of sleep increases with its depth� Sleep rent decreases with its depth
awake closing eyes naping asleep
Extended Ski Rental:
� Mixed rent and buy options� Pure buy or pure rent may not exist
![Page 16: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/16.jpg)
Multislope Ski Rental
Rent or Buy
Ski Rental
Rent, Lease or Buy
⊲Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 7 / 24
Problem Definition:
� Several states/slopes
– Slope i: bi + ri · t
– bi+1 > bi for all i
– ri+1 < ri for all i
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
� End time is unknown� Which slope should we buy? When?
![Page 17: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/17.jpg)
Multislope Ski Rental
Rent or Buy
Ski Rental
Rent, Lease or Buy
⊲Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 7 / 24
Problem Definition:
� Several states/slopes
– Slope i: bi + ri · t
– bi+1 > bi for all i
– ri+1 < ri for all i
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
� End time is unknown� Which slope should we buy? When?
� Online Buying Costs:Say we are in slope i, how much do we pay for slope j?
![Page 18: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/18.jpg)
Multislope Ski Rental
Rent or Buy
Ski Rental
Rent, Lease or Buy
⊲Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 7 / 24
Problem Definition:
� Several states/slopes
– Slope i: bi + ri · t
– bi+1 > bi for all i
– ri+1 < ri for all i
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
� End time is unknown� Which slope should we buy? When?
� Online Buying Costs:Say we are in slope i, how much do we pay for slope j?
– Additive Model: bj − bi
– From-scratch Model: bj
– Non-Additive Model: bij
![Page 19: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/19.jpg)
Offline Strategy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
⊲ Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 8 / 24
Offline Strategy:
� Knows end time in advance� Buys a slope at time 0 according to end time
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
![Page 20: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/20.jpg)
Offline Strategy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
⊲ Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 8 / 24
Offline Strategy:
� Knows end time in advance� Buys a slope at time 0 according to end time
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
opt(t)
s1 s2 s3
Competitive Analysis:The online strategy is compared to the offline strategy
![Page 21: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/21.jpg)
Previous Results & Applications
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
⊲ Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 9 / 24
Non-additive/from-scratch models:
� Online Capital Investments:
– Deter. 6.83-competitive strategy(slopes may arrive over time)[Azar et al. 99]
– Deter. lower bound 3.618Random. 2.88-competitive strategy[Damaschke 03]
![Page 22: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/22.jpg)
Previous Results & Applications
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
⊲ Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 9 / 24
Non-additive/from-scratch models:
� Online Capital Investments:
– Deter. 6.83-competitive strategy(slopes may arrive over time)[Azar et al. 99]
– Deter. lower bound 3.618Random. 2.88-competitive strategy[Damaschke 03]
� Rerouting in ATM networks:
– 4-competitive deterministic strategy(slopes may be concave)[BCN 00]
![Page 23: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/23.jpg)
Previous Results & Applications
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
⊲ Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 10 / 24
Energy Saving:
� Slopes are hibernation modes
![Page 24: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/24.jpg)
Previous Results & Applications
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
⊲ Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 10 / 24
Energy Saving:
� Slopes are hibernation modes
� Additive model [IGS 02]:
– Deterministic 2-competitive strategy
� Non-additive model [AIS 04]:
– Algorithm that computesbest deterministic strategy
– Algorithm that computes beststrategy given distribution of idle period length(complexity depends on #bins in histogram)
![Page 25: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/25.jpg)
Our Results
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
⊲ Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 11 / 24
Two slopes without pure buy:
� Deterministic Strategy:
– Buy at s where r0s = b1 + r1s
– Competitive ratio is 1 + r0−r1r0
time
cost
b1
s
r0t
b1 + r1t
![Page 26: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/26.jpg)
Our Results
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
⊲ Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 11 / 24
Two slopes without pure buy:
� Deterministic Strategy:
– Buy at s where r0s = b1 + r1s
– Competitive ratio is 1 + r0−r1r0
time
cost
b1
s
r0t
b1 + r1t
� Our Results [LPR08a]:
– Randomized ee−1+
r1r0
-competitive strategy
– Matching lower bound (using Yao’s Lemma)
![Page 27: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/27.jpg)
Our Results
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
⊲ Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 12 / 24
Multislope Ski Rental [LPR08b]:
� Additive Model:
– Randomized e−rk/r0
e−1 -competitive strategy(Decomposition into k classical ski rental instances)
– Main Result:Algorithm that computesbest randomized strategy
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
opt(t)
s1s2 s3
![Page 28: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/28.jpg)
Our Results
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
⊲ Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 12 / 24
Multislope Ski Rental [LPR08b]:
� Additive Model:
– Randomized e−rk/r0
e−1 -competitive strategy(Decomposition into k classical ski rental instances)
– Main Result:Algorithm that computesbest randomized strategy
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
opt(t)
s1s2 s3
� Non-additive Model
– Randomized e-competitive strategy(Repeated doubling)
![Page 29: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/29.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 13 / 24
Randomized strategy:
� “Distribution” on buying time
time
cost
b1
s
r0t
b1 + r1t
![Page 30: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/30.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 13 / 24
Randomized strategy:
� “Distribution” on buying time
time
cost
b1
s
r0t
b1 + r1t
� p1(t) — prob. of buying slope 1 until t
![Page 31: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/31.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 13 / 24
Randomized strategy:
� “Distribution” on buying time
time
cost
b1
s
r0t
b1 + r1t
� p1(t) — prob. of buying slope 1 until t
� Expected rent at time t:
r0 · (1 − p1(t)) + r1 · p1(t) = r0 + (r1 − r0)p1(t)
![Page 32: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/32.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 13 / 24
Randomized strategy:
� “Distribution” on buying time
time
cost
b1
s
r0t
b1 + r1t
� p1(t) — prob. of buying slope 1 until t
� Expected rent at time t:
r0 · (1 − p1(t)) + r1 · p1(t) = r0 + (r1 − r0)p1(t)
� We spend as much as possible on buying for t ≤ s:
r0 + (r1 − r0)p1(t) + b1 ·ddtp1(t) = c · r0
![Page 33: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/33.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 13 / 24
Randomized strategy:
� “Distribution” on buying time
time
cost
b1
s
r0t
b1 + r1t
� p1(t) — prob. of buying slope 1 until t
� Expected rent at time t:
r0 · (1 − p1(t)) + r1 · p1(t) = r0 + (r1 − r0)p1(t)
� We spend as much as possible on buying for t ≤ s:
r0 + (r1 − r0)p1(t) + b1 ·ddtp1(t) = c · r0
� Solution with boundary condition p1(0) = 0:
p1(t) =r0(c − 1)
r0 − r1(e
r0−r1b1
t− 1)
![Page 34: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/34.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 14 / 24
� Guess: strategy stops buying at time s
time
cost
b1
s
r0t
b1 + r1t
� For t ≥ s = b1r0−r1
:
p1(t) = p1(s) = r0(c−1)r0−r1
(e − 1)
c · r1 = r0 + (r1 − r0)p1(s)
![Page 35: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/35.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 14 / 24
� Guess: strategy stops buying at time s
time
cost
b1
s
r0t
b1 + r1t
� For t ≥ s = b1r0−r1
:
p1(t) = p1(s) = r0(c−1)r0−r1
(e − 1)
c · r1 = r0 + (r1 − r0)p1(s)
⇓
c =e
e − 1 + r1r0
![Page 36: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/36.jpg)
Two Slopes without Pure Buy
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
⊲ Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 14 / 24
� Guess: strategy stops buying at time s
time
cost
b1
s
r0t
b1 + r1t
� For t ≥ s = b1r0−r1
:
p1(t) = p1(s) = r0(c−1)r0−r1
(e − 1)
c · r1 = r0 + (r1 − r0)p1(s)
⇓
c =e
e − 1 + r1r0
⇓
p1(t) =
et·
r0−r1b1 −1
e−1+r1r0
t ≤ s
e−1e−1+
r1r0
t > s
![Page 37: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/37.jpg)
Two Slopes — Strategy & Examples
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
⊲Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 15 / 24
� Probability of beingat slope 1 at time t: p1(t) =
et·
r0−r1b1 −1
e−1+r1r0
t ≤ s
e−1e−1+
r1r0
t > s
� Strategy: choose t at random according to p1
![Page 38: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/38.jpg)
Two Slopes — Strategy & Examples
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
⊲Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 15 / 24
� Probability of beingat slope 1 at time t: p1(t) =
et·
r0−r1b1 −1
e−1+r1r0
t ≤ s
e−1e−1+
r1r0
t > s
� Strategy: choose t at random according to p1
� Examples:
0
0.2
0.4
0.6
0.8
1
0 0.2 0.4 0.6 0.8 1 1.2 1.4
0
0.2
0.4
0.6
0.8
1
0 0.2 0.4 0.6 0.8 1 1.2 1.4
r1/r0 = 0, c = e
e−1≈ 1.582 r1/r0 = 0.5, c = e
e−0.5≈ 1.2254
Classical ski rental Pr[No buy] = 12e−1
![Page 39: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/39.jpg)
Multislope Ski Rental
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
⊲Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 16 / 24
� Multiple Slopes:
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
opt(t)
s1 s2 s3
� Optimal Solution:Buys slope at time 0 and stays on it
![Page 40: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/40.jpg)
Multislope Ski Rental
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
⊲Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 16 / 24
� Multiple Slopes:
time
cost
Slope 0 Slope 1
b1
Slope 2
b2
Slope 3
b3
opt(t)
s1 s2 s3
� Optimal Solution:Buys slope at time 0 and stays on it
� Additive Model:
– We pay bj − bi for moving from i to j
– W.l.o.g. we always go from slope i to slope i + 1
![Page 41: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/41.jpg)
Strategies & Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
⊲Strategies &Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 17 / 24
� Randomized Strategy:
– Should we move to the next slope?– When do we move to the next slope?– Probability distribution over deterministic strategies
![Page 42: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/42.jpg)
Strategies & Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
⊲Strategies &Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 17 / 24
� Randomized Strategy:
– Should we move to the next slope?– When do we move to the next slope?– Probability distribution over deterministic strategies
� Randomized Profile:
– pi(t) — probability of beingin slope i at time t
–∑
i pi(t) = 1 for all t ≥ 0
![Page 43: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/43.jpg)
Strategies & Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
⊲Strategies &Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 17 / 24
� Randomized Strategy:
– Should we move to the next slope?– When do we move to the next slope?– Probability distribution over deterministic strategies
� Randomized Profile:
– pi(t) — probability of beingin slope i at time t
–∑
i pi(t) = 1 for all t ≥ 0
� Plan:
– Every strategy induces a profile– Find best profile– Construct strategy
![Page 44: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/44.jpg)
Profiles Costs
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
⊲ Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 18 / 24
� Rent:
– Expected rent at time t: Rp(t)△
=∑
i
pi(t) · ri
– Expected rental cost at time t:
∫ t
0Rp(z)dz
![Page 45: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/45.jpg)
Profiles Costs
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
⊲ Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 18 / 24
� Rent:
– Expected rent at time t: Rp(t)△
=∑
i
pi(t) · ri
– Expected rental cost at time t:
∫ t
0Rp(z)dz
� Buy:
– Expected buying cost at time t: Bp(t)△
=∑
i
pi(t) · bi
![Page 46: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/46.jpg)
Profiles Costs
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
⊲ Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 18 / 24
� Rent:
– Expected rent at time t: Rp(t)△
=∑
i
pi(t) · ri
– Expected rental cost at time t:
∫ t
0Rp(z)dz
� Buy:
– Expected buying cost at time t: Bp(t)△
=∑
i
pi(t) · bi
� Total:
– Expected cost at time t: Bp(t) +
∫ t
0Rp(z)dz
![Page 47: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/47.jpg)
Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
⊲ Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 19 / 24
Chain of Transformations:
� Profile
⇛ Continuous profileContinuous in t
⇛ Prudent profileOnly one or two consecutive active slopes
⇛ Tight profileMoves to the next slope as soon as possible
![Page 48: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/48.jpg)
Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
⊲ Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 19 / 24
cont.
Chain of Transformations:
� Profile
⇛ Continuous profileContinuous in t
⇛ Prudent profileOnly one or two consecutive active slopes
⇛ Tight profileMoves to the next slope as soon as possible
![Page 49: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/49.jpg)
Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
⊲ Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 19 / 24
prud.
Chain of Transformations:
� Profile
⇛ Continuous profileContinuous in t
⇛ Prudent profileOnly one or two consecutive active slopes
⇛ Tight profileMoves to the next slope as soon as possible
![Page 50: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/50.jpg)
Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
⊲ Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 19 / 24
tight
Chain of Transformations:
� Profile
⇛ Continuous profileContinuous in t
⇛ Prudent profileOnly one or two consecutive active slopes
⇛ Tight profileMoves to the next slope as soon as possible
![Page 51: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/51.jpg)
Prudent Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
⊲ Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 20 / 24
prud.
cont.
Continuous to Prudent:
� ∀t two (or one) consecutive slopes are determinedsuch that buying cost is preserved
⇛ Rent may only decrease
![Page 52: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/52.jpg)
Prudent Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
⊲ Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 20 / 24
tight
prud.
Continuous to Prudent:
� ∀t two (or one) consecutive slopes are determinedsuch that buying cost is preserved
⇛ Rent may only decrease
Prudent to Tight:
� Buy next slope as soon as possible⇛ Rent may only decrease
![Page 53: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/53.jpg)
Prudent Profiles
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
⊲ Prudent Profiles
Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 20 / 24
tight
Continuous to Prudent:
� ∀t two (or one) consecutive slopes are determinedsuch that buying cost is preserved
⇛ Rent may only decrease
Prudent to Tight:
� Buy next slope as soon as possible⇛ Rent may only decrease
Theorem: There exists a tight optimal profile
![Page 54: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/54.jpg)
Computing Tight Profile
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
⊲ Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 21 / 24
Computing tight profile for a given c:
� Solve series of diff. equations:
ddtBp(t) + Rp(t) = c · d
dtopt(t)
⇛ For tight profiles
ddtpi(t) + α · pi(t) = β
![Page 55: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/55.jpg)
Computing Tight Profile
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
⊲ Tight Profile
Algorithm
Examples
Conclusion
Rent, Lease or Buy 21 / 24
Computing tight profile for a given c:
� Solve series of diff. equations:
ddtBp(t) + Rp(t) = c · d
dtopt(t)
⇛ For tight profiles
ddtpi(t) + α · pi(t) = β
� Solve equation using boundary conditions:
– Initially: p0(0) = 1 and pi(0) = 0 for i > 0– Next boundary condition determined by events:
⊲ pi(t) = 1 for some slope i
⊲ddtopt(t) changes
– O(k) events
![Page 56: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/56.jpg)
Algorithm
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
⊲ Algorithm
Examples
Conclusion
Rent, Lease or Buy 22 / 24
Algorithm:Binary search for best competitive ratio c ∈ [1, e
e−1]
![Page 57: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/57.jpg)
Algorithm
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
⊲ Algorithm
Examples
Conclusion
Rent, Lease or Buy 22 / 24
Algorithm:Binary search for best competitive ratio c ∈ [1, e
e−1]
Computing a Strategy:
� Let p be a tight profile� X ∼ U(0, 1)� Move from slope i − 1 to slope i at t s.t. pi(t) = X
![Page 58: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/58.jpg)
Algorithm
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
⊲ Algorithm
Examples
Conclusion
Rent, Lease or Buy 22 / 24
Algorithm:Binary search for best competitive ratio c ∈ [1, e
e−1]
Computing a Strategy:
� Let p be a tight profile� X ∼ U(0, 1)� Move from slope i − 1 to slope i at t s.t. pi(t) = X
Theorem:A randomized (c + ε)-competitive strategycan be found in O(k log 1
ε) time,
where c is the best possible competitive ratio
![Page 59: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/59.jpg)
Three Slopes — Examples
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
⊲ Examples
Conclusion
Rent, Lease or Buy 23 / 24
0.2 0.4 0.6 0.8 1.0t
0.2
0.4
0.6
0.8
1.0
Prob
0.2 0.4 0.6 0.8 1.0t
0.2
0.4
0.6
0.8
1.0
Prob
0.2 0.4 0.6 0.8 1.0t
0.2
0.4
0.6
0.8
1.0
Prob
p0 p1 p2
![Page 60: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/60.jpg)
Conclusion
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
⊲ Conclusion
Rent, Lease or Buy 24 / 24
Summary of Results:
� Two Slopes without Pure Rent:
– ee−1+r1/r0
-competitive strategy
– Matching lower bound
� Additive Model:
– Randomized e−rk/r0
e−1-competitive strategy
– Algorithm that computes best randomized strategy
� Non-additive Model:
– Randomized e-competitive strategy
![Page 61: Rent, Lease or Buy: Randomized Algorithms for …rawitzd/Talks/ski-talk.pdfRent, Lease or Buy 1 / 24 Rent, Lease or Buy: Randomized Algorithms for Multislope Ski Rental Zvi Lotker](https://reader035.fdocuments.net/reader035/viewer/2022071105/5fdf5cf5de56ae3092005055/html5/thumbnails/61.jpg)
Conclusion
Rent or Buy
Ski Rental
Rent, Lease or Buy
Multislope SkiRental
Offline Strategy
Prev. Results
Our Results
Two Slopes
Strategy &Examples
Multislope SkiRental
Strategies & Profiles
Profile Costs
Profiles
Prudent Profiles
Tight Profile
Algorithm
Examples
⊲ Conclusion
Rent, Lease or Buy 24 / 24
Summary of Results:
� Two Slopes without Pure Rent:
– ee−1+r1/r0
-competitive strategy
– Matching lower bound
� Additive Model:
– Randomized e−rk/r0
e−1-competitive strategy
– Algorithm that computes best randomized strategy
� Non-additive Model:
– Randomized e-competitive strategy
Open Problems:
� Compute best randomized strategy for non-additive model� Improve general upper bound for additive model