An Analysis of First-Fit N.S. Narayanaswamy (IITM) Work with R. Subhash Babu.

Slides:



Advertisements
Similar presentations
Truthful Mechanisms for Combinatorial Auctions with Subadditive Bidders Speaker: Shahar Dobzinski Based on joint works with Noam Nisan & Michael Schapira.
Advertisements

Lower Envelopes Yuval Suede. What’s on the menu? Lower Envelopes Davenport-Schinzel Sequences Trivial upper bound Super linear complexity* Tight upper.
Routing and Congestion Problems in General Networks Presented by Jun Zou CAS 744.
Covers, Dominations, Independent Sets and Matchings AmirHossein Bayegan Amirkabir University of Technology.
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
Optimization Problems in Optical Networks. Wavelength Division Multiplexing (WDM) Directed: Symmetric: Undirected: Optic Fiber.
Optical networks: Basics of WDM
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
1 SOFSEM 2007 Weighted Nearest Neighbor Algorithms for the Graph Exploration Problem on Cycles Eiji Miyano Kyushu Institute of Technology, Japan Joint.
Transportation Problem (TP) and Assignment Problem (AP)
Greedy Algorithms Greed is good. (Some of the time)
Chapter 6 Linear Programming: The Simplex Method
Optimization Problems in Optical Networks. Wavelength Division Multiplexing (WDM) Directed: Symmetric: Optic Fiber.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
Playing Fair at Sudoku Joshua Cooper USC Department of Mathematics.
5-1 Chapter 5 Tree Searching Strategies. 5-2 Satisfiability problem Tree representation of 8 assignments. If there are n variables x 1, x 2, …,x n, then.
Polynomial Time Approximation Schemes Presented By: Leonid Barenboim Roee Weisbert.
2007/3/6 1 Online Chasing Problems for Regular n-gons Hiroshi Fujiwara* Kazuo Iwama Kouki Yonezawa.
Rajat K. Pal. Chapter 3 Emran Chowdhury # P Presented by.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Online Algorithms – II Amrinder Arora Permalink:
Online Graph Avoidance Games in Random Graphs Reto Spöhel Diploma Thesis Supervisors: Martin Marciniszyn, Angelika Steger.
1 Ecole Polytechnque, Nov 7, 2007 Scheduling Unit Jobs to Maximize Throughput Jobs:  all have processing time (length) = 1  release time r j  deadline.
Chapter 9: Greedy Algorithms The Design and Analysis of Algorithms.
Approximation Algorithms
Chapter 9 Greedy Technique Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
CSE 421 Algorithms Richard Anderson Lecture 6 Greedy Algorithms.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Chapter 4: Straight Line Drawing Ronald Kieft. Contents Introduction Algorithm 1: Shift Method Algorithm 2: Realizer Method Other parts of chapter 4 Questions?
Graph Theory Ch.5. Coloring of Graphs 1 Chapter 5 Coloring of Graphs.
1 A Single Final State for Finite Accepters. 2 Observation Any Finite Accepter (NFA or DFA) can be converted to an equivalent NFA with a single final.
Online Ramsey Games in Random Graphs Reto Spöhel, ETH Zürich Joint work with Martin Marciniszyn and Angelika Steger.
 Optimal Packing of High- Precision Rectangles By Eric Huang & Richard E. Korf 25 th AAAI Conference, 2011 Florida Institute of Technology CSE 5694 Robotics.
