Evaluation of Algorithms for the List Update Problem Suporn Pongnumkul R. Ravi Kedar Dhamdhere.

Slides:



Advertisements
Similar presentations
Optimal Algorithms for k-Search with Application in Option Pricing Julian Lorenz, Konstantinos Panagiotou, Angelika Steger Institute of Theoretical.
Advertisements

A Primal-Dual Approach to Online Optimization Problems.
Tight Bounds for Online Class- constrained Packing Hadas Shachnai Bell Labs and The Technion IIT Tami Tamir The Technion IIT.
1 Optimal Online Algorithms for Minimax Resource Scheduling Imen BOURGUIBA CAS 744 McMaster University.
CSE 4101/5101 Prof. Andy Mirzaian. Lists Move-to-Front Search Trees Binary Search Trees Multi-Way Search Trees B-trees Splay Trees Trees Red-Black.
Exercise 1.1(Paid Exchanges Necessary) Consider the three-element list with the following initial configuration: (i.e. x1 is at the front). Prove that.
How do you model the future?   Stochastic approach: The future can be modeled as a distribution over possible events.   Very successful in many contexts.
Online Algorithms Amrinder Arora Permalink:
On the Competitiveness of Self Organizing Linear Search J. Ian Munro (University of Waterloo) Competitiveness: How well does an on line algorithm do in.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
Copyright © 2009 Curt Hill Self Organizing Lists Another form of searchable list.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Competitive Analysis.
An Optimal Lower Bound for Buffer Management in Multi-Queue Switches Marcin Bieńkowski.
Dynamic Wavelength Allocation in All-optical Ring Networks Ori Gerstel and Shay Kutten Proceedings of ICC'97.
Introduction to Algorithms 6.046J/18.401J L ECTURE 14 Competitive Analysis  Self-organizing lists  Move-to-front heuristic  Competitive analysis of.
Planning under Uncertainty
Optimal Stopping -Amit Goyal 27 th Feb 2007 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Evaluation of Algorithms for the List Update Problem Suporn Pongnumkul R. Ravi Kedar Dhamdhere.
Self-Organizing Lists1 Self-Organizing Lists Competitive Analysis Lee Wee Sun SoC Modified by Orgad Keller Modified again by.
The Value of Knowing a Demand Curve: Regret Bounds for Online Posted-Price Auctions Bobby Kleinberg and Tom Leighton.
Dynamic Power Management for Systems with Multiple Power Saving States Sandy Irani, Sandeep Shukla, Rajesh Gupta.
Online Algorithms Lecture notes for lectures given by Dr. Ely Porat, Bar-Ilan University Notes taken by: Navot Akiva Yair Kaufman Raz Lin Ohad Lipsky July.
Discrete Probability Distribution
Institute of Computer Science University of Wroclaw Page Migration in Dynamic Networks Marcin Bieńkowski Joint work with: Jarek Byrka (Centrum voor Wiskunde.
Online Algorithms Motivation and Definitions Paging Problem Competitive Analysis Online Load Balancing.
No Free Lunch (NFL) Theorem Many slides are based on a presentation of Y.C. Ho Presentation by Kristian Nolde.
Shuchi Chawla, Carnegie Mellon University Static Optimality and Dynamic Search Optimality in Lists and Trees Avrim Blum Shuchi Chawla Adam Kalai 1/6/2002.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
Binary search trees Definition Binary search trees and dynamic set operations Balanced binary search trees –Tree rotations –Red-black trees Move to front.
Priority Models Sashka Davis University of California, San Diego June 1, 2003.
Online Algorithms Lecture notes for lectures given by Dr. Ely Porat, Bar-Ilan University Notes taken by: Navot Akiva Yair Kaufman Raz Lin Ohad Lipsky July.
Online Function Tracking with Generalized Penalties Marcin Bieńkowski Institute of Computer Science, University of Wrocław, Poland Stefan Schmid Deutsche.
Paging for Multi-Core Shared Caches Alejandro López-Ortiz, Alejandro Salinger ITCS, January 8 th, 2012.
CSCI 3160 Design and Analysis of Algorithms Tutorial 12
Approximation Algorithms for Stochastic Combinatorial Optimization Part I: Multistage problems Anupam Gupta Carnegie Mellon University.
International Graduate School of Dynamic Intelligent Systems, University of Paderborn Improved Algorithms for Dynamic Page Migration Marcin Bieńkowski.
Bold Stroke January 13, 2003 Advanced Algorithms CS 539/441 OR In Search Of Efficient General Solutions Joe Hoffert
ECES 741: Stochastic Decision & Control Processes – Chapter 1: The DP Algorithm 1 Chapter 1: The DP Algorithm To do:  sequential decision-making  state.
Statistical Decision Theory
Yossi Azar Tel Aviv University Joint work with Ilan Cohen Serving in the Dark 1.
Great Theoretical Ideas in Computer Science.
Online Paging Algorithm By: Puneet C. Jain Bhaskar C. Chawda Yashu Gupta Supervisor: Dr. Naveen Garg, Dr. Kavitha Telikepalli.
Physics 270 – Experimental Physics. Standard Deviation of the Mean (Standard Error) When we report the average value of n measurements, the uncertainty.
9/8/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Adam Smith Algorithm Design and Analysis L ECTURE 6 Greedy Algorithms.
1 Online algorithms Typically when we solve problems and design algorithms we assume that we know all the data a priori. However in many practical situations.
Online Algorithms. Introduction An offline algorithm has a full information in advance so it can compute the optimal strategy to maximize its profit (minimize.
Qingqing Gan Torsten Suel CSE Department Polytechnic Institute of NYU Improved Techniques for Result Caching in Web Search Engines.
Online Algorithms By: Sean Keith. An online algorithm is an algorithm that receives its input over time, where knowledge of the entire input is not available.
1 Online algorithms Typically when we solve problems and design algorithms we assume that we know all the data a priori. However in many practical situations.
Competitive Queue Policies for Differentiated Services Seminar in Packet Networks1 Competitive Queue Policies for Differentiated Services William.
ORSIS Conference, Jerusalem Mountains, Israel May 13, 2007 Yoni Nazarathy Gideon Weiss University of Haifa Yoni Nazarathy Gideon Weiss University of Haifa.
Statistical Decision Theory Bayes’ theorem: For discrete events For probability density functions.
Jennifer Campbell November 30,  Problem Statement and Motivation  Analysis of previous work  Simple - competitive strategy  Near optimal deterministic.
A Optimal On-line Algorithm for k Servers on Trees Author : Marek Chrobak Lawrence L. Larmore 報告人:羅正偉.
1 Chapter 5-1 Greedy Algorithms Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Introduction to the k-Server Problem Marcel Birkner.
Non-Preemptive Buffer Management for Latency Sensitive Packets Moran Feldman Technion Seffi Naor Technion.
The bin packing problem. For n objects with sizes s 1, …, s n where 0 < s i ≤1, find the smallest number of bins with capacity one, such that n objects.
Lecture 9COMPSCI.220.FS.T Lower Bound for Sorting Complexity Each algorithm that sorts by comparing only pairs of elements must use at least 
1 Online algorithms 叶德仕 2 Online & offline Traditional theoretical analysis is concerned with off-line problems where the complete.
Instructor: Shengyu Zhang 1. Offline algorithms Almost all algorithms we encountered in this course assume that the entire input is given all at once.
CSE 421 Algorithms Richard Anderson Lecture 8 Greedy Algorithms: Homework Scheduling and Optimal Caching.
Binary search trees Definition
Better Algorithms for Better Computers
Static Optimality and Dynamic Search Optimality in Lists and Trees
Greedy Algorithms / Caching Problem Yin Tat Lee
Greedy Algorithms: Homework Scheduling and Optimal Caching
Greedy Algorithms / Caching Problem Yin Tat Lee
Richard Anderson Winter 2019 Lecture 8 – Greedy Algorithms II
Applications of Arrays
Presentation transcript:

Evaluation of Algorithms for the List Update Problem Suporn Pongnumkul R. Ravi Kedar Dhamdhere

Online Algorithms Definition: An algorithm that must process each input in turn, without detailed knowledge of future inputs. Examples: Ski Rental, List Update

Example Online Problem: Ski Rental Problem Scenario I am a skier. Each day, I have to either rent a pair of skis for $1 per day, or buy them for $T. BUT I don’t know when the ski season will end. What should I do?????

Strategies for Ski Rental Problem First Strategy: I will buy the skis on the first day. Second Strategy: I will keep renting the skis. What should I do??????

Wait! Why did I talk about paying a number of times more than I should have? Why not some amount of dollars more than I should have?

Competitive Analysis Definition: An analysis in which the performance of an online algorithm is compared to the best that could have been achieved if all the inputs had been known in advance.

Competitive Ratio A: Our online algorithm C A (  ) OPT: Optimal Offline algorithm C OPT (  ) A is c-competitive if  a C A (  ) ≤ c C OPT (  ) + a for all request sequences 

Back to Ski Rental Problem Consider this algorithm: I’ll rent the skis for T days, and buy them on the T+1 st day. Claim: The competitive ratio of this algorithm is 2.

List Update Problem Self-organizing sequential search Unsorted list Received a sequence of requests Cost of accessing the i th element of the list is i. ywzxvu L:

List Update Problem (Cont.) Must access the requested item. We can reorganize the list. –We can move the requested element to any position closer to the front of the list for FREE. –Any other transposition costs 1.

Move-to-Front (MTF) When an element is accessed, move it to the front of the list. Theorem: [Sleator, Tarjan, 1985] MTF has competitive ratio 2 against optimal offline algorithm.

FREQUENCY-COUNT (FC) Maintain a frequency counter for each item, and keep the list in nonincreasing order of their frequencies. FC has a bad competitive ratio = Ω(n), where n is the length of the list. FC does well in typical cases.

Average Case Analysis Assume each request comes from a fixed probability distribution, independent of previous requests. Suppose the i th item has probability p i. Design algorithms to minimize the expected cost. Optimal strategy is to keep the list sorted in nonincresing order of p i. Fact: FC converges to optimal solution.

Need a new model? Most real-world settings don't behave either like a discrete distribution, or like a worst-case one. Can we design an algorithm that does well in both typical and worst-case? How could we analyze such algorithms?

Previous Work Diffuse Adversary –Beyond Competitive Analysis [Koutsoupias, Papadimitriou, 2000] Statistical Adversary –A Statistical Adversary for On-line Algorithms [Raghavan, 1991]

Hybrid Model Assume a fixed probability distribution, For each request, with probability, let the adversary change the request.  Average Case Analysis  Competitive Analysis  Known probability distribution with uncertainty.

Current Difficulties Cannot settle on a proper OPT to evaluate performance under this model. –Finite vs. infinite horizon. –Competitive ratio with optimal offline adversary: reduces to online case –Comparison with static list is inappropriate

Lead-Time Quotation Problem Scheduling Problem Each job takes 1 day to process. Everyday, I get some number of jobs. For each job j, I have to accept with a deadline (d j ), or reject it right away. Profit = l – d j. Goal: Maximize the total profit

Lead-Time Quotation Problem Competitive Ratio of Q-FRAC algorithm = [Keskinocak, Ravi, Tayur, 2001] We are working on –Average Case Analysis –Hybrid Model

Our goals Investigate the OPT for our List Update Hybrid Model. Average Case Analysis and Hybrid Model for Lead-time Quotation.

Questions?

Thank you !!!