LecXX - COT 6936: Topics in Algorithms Giri Narasimhan ECS...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 2/11/10 COT 6936 1 COT 6936: Topics in Algorithms Giri Narasimhan ECS 254A / EC 2443; Phone: x3748 giri@cs.fiu.edu http://www.cs.fiu.edu/~giri/teach/COT6936_S10.html https://online.cis.fiu.edu/portal/course/view.php?id=427 How to Analyze Online Algorithms? • Competitive analysis ± Compare with optimal offline algorithm (OPT) • Algorithm A is ± -competitive if there exists constants b such that for every sequence of inputs ² : ± cost A ( ² ) ± ± cost OPT ( ² ) + b 2/11/10 COT 6936 2 Ski Rental Problem • Should Dr. Raju buy skis or rent them? ± Rental is $A per trip ± Purchase costs $B • Idea: ± Rent for m trips, where • m = B/A ± Then purchase skis • Analysis: ± Competitiveness ratio = 2. Why ? 2/11/10 COT 6936 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 How to Analyze Rand Online Algorithms? • Algorithm A is ± -competitive if there exists constants b such that for every sequence of inputs ² : ± cost A ( ² ) ± ± cost OPT ( ² ) + b • Randomized Algorithm R is ± -competitive if there exists constants b such that for every sequence of inputs ² : ± E[cost R ( ² )] ± ± cost OPT ( ² ) + b 2/11/10 COT 6936 4 Adversary provides request sequence at start Randomized Online algorithms • Lower bound does not apply to randomized algorithms ± Lower bound on randomized algorithms = H k • Proof uses 2 main principles ± Cover time of a random walk on K k+1 is kH k ± Lower bound on competitiveness of randomized
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/18/2012 for the course CIS 6936 taught by Professor Giri during the Spring '12 term at FIU.

Page1 / 7

LecXX - COT 6936: Topics in Algorithms Giri Narasimhan ECS...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online