Called as the Interval Scheduling Problem. A simpler version of a class of scheduling problems. – Can add weights. – Can add multiple resources – Can ask.
Approximation schemes Bin packing problem. Bin Packing problem Given n items with sizes a 1,…,a n  (0,1]. Find a packing in unit-sized bins that minimizes.
Krakow, Summer 2011 Adjacency Posets of Planar Graphs William T. Trotter
Presented by Dajiang Zhu 09/20/2011.  Motivation  Introduction & Conclusion  Pre – Definition Approximation Algorithms  Two problems as examples SUBSET-SUM.
© 2010 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. Case Studies: Bin Packing.
Restricted Track Assignment with Applications 報告人:林添進.
First Fit Coloring of Interval Graphs William T. Trotter Georgia Institute of Technology.
Memory Allocation of Multi programming using Permutation Graph By Bhavani Duggineni.
A. Levitin “Introduction to the Design & Analysis of Algorithms,” 3rd ed., Ch. 9 ©2012 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Planar Graphs Graph Coloring
1 Greedy Technique Constructs a solution to an optimization problem piece by piece through a sequence of choices that are: b feasible b locally optimal.
© The McGraw-Hill Companies, Inc., Chapter 12 On-Line Algorithms.
1 Windows Scheduling as a Restricted Version of Bin-packing. Amotz Bar-Noy Brooklyn College Richard Ladner Tami Tamir University of Washington.
Introduction to Graph Theory Lecture 13: Graph Coloring: Edge Coloring.
The Online Track Assignment Problem Marc Demange, ESSEC Benjamin Leroy-Beaulieu, EPFL Gabriele di Stefano, L’Aquilla Marc Demange, ESSEC Benjamin Leroy-Beaulieu,
Great Theoretical Ideas in Computer Science for Some.
11 -1 Chapter 12 On-Line Algorithms On-Line Algorithms On-line algorithms are used to solve on-line problems. The disk scheduling problem The requests.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
COMPSCI 102 Introduction to Discrete Mathematics.
Single Machine Scheduling Problem Lesson 5. Maximum Lateness and Related Criteria Problem 1|r j |L max is NP-hard.
Greedy Technique.
Great Theoretical Ideas In Computer Science
Perturbation method, lexicographic method
Pushdown Automata.
PC trees and Circular One Arrangements
What is the next line of the proof?
Exercise Exercise Proof that
Presented by Po-Chuan & Chen-Chen 2016/03/08
Computability and Complexity
Coverage Approximation Algorithms
3.4 Push-Relabel(Preflow-Push) Maximum Flow Alg.
First Fit Coloring of Interval Graphs
Introduction Wireless Ad-Hoc Network
EE4271 VLSI Design, Fall 2016 VLSI Channel Routing.
Graphs and Vertex Coloring
Distance-preserving Subgraphs of Interval Graphs
Presentation transcript:

An Analysis of First-Fit N.S. Narayanaswamy (IITM) Work with R. Subhash Babu

Interval Graphs Clique number ω: The maximum no. of intervals that share a point.

Coloring Intervals Resource Allocation: Each interval ~ Request for a resource Each interval ~ Request for a resource for a period of time for a period of time Color ~ Resource Color ~ Resource time color

Coloring Offline coloring Offline coloring Optimal coloring : Consider intervals in non-decreasing order of their left end points, assign the least feasible color. Optimal coloring : Consider intervals in non-decreasing order of their left end points, assign the least feasible color. chromatic number = clique number chromatic number = clique number Online Coloring Online Coloring Requests/intervals are presented in a sequences one after another. Requests/intervals are presented in a sequences one after another. Example

Competitive Ratio of First-Fit Competitive Ratio of A No of colors used by the online A No of colors used by the optimal offline algorithm = max G,s = No of colors used by First-Fit ω

First fit Principle: Assign the least feasible color to the incoming interval. Principle: Assign the least feasible color to the incoming interval. Currently proved to use at most 8ω-3 colors (our work). Currently proved to use at most 8ω-3 colors (our work). First 8ω by Kierstead, Brightwell, Trotter improving 10ω by Pemmaraju, Raman, Varadarajan. First 8ω by Kierstead, Brightwell, Trotter improving 10ω by Pemmaraju, Raman, Varadarajan. There exists an instance on which First fit uses at least 4.4ω colors. There exists an instance on which First fit uses at least 4.4ω colors.

First fit: Example Clique size is 2, therefore offline uses 2. Clique size is 2, therefore offline uses 2. No of colors used is 4 No of colors used is 4

Properties of First fit Property: If an interval I is colored j, then there exists an interval I’ in each color i, 1 ≤ i ≤ j such that I intersects I’. Property: If an interval I is colored j, then there exists an interval I’ in each color i, 1 ≤ i ≤ j such that I intersects I’. Wall like structure, height=number of colors used Wall like structure, height=number of colors used

