Online Algorithms. Lecture 11

Similar documents
COMP Online Algorithms. k-server Problem & Advice. Shahin Kamali. Lecture 13 - Oct. 24, 2017 University of Manitoba

The k-server problem June 27, 2005

Approximation Algorithms

Algorithm Design and Analysis

Solutions for the Exam 6 January 2014

Metric Techniques and Approximation Algorithms. Anupam Gupta Carnegie Mellon University

COMP Online Algorithms. Online Bin Packing. Shahin Kamali. Lecture 20 - Nov. 16th, 2017 University of Manitoba

val(y, I) α (9.0.2) α (9.0.3)

CSC2420 Fall 2012: Algorithm Design, Analysis and Theory

Problem Set 2 Solutions

COMP Online Algorithms. List Update with Advice & Bin Packing. Shahin Kamali. Lecture 14 - Oct. 23, 2018 University of Manitoba

On the Advice Complexity of Online Problems

Theorem 2.9: nearest addition algorithm

6.889 Sublinear Time Algorithms February 25, Lecture 6

JOB SHOP SCHEDULING WITH UNIT LENGTH TASKS

Algorithms for Grid Graphs in the MapReduce Model

Randomized Optimization Problems on Hierarchically Separated Trees

1 The Traveling Salesperson Problem (TSP)

Maximum flow problem CE 377K. March 3, 2015

and 6.855J March 6, Maximum Flows 2

Randomized Algorithms 2017A - Lecture 10 Metric Embeddings into Random Trees

Chapter 16. Greedy Algorithms

Topic: Local Search: Max-Cut, Facility Location Date: 2/13/2007

From Routing to Traffic Engineering

Graph Theory and Optimization Approximation Algorithms

Online algorithms for clustering problems

Probabilistic embedding into trees: definitions and applications. Fall 2011 Lecture 4

Lecture 6: Linear Programming for Sparsest Cut

Distributed Computing over Communication Networks: Leader Election

CS590R - Algorithms for communication networks Lecture 19 Peer-to-Peer Networks (continued)

CSE 521: Design and Analysis of Algorithms I

COMP Online Algorithms. Online Graph Problems. Shahin Kamali. Lecture 23 - Nov. 28th, 2017 University of Manitoba

Jade Yu Cheng ICS 311 Homework 7 Sep 18, 2008

Fixed-Parameter Algorithms, IA166

Lecture 7: Asymmetric K-Center

COP 4531 Complexity & Analysis of Data Structures & Algorithms

Algorithmic Problems Related to Internet Graphs

On the Max Coloring Problem

4.1 Interval Scheduling

A synchronizer generates sequences of clock pulses at each node of the network satisfying the condition given by the following definition.

P and NP (Millenium problem)

Discrete Mathematics Course Review 3

Online Computation with Advice

Clustering: Centroid-Based Partitioning

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Sorting lower bound and Linear-time sorting Date: 9/19/17

Welcome to the course Algorithm Design

A General Approach to Online Network Optimization Problems

15-451/651: Design & Analysis of Algorithms November 4, 2015 Lecture #18 last changed: November 22, 2015

Online Algorithms. - Lecture 4 -

Lecture 15. Lecturer: Prof. Sergei Fedotov Calculus and Vectors. Length of a Curve and Parametric Equations

Advanced Algorithms. On-line Algorithms

CSE 417 Network Flows (pt 4) Min Cost Flows

High Dimensional Indexing by Clustering

Homework 4 Solutions CSE 101 Summer 2017

6.856 Randomized Algorithms

Network Design and Optimization course

Lecture 5: Duality Theory

Algorithms design under a geometric lens Spring 2014, CSE, OSU Lecture 1: Introduction

We ve done. Introduction to the greedy method Activity selection problem How to prove that a greedy algorithm works Fractional Knapsack Huffman coding

1 Variations of the Traveling Salesman Problem

Comp Online Algorithms

15-854: Approximations Algorithms Lecturer: Anupam Gupta Topic: Direct Rounding of LP Relaxations Date: 10/31/2005 Scribe: Varun Gupta

Parallel Breadth First Search

Professor: Padraic Bartlett. Lecture 9: Trees and Art Galleries. Week 10 UCSB 2015

Online Sorting Buffers on Line

4. Definition: topological space, open set, topology, trivial topology, discrete topology.

Oblivious Routing on Geometric Networks

Minimum-Spanning-Tree problem. Minimum Spanning Trees (Forests) Minimum-Spanning-Tree problem

16.1 Maximum Flow Definitions

Given a graph, find an embedding s.t. greedy routing works

Lecture 2. 1 Introduction. 2 The Set Cover Problem. COMPSCI 632: Approximation Algorithms August 30, 2017

CS 395T Computational Learning Theory. Scribe: Wei Tang

Bandwidth Approximation of Many-Caterpillars

Basic Approximation algorithms

CSE 202: Design and Analysis of Algorithms Lecture 4

Lecture 15: The subspace topology, Closed sets

Name: Lirong TAN 1. (15 pts) (a) Define what is a shortest s-t path in a weighted, connected graph G.

Reordering Buffer Management with Advice

Department of Mathematics and Computer Science University of Southern Denmark, Odense. Exercises for Week 47 on. Online Algorithms

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Approximation algorithms Date: 11/18/14

Geometric Routing: Of Theory and Practice

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 24: Online Algorithms

Algorithms for Euclidean TSP

Page migration in dynamic networks

Design and Analysis of Algorithms

Polynomial-Time Approximation Algorithms

Chapter Design Techniques for Approximation Algorithms

