Yingchao ZHAO, Caritas Institute of Higher Education Xiangtong QI, HKUST Minming LI, City University of Hong Kong.

Slides:



Advertisements
Similar presentations
On the Complexity of Scheduling
Advertisements

Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
ECE 667 Synthesis and Verification of Digital Circuits
 Review: The Greedy Method
Algorithmic Game Theory and Scheduling Eric Angel, Evripidis Bampis, Fanny Pascual IBISC, University of Evry, France GOTha, 12/05/06, LIP 6.
Reservation Systems TimeTabling
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Spring, Scheduling Operations. Spring, Scheduling Problems in Operations Job Shop Scheduling. Personnel Scheduling Facilities Scheduling.
1 IOE/MFG 543 Chapter 5: Parallel machine models (Sections )
Truthful Approximation Mechanisms for Scheduling Selfish Related Machines Motti Sorani, Nir Andelman & Yossi Azar Tel-Aviv University.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
1 IOE/MFG 543 Chapter 3: Single machine models (Sections 3.1 and 3.2)
1 Single Machine Deterministic Models Jobs: J 1, J 2,..., J n Assumptions: The machine is always available throughout the scheduling period. The machine.
Math443/543 Mathematical Modeling and Optimization
1 IOE/MFG 543* Chapter 1: Introduction *Based in part on material from Izak Duenyas, University of Michigan, Scott Grasman, University of Missouri, Rakesh.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
6/20/2015List Decoding Of RS Codes 1 Barak Pinhas ECC Seminar Tel-Aviv University.
NP-Complete Problems Problems in Computer Science are classified into
1 IOE/MFG 543 Chapter 6: Flow shops Sections 6.1 and 6.2 (skip section 6.3)
1 Combinatorial Dominance Analysis The Knapsack Problem Keywords: Combinatorial Dominance (CD) Domination number/ratio (domn, domr) Knapsack (KP) Incremental.
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.
Distributed Combinatorial Optimization
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Algorithmic problems in Scheduling jobs on Variable-speed processors Frances Yao City University of Hong Kong.
1 IOE/MFG 543 Chapter 10: Single machine stochastic models Sections 10.1 and 10.4 You may skip Sections
A Model for Minimizing Active Processor Time Jessica Chang Joint work with Hal Gabow and Samir Khuller.
Improved results for a memory allocation problem Rob van Stee University of Karlsruhe Germany Leah Epstein University of Haifa Israel WADS 2007 WAOA 2007.
Minimizing Makespan and Preemption Costs on a System of Uniform Machines Hadas Shachnai Bell Labs and The Technion IIT Tami Tamir Univ. of Washington Gerhard.
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
Load Balancing Tasks with Overlapping Requirements Milan Vojnovic Microsoft Research Joint work with Dan Alistarh, Christos Gkantsidis, Jennifer Iglesias,
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Fair Scheduling of Real-Time Tasks on Multiprocessors Uday Prabhala.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
THE STABILITY BOX IN INTERVAL DATA FOR MINIMIZING THE SUM OF WEIGHTED COMPLETION TIMES Yuri N. Sotskov Natalja G. Egorova United Institute of Informatics.
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.
Design Techniques for Approximation Algorithms and Approximation Classes.
Approximation Algorithms for Task Allocation with QoS and Energy Considerations Bader N. Alahmad.
© 2009 IBM Corporation 1 Improving Consolidation of Virtual Machines with Risk-aware Bandwidth Oversubscription in Compute Clouds Amir Epstein Joint work.
Great Theoretical Ideas in Computer Science.
Batch Scheduling of Conflicting Jobs Hadas Shachnai The Technion Based on joint papers with L. Epstein, M. M. Halldórsson and A. Levin.
Approximation schemes Scheduling problems. Polynomial Time Approximation Scheme (PTAS) Let Π be a minimization problem. An approximation scheme for problem.
Scheduling policies for real- time embedded systems.
© 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.
Minimizing Cache Usage in Paging Alejandro López-Ortiz, Alejandro Salinger University of Waterloo.
Genome Rearrangements [1] Ch Types of Rearrangements Reversal Translocation
Restricted Track Assignment with Applications 報告人:林添進.
Approximation Schemes Open Shop Problem. O||C max and Om||C max {J 1,..., J n } is set of jobs. {M 1,..., M m } is set of machines. J i : {O i1,..., O.
1 Job Scheduling for Grid Computing on Metacomputers Keqin Li Proceedings of the 19th IEEE International Parallel and Distributed Procession Symposium.
1 Chapter 5-1 Greedy Algorithms Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Earliness and Tardiness Penalties Chapter 5 Elements of Sequencing and Scheduling by Kenneth R. Baker Byung-Hyun Ha R1.
© The McGraw-Hill Companies, Inc., Chapter 12 On-Line Algorithms.
Vasilis Syrgkanis Cornell University
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.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Great Theoretical Ideas in Computer Science.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Some Topics in OR.
Lecture 8: Dispatch Rules
Computability and Complexity
Greedy Algorithms.
ICS 353: Design and Analysis of Algorithms
Integer Programming (정수계획법)
Weighted Interval Scheduling
Integer Programming (정수계획법)
Selfish Load Balancing
Weighted Interval Scheduling
Single Machine Deterministic Models
Richard Anderson Autumn 2019 Lecture 8 – Greedy Algorithms II
Presentation transcript:

Yingchao ZHAO, Caritas Institute of Higher Education Xiangtong QI, HKUST Minming LI, City University of Hong Kong

 Traditional scheduling objective ◦ minimizing makespan ◦ minimizing total completion time ◦ minimizing total flow time.  Wan and Qi (Naval Research Logistics) proposed the model that considers both traditional objective and time slot cost.  Kulkarni and Munagala (WAOA 2012)studied online algorithms to minimize the total weighted completion time plus time slot costs.  Leonardi et al. (MAPSP 2013) designed a PTAS for the offline version of the problem.

 Increasing ◦ Trivial ◦ Execute the jobs as early as possible  Decreasing ◦ Linear decreasing ◦ Accelerative decreasing ◦ Decelerative decreasing ◦ General decreasing  Objective ◦ Minimize: total weighted completion time + time slot costs

π(t) t

 For each job i: ◦ Processing time p i ◦ Weight w i  The time slot cost π satisfies π k - π k+1 =ε, ε>0  We give a polynomial time algorithm to get the optimal schedule for this problem. ◦ Given two jobs, which should be processed earlier? ◦ Given a job, when should it be processed?

If the time slot cost decreases as a linear function with respect to time k, then there exists an optimal schedule to the problem in which jobs are scheduled in WSPT (Weighted Shortest Processing Time) order.

For a job with processing time p and weight w  If w/p>ε, process this job as early as possible  If w/p<ε, process this job as late as possible  If w/p=ε, the job has the same cost no matter when it is processed

t 0K 0 t K t K0w/p>εw/p<εw/p=ε  Sort the jobs according to decreasing w/p.  Partition jobs into three sets: J 1, J 2, J 3  Process J 1 and J 2 from time zero, and process J 3 as late as possible. Solved in polynomial time!

π(t) t

 The time slot cost π satisfies π k - π k+1 > π k-1 - π k, for 1<k<K  For each job ◦ Processing time p ◦ Weight w ◦ Worst starting time k’, π k’+1 - π k’+p+1 > w > π k’ - π k’+p  There is only one possible idle time interval in an optimal schedule. Every job has a worst starting time

 If a job starts before its worst starting time k’, then there is no idle time before it in the optimal schedule.  If a job starts after its worst starting time k’, then there is no idle time after it in the optimal schedule.  If a job starts at its worst starting time k’, then there is no idle time before and after it in the optimal schedule. k’ 0 K

 In an optimal schedule, the jobs are partitioned into two parts. ◦ The first part starts from time zero. ◦ The second part ends at time K.  In each part, jobs are processed in WSPT order. 0K How to partition jobs?

0xy Where is job m?  Job m is in the last job of in the first part  Job m is in the last job of in the second part jobs in the same part are scheduled in WSPT order f(m,x,y) denotes the minimum cost for jobs 1 to m, where the first part ends at x, and the second part starts at y. need to know f(m-1, x-p m, y) need to know f(m-1, x, y) O(nP 2 )

π(t) t

 The time slot cost π satisfies π k - π k+1 < π k-1 - π k, for 1<k<K  For each job ◦ Processing time p ◦ Weight w ◦ Preferred starting time: k*, π k*+1 – π k*+p+1 > w > π k* - π k*+p ◦ Preferred processing interval: [k*, k*+p]

k* k*+p 0 K  If a job starts before its preferred starting time k*, the earlier it is processed, the more cost it will have.  If a job starts after its preferred starting time k*, the later it is processed, the more cost it will have.  If a job starts at its preferred starting time k*, it will have the least possible cost.

Job i Job j If two jobs’ preferred processing intervals have no overlap, then the job with earlier preferred starting time has greater ratio of w/p than the other job. w i /p i w j /p j > If two jobs’ preferred processing intervals have overlap, but not completely contain each other, then the job with earlier preferred starting time has greater ratio of w/p than the other job. Job i Job j w i /p i w j /p j >

 The jobs are scheduled in WSPT order in the optimal solution.  If two jobs are adjacent in WSPT order and their preferred processing intervals have overlap, then there exists no idle time slot between these two jobs in the optimal solution. Job i Job j (w i, p i) (w j, p j ) Job i’ (w i + w j, p i +p j ) Algorithm: 1.sort by WSPT 2.merge and replace 3.assign to preferred intervals O(n 2 )

π(t) t

 Theorem 1. The problem with arbitrary non- increasing time slot cost is NP-hard in the strong sense. 3-Partition Instance:  n=3q integers a 1, a 2, …, a 3q  integer b with b/4<a j <b/2  sum(a j )=q*b Scheduling Instance:  n=3q jobs  processing time a j, weight ε*a j  K=q(b+1)

 Polynomial time algorithm for the accelerative decreasing case  More classes of decreasing cost  Other objectives besides total weighted completion time  Multiprocessor

 J. Kulkarni and K. Munagala, Algorithms for cost aware scheduling, in Proceedings of 10th International Workshop on Approximation and Online Algorithms (WAOA 2012),  S. Leonardi, N. Megow, R. Rischke, L. Stougie, C. Swamy and J. Verschae, Scheduling with time-varying cost: deterministic and stochastic models, in 11th Workshop on Models and Algorithms for Planning and Scheduling Problems (MAPSP 2013).  G. Wan and X. Qi, Scheduling with variable time slot costs, Naval Research Logistics, 57 (2010)