Analysis of First-Fit Goal : Find a lower bound on the clique size in terms of the height of the wall. Goal : Find a lower bound on the clique size in terms of the height of the wall. Column construction procedure : a counting technique Column construction procedure : a counting technique Idea Idea Consider the First-Fit wall as a grid. Consider the First-Fit wall as a grid. Assign one of three symbols to each cell in the grid. Assign one of three symbols to each cell in the grid. Count relative occurrences of symbols. Count relative occurrences of symbols. Lower bound the clique size Lower bound the clique size

Column Construction Procedure m C1C1C1C1 C2C2C2C2 C3C3C3C3 C4C4C4C4 Elementary Columns/Intervals Elementary Columns/Intervals Assign symbols to each cell – R, $, F ( , ,  ) Assign symbols to each cell – R, $, F ( , ,  ) Find relations between ,  and  to find a lower bound on the clique number. Find relations between ,  and  to find a lower bound on the clique number.

Column Construction RRRRRRRRR C1C1C1C1 C2C2C2C2 C3C3C3C3 C4C4C4C4 First Step: Consider C 1 = set of cells colored 1, they get the label R. First Step: Consider C 1 = set of cells colored 1, they get the label R. Ending Condition: For i = 2,3,… stop when C i obtained from C i-1 becomes empty. Ending Condition: For i = 2,3,… stop when C i obtained from C i-1 becomes empty.

Rule - R RRRRRRRRR C1C1C1C1 C2C2C2C2 C3C3C3C3 C4C4C4C4 RRRR R1: For each cell e in C i-1, if e is occupied by an interval I colored i, then add e to C i with the symbol R.

Rule - $ RRRRRRRRR C1C1C1C1 C2C2C2C2 C3C3C3C3 C4C4C4C4 RRRR R2: For each remaining cell e є C i-1, if e has a neighbor e’ in C i-1 which is added to C i by rule R1, then add e to C i with the symbol $. $$$$

Rule - F e e l e r i-1 j j R3 : For each remaining cell e in C i-1, if e has a neighbor e' in C i-1 and e' is neighbor of e down to the level j, and  e (j, i) > (i - j)/, then add e to C i with the label “F”. All other columns become inactive Rules are applied in the order R1, R2 and R3.

Final Picture RRRRRRRRR C1C1C1C1 C2C2C2C2 C3C3C3C3 C4C4C4C4 RRRR$$$$ R F $ F RR RR $FFFF FFFF$$$ FFFFF m’

Analysis of the Height m ≤ m’. m ≤ m’. For each i ≤ j, an interval colored j intersects C i For each i ≤ j, an interval colored j intersects C i For 1 ≤ i ≤ m’ and e є C i, For 1 ≤ i ≤ m’ and e є C i,  e (i) ≥ (m -  e (i)) /  e (i) ≥ (m -  e (i)) / Proof by induction on i Proof by induction on i  e (m') ≤ 2m'/  e (m') ≤ 2m'/ m’ crucial here. Without this there was a weaker upper bound, and hence 10 competitiveness. m’ crucial here. Without this there was a weaker upper bound, and hence 10 competitiveness.

Proof Outline e i1i1 i2i2 i3i3 j1j1 j2j2 j3j3 j4j4   e (m') ≤ 2m'/  ⇒  e (m') +  e (m') ≥ m' – 2m'/  ⇒  e (m') ≥ m'/ (1 -2/ )  ⇒  e (m) ≥ m/ (1 - 2/ )  =4 ⇒  e (m) ≥ m/8, for =4

18 New Observations C 1 needs only to be cells corresponding to a minimal clique cover of the underlying interval graph. C 1 needs only to be cells corresponding to a minimal clique cover of the underlying interval graph. Analysis works by changing the order of rules to R1, R3, and R2. This yields a nicer proof of Analysis works by changing the order of rules to R1, R3, and R2. This yields a nicer proof of For 1 ≤ i ≤ m’ and e є C i,  e (i) ≥ (m -  e (i)) / For 1 ≤ i ≤ m’ and e є C i,  e (i) ≥ (m -  e (i)) / Thank You

Online Vs Offline Offline: Online: (1,3,2,4) [First fit] Back

1-Wall: Examples 1-wall Back

2-Wall: Examples 2-wall Back

3-Wall: Examples 3-wall Back