Distributed Algorithms 6.046J, Spring, Nancy Lynch

Chapter 6 DOMINATING SETS

Lecture 07: Private-key Encryption. Private-key Encryption

6.2 Classification of Closed Surfaces

Exact Algorithms Lecture 7: FPT Hardness and the ETH

Batch Coloring of Graphs

Online Stochastic Matching CMSC 858F: Algorithmic Game Theory Fall 2010

Lecture Notes: Euclidean Traveling Salesman Problem

Design and Analysis of Algorithms

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 14: Combinatorial Problems as Linear Programs I. Instructor: Shaddin Dughmi

Lecture 19 Subgradient Methods. November 5, 2008

An Optimal Bound for the MST Algorithm to Compute Energy Efficient Broadcast Trees in Wireless Networks. Qassem Abu Ahmad February 10, 2008

Transcription:

Online Algorithms Lecture 11

Today DC on trees DC on arbitrary metrics DC on circle Scheduling

K-server on trees Theorem The DC Algorithm is k-competitive for the k server problem on arbitrary tree metrics. Proof: = Lemma 1. Φ 0;5 Φ = k min - d s 0, o ( 0 ( * + Lemma 2. Φ 0 Φ 0;5 3 045 Φ 0;5 + k OPT 0 (σ) = DC 0 (σ) if 3;5 3 + - - d(s 0, s 8 ) 045 840:5

10.1 k-server-problem on trees We consider the k-server-problem on trees. Let {o 1,...,o k } and {s 1,...,s k } be two sets of servers. We use the metric and the notion of neighborhood from the lecture. As previously an assignment is optimal if = argmin 2Sk P k i=1 d(x i,y (i) ). Let j 2 {1,...,k} be an arbitrary index and let I be the set of indices of the neighbors s i of o j. That is, I = {i s i is neighbor of o j }. Show that there is an optimal assignment with (i) =j for an i 2 I.

Applying the DC-Algorithm P Idea: Approximate an arbitrary metric with a tree metric Use the DC algorithm for trees 2 10.2 Application of the DC algorithm Let G =(V,E) be a graph with edge weights w(e) and T =(V,E T ) be a minimum spanning tree (MST) of G. Show that for every e = {x, y} 2 E the distance from x to y in T is at most (n 1)w(e) where n = V. Use the DC algorithm on tree metrics and above insight to prove: There is a deterministic O(nk)- competitive algorithm for arbitrary metric spaces with n points. Corollary The DC-algorithm is (n 1)k-competitive for arbitrary metrics with n points.

Applying the DC-Algorithm (2) 10.3 DC on a Circle Consider the k-server-problem on a circle C with circumference 1. The distance d(x, y) of two points x, y 2 C is the length of the shortest arc between them. Describe a randomize online algorithm for the k-server problem on the metric space (C, d) that is 2k-competitive against oblivious adversaries. Hint: First show the following statement: If we cut the circle at a point p 2 C chosen uniformly at random and interpret the resulting arc C 0 as a line with the usual metric d 0 then for every two points x, y 2 C the following holds: E[d 0 (x, y)] apple 2d(x, y) where the expectation is taken over all points p 2 C.

Applying the DC-Algorithm (3) We saw two simple methods to approximate metric spaces by a tree metric Without decreasing distances Increasing distances only by a certain factor n for arbitrary metric spaces (deterministic) 2 for a circle metric (randomized) What is the best that we can achieve for arbitrary metric spaces?

Approximation of metric spaces There is a randomized algorithm to compute a distribution over tree metrics such that distances increase by a factor of O(log n) in expectation and do not decrease. Corollary There is a randomized online algorithm for the k server problem which is O(k logn)-competitive for arbitrary metrics with n points.

Makespan-Scheduling Set of jobs J = {1, n} Set of machines M = {1, m} Each job j J has a size p 8 R > 0 Each machine i M has a speed s 0 R > 0 If a job j J is processed by machine i M it takes time ]^ a _` A schedule π J M assigns each job to a machine L 0 (π) is the load of machine i M in schedule π j M,π(j)=i p 8 L 0 (π) = s 0 Makespan C(π) is the maximal load i.e. C π = max 0 j L 0(π) Objective: Find a schedule with minimal Makespan.

Online Scheduling Set of machines and speed are known. jobs arrive one after another. job have to be assigned immediately to a machine. number and size of future jobs are unknown. Example: 2 machines, each with speed 1 Sequence of jobs: 1, 1, (2)

Results for today Identical machines (all have speed 1) Least Loaded is strict (2 5 l )-competitive Matching lower bound for Least Loaded. Machines with speed Algorithm Slowfit(α) Algorithm Slowfit is strict 8-competitive

Slowfit(α) Assume we now the makespan of OPT. Let α = OPT(σ) slowfit(α) tries to compute a schedule with makespan at most 2α. 1. Sort machines according to speed in increasing order, i.e., s 5 s n s l 2. Let π 8 be the schedule of slowfit(α) for the jobs 1,, j. 3. slowfit(α) schedules a new job j with size p 8 to the slowest machine i = M which has load no more then 2α after this assignment. That is i = = min{i M L 0 (π 8;5 ) + ]^ 2α }. If no such machine exists, output an error. _`

Slowfit 1. Set α q = ] r _ s 2. Start with phase k = 0 3. For a job j do the following: a) try to schedule j with slowfit(α 3 ) while ignoring all jobs of previous rounds 0,, k 1 b) If slowfit(α 3 ) produces an error, increase k by one, Set α 3 = 2 3 α t, and Goto 3a).