SlideShare a Scribd company logo
Flow shop scheduling
By- Kunal Goswami
Mentor – Joy Chandra Mukherjee
1
Content :
Definition
Application
Methods
Algorithm
Conclusion
Reference
2
Definition
3
Definition
• Flow shop scheduling problems, are a class
of scheduling problems with a workshop in which the
flow control shall enable an appropriate sequencing for
each job and for processing on a set of machines or with
other resources 1,2,...,m in compliance with given
processing orders.
• For an operating system – we have many task to be done.
Especially the maintaining of a continuous flow of
processing tasks is desired with a minimum of idle
time and a minimum of waiting time.
4
Application
5
Example
Practical application :
As we have seen strict order of all operations to be
performed on all jobs. Flow shop scheduling may apply as
well to production facilities as to computing designs.
• It is used in processing industry where a strict order of
production should be done
• In can be used in construction work.
• In medical observation
In space technology, agricultural processing basically in
every (multiprograming + strict order job).
6
Application
It works in following case in steps :
i. we should have multiprogramming environment
ii. input and then executed
iii. Job queued for O/P
iv. O/P printed/used
• Suppose there are 1 to n job and there are m processor and we
have some more information like for task T3i for processor 3.
And it takes tj time.
Note - m >= n
• No more then 1 task for any processor at a time.
• N jobs requiring m tasks and each to be scheduled in m
processor. 7
Application
So in diagram view situation is like this.
Assume we have 4 jobs and each jobs can have 5 tasks.
Jobs J1 J2 J3 J4
Tasks
t1
t2
t3
t4
t5
3
1
4
2
2
2
0
3
2
2
0
1
4
2
1
1
1
3
2
1
8
Usefuldata:
The finish time of fi(S) of job i is the time at
which all task of job i has been completed in
schedule S.
• The finish time F(S) of a schedule S is :
F(S) = max {fi(S)}
• The mean flow time MFT(S) is :
MFT(S) = (1/n). ∑ fi(S)
We try to get optimal finish time i.e. minimal
finish time. 9
Methods
10
Above scheduling problem is done by two method
Two possible solution : i) pre-emptive
ii) non preemptive.
11
i) pre-emptive Job
In it we do permits preemption (halting) of
tasks, from a cooperative multitasking system
wherein processes/tasks must be explicitly
programmed to yield when they do not need
system resources.
Rules :
a) tji cannot start unit tj-1,i finishes.
b) Task ti of any job will go to processor i only.
12
Example
J1 J2
13
Example
First task T1 is coming from two jobs we have.
t11 = 2 and t12 = 0
Both will be processed sequentially ;
all task-1 will complete in 2 sec.
14
Example
Now Task-2 comes ;
T21 = 3 and T22 = 3
Task-2 of Job-1 cannot start as it’s first Task-1 needed to
be completed. So Task-2 of Job-2 starts.
15
Example
Now Task-3 comes ;
T31 = 5 and T32 = 2
Task-3 of Job-1 cannot start as it’s first Task-2 needed
to be completed.
So is Task-3 of Job-2 which require Task-2 to complete.
16
Example
Finish time = Max (F1 , F2) = max (5,11) = 11
5 and 11 are finish time of respective jobs.
Mean flow time = ½ .(5+11) = 8
17
Example
ii) pre-emptive Job
Preemptive Scheduling is a CPU scheduling technique
that works by dividing time slots of CPU to a given
process.
When the burst time of the process is greater than CPU
cycle, it is placed back into the ready queue and will
execute in the next chance. This scheduling is used when
the process switch to ready state.
Rules :
a) tji cannot start unit tj-1,i finishes.
b) Task ti of any job will go to processor i only.
18
Example
J1 J2
19
Example
First task T1 is coming from two jobs we have.
t11 = 2 and t12 = 0,
It donot have any conflict job in machine. So execute
normally.
20
Example
Task T2 comes.
t21 = 3 and t22 = 3,
• t21 , t22 comes. As t11 not complete. So t21 goes into
queue. And t22 starts.
• After t22 finishes t21 again complete it’s remaining cycle.
21
Example
Task-3 comes.
t31 = 5 and t32 = 2,
• t31 , t32 comes. As t21 not complete. So t31 goes into
queue. Also same with t32 .
• t31 starts after 5 unit time. Then t32 completes.
22
Example
Finish time = Max (F1 , F2) = max (10,12) = 12
10 and 12 are finish time of respective jobs.
Mean flow time = ½ .(10+12) = 11
23
Algorithm
24
Algorithms
• The machine sequence of all jobs is the same. The
problem is to find the job sequences on the machines
which minimize the makespan , i.e. the maximum of the
completion times of all tasks.
• It is similar to 2-machine problem with 2 machines to
solve different burst jobs. It is well known that in case of
real time situations - the problem is NP-hard.
• There are some optimized algorithms which uses
Dynamic algorithm, Branch and Bound and Heuristic
algorithm such as genetic algorithm.
25
Algorithms
 Popular algorithms are :
• Johnson algorithm – nlogn
• GS algorithm (Gonzalez and sahni)
• Genetic algorithm
 n.Logn is most optimized solution for finite no. of tasks.
 We will see Johnson algorithm.
26
Algorithms
Johnson's Algorithm for 2 machine
Step 1 : Form set1 containing all the jobs with p1j < p2j -- (nlogn)
Step 2 : Form set2 containing all the jobs with p1j > p2j, the jobs with
p1j=p2j may be put in either set. -- (n)
Step 3 :
Form the sequence as follows:
(i) The job in set1 go first in the sequence and they go in increasing
order of p1j(SPT) – shortest process time -- O.(c)
(ii) The jobs in set2 follow in decreasing order of p2j (LPT). Ties are
broken arbitrarily. – longest process time -- O.(c) 27
Example
Let’s try Johnson's algorithm in our example :
We remember it had took us 11 unit for non-preemptive
and 12 unit for pre-emptive scheduling using naive
process.
Our job sequence was :
28
J1 J2
Example
t1 t2 t3
J1 2 3 5
J2 0 3 2
step 1 – find least among all
• 0 is ans.
• cut that column and put in array from left or right
according to job1 or job2.
• 0 task is of J2. So choose from right
29
J1 J2
Example
t2 t3 (task-1 removed)
J1 3 5
J2 3 2
step 1 – find least among all now
• 2 is ans.
• cut that column and put in array from left or right
according to job1 or job2.
• 0 task is of J2. So choose from right
30
J1 J2
Example
t2 (task-3 removed)
J1 3
J2 3
step 1 – find least among all now
• 3 is ans.
• cut that column and put in array from left or right
according to job1 or job2.
• 0 task is of J2. So choose from right
31
J1 J2
Example
Above is job sequence for algorithm
Now make table including 2 machines
So, 10 is execution time of give sequence of task using
johnson algorithm which is better from earlier.
32
J1 J2
Conclusion &
future work
33
Conclusion
• We got to know about popular scheduling algorithm of
tasks in multiprogramming environment.
• A lot of work is being done in GS and genetic algorithm.
Also it is tried with many other field then scheduling.
34
Reference
35
Reference
• https://en.wikipedia.org/wiki/Flow_shop_scheduling
• https://www.youtube.com/watch?v=R08ql752oL0
• https://www.sciencedirect.com/science/article/abs/pii/S03608
35299000236
• https://www.sciencedirect.com/science/article/pii/S14746670
15357499#:~:text=Johnson'%20algorithm%20(JA)%20is,algorit
hms%20for%20more%20general%20cases.
36
THANKU
37

More Related Content

What's hot

DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
Venkata Sreeram
 
Dynamic and Static Modeling
Dynamic and Static ModelingDynamic and Static Modeling
Dynamic and Static ModelingSaurabh Kumar
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
Mani Kanth
 
Software Project Management - Staffing
Software Project Management - StaffingSoftware Project Management - Staffing
Software Project Management - Staffing
TanishqRongta1
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
Subid Biswas
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
Mani Kanth
 
Context model
Context modelContext model
Context model
Ubaid423
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
Chankey Pathak
 
Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering conceptsKomal Singh
 
General purpose simulation System (GPSS)
General purpose simulation System (GPSS)General purpose simulation System (GPSS)
General purpose simulation System (GPSS)
Tushar Aneyrao
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
Fáber D. Giraldo
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programmingparamalways
 
Job sequencing with deadline
Job sequencing with deadlineJob sequencing with deadline
Job sequencing with deadline
Arafat Hossan
 
Hardware and Software parallelism
Hardware and Software parallelismHardware and Software parallelism
Hardware and Software parallelismprashantdahake
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
Timbal Mayank
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
vikas dhakane
 
2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf
bcanawakadalcollege
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
 

What's hot (20)

DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
Dynamic and Static Modeling
Dynamic and Static ModelingDynamic and Static Modeling
Dynamic and Static Modeling
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
 
Software Project Management - Staffing
Software Project Management - StaffingSoftware Project Management - Staffing
Software Project Management - Staffing
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
 
Context model
Context modelContext model
Context model
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering concepts
 
General purpose simulation System (GPSS)
General purpose simulation System (GPSS)General purpose simulation System (GPSS)
General purpose simulation System (GPSS)
 
Spm unit2
Spm unit2Spm unit2
Spm unit2
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
 
Dynamic Programming
Dynamic ProgrammingDynamic Programming
Dynamic Programming
 
Job sequencing with deadline
Job sequencing with deadlineJob sequencing with deadline
Job sequencing with deadline
 
Hardware and Software parallelism
Hardware and Software parallelismHardware and Software parallelism
Hardware and Software parallelism
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
Deadlock ppt
Deadlock ppt Deadlock ppt
Deadlock ppt
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 

Similar to Flowshop scheduling

Job shop scheduling
Job shop schedulingJob shop scheduling
Job shop scheduling
Sujeet TAMBE
 
Multiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptxMultiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptx
naghamallella
 
Job Shop Scheduling.pptx
Job Shop Scheduling.pptxJob Shop Scheduling.pptx
Job Shop Scheduling.pptx
SyedAmirIqbal3
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
Kamal Acharya
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
naghamallella
 
9Johnson's Rule.ppt
9Johnson's Rule.ppt9Johnson's Rule.ppt
9Johnson's Rule.ppt
khushboo561850
 
Operations Research_18ME735_module 5 sequencing notes.pdf
Operations Research_18ME735_module 5 sequencing notes.pdfOperations Research_18ME735_module 5 sequencing notes.pdf
Operations Research_18ME735_module 5 sequencing notes.pdf
RoopaDNDandally
 
Exam110121
Exam110121Exam110121
Exam110121
Sou Tibon
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
iqbalphy1
 
Approximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximationsApproximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximations
Benjamin Sach
 
Multiprocessor scheduling 3
Multiprocessor scheduling 3Multiprocessor scheduling 3
Multiprocessor scheduling 3mrbourne
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
Don William
 
A case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristicsA case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristics
IJERA Editor
 
A case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristicsA case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristics
IJERA Editor
 
Job sequencing with Deadlines
Job sequencing with DeadlinesJob sequencing with Deadlines
Job sequencing with Deadlines
YashiUpadhyay3
 
6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdf6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdf
Tigabu Yaya
 
11.optimal three stage flow shop scheduling in which processing time, set up ...
11.optimal three stage flow shop scheduling in which processing time, set up ...11.optimal three stage flow shop scheduling in which processing time, set up ...
11.optimal three stage flow shop scheduling in which processing time, set up ...Alexander Decker
 
Optimal three stage flow shop scheduling in which processing time, set up tim...
Optimal three stage flow shop scheduling in which processing time, set up tim...Optimal three stage flow shop scheduling in which processing time, set up tim...
Optimal three stage flow shop scheduling in which processing time, set up tim...Alexander Decker
 
Production & Operation Management Chapter33[1]
Production & Operation Management Chapter33[1]Production & Operation Management Chapter33[1]
Production & Operation Management Chapter33[1]
Hariharan Ponnusamy
 

Similar to Flowshop scheduling (20)

Job shop scheduling
Job shop schedulingJob shop scheduling
Job shop scheduling
 
Multiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptxMultiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptx
 
Job Shop Scheduling.pptx
Job Shop Scheduling.pptxJob Shop Scheduling.pptx
Job Shop Scheduling.pptx
 
Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
 
R0260950100
R0260950100R0260950100
R0260950100
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
 
9Johnson's Rule.ppt
9Johnson's Rule.ppt9Johnson's Rule.ppt
9Johnson's Rule.ppt
 
Operations Research_18ME735_module 5 sequencing notes.pdf
Operations Research_18ME735_module 5 sequencing notes.pdfOperations Research_18ME735_module 5 sequencing notes.pdf
Operations Research_18ME735_module 5 sequencing notes.pdf
 
Exam110121
Exam110121Exam110121
Exam110121
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
 
Approximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximationsApproximation Algorithms Part Two: More Constant factor approximations
Approximation Algorithms Part Two: More Constant factor approximations
 
Multiprocessor scheduling 3
Multiprocessor scheduling 3Multiprocessor scheduling 3
Multiprocessor scheduling 3
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
 
A case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristicsA case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristics
 
A case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristicsA case study on Machine scheduling and sequencing using Meta heuristics
A case study on Machine scheduling and sequencing using Meta heuristics
 
Job sequencing with Deadlines
Job sequencing with DeadlinesJob sequencing with Deadlines
Job sequencing with Deadlines
 
6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdf6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdf
 
11.optimal three stage flow shop scheduling in which processing time, set up ...
11.optimal three stage flow shop scheduling in which processing time, set up ...11.optimal three stage flow shop scheduling in which processing time, set up ...
11.optimal three stage flow shop scheduling in which processing time, set up ...
 
Optimal three stage flow shop scheduling in which processing time, set up tim...
Optimal three stage flow shop scheduling in which processing time, set up tim...Optimal three stage flow shop scheduling in which processing time, set up tim...
Optimal three stage flow shop scheduling in which processing time, set up tim...
 
Production & Operation Management Chapter33[1]
Production & Operation Management Chapter33[1]Production & Operation Management Chapter33[1]
Production & Operation Management Chapter33[1]
 

Recently uploaded

AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 

Recently uploaded (20)

AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 

Flowshop scheduling

  • 1. Flow shop scheduling By- Kunal Goswami Mentor – Joy Chandra Mukherjee 1
  • 4. Definition • Flow shop scheduling problems, are a class of scheduling problems with a workshop in which the flow control shall enable an appropriate sequencing for each job and for processing on a set of machines or with other resources 1,2,...,m in compliance with given processing orders. • For an operating system – we have many task to be done. Especially the maintaining of a continuous flow of processing tasks is desired with a minimum of idle time and a minimum of waiting time. 4
  • 6. Example Practical application : As we have seen strict order of all operations to be performed on all jobs. Flow shop scheduling may apply as well to production facilities as to computing designs. • It is used in processing industry where a strict order of production should be done • In can be used in construction work. • In medical observation In space technology, agricultural processing basically in every (multiprograming + strict order job). 6
  • 7. Application It works in following case in steps : i. we should have multiprogramming environment ii. input and then executed iii. Job queued for O/P iv. O/P printed/used • Suppose there are 1 to n job and there are m processor and we have some more information like for task T3i for processor 3. And it takes tj time. Note - m >= n • No more then 1 task for any processor at a time. • N jobs requiring m tasks and each to be scheduled in m processor. 7
  • 8. Application So in diagram view situation is like this. Assume we have 4 jobs and each jobs can have 5 tasks. Jobs J1 J2 J3 J4 Tasks t1 t2 t3 t4 t5 3 1 4 2 2 2 0 3 2 2 0 1 4 2 1 1 1 3 2 1 8
  • 9. Usefuldata: The finish time of fi(S) of job i is the time at which all task of job i has been completed in schedule S. • The finish time F(S) of a schedule S is : F(S) = max {fi(S)} • The mean flow time MFT(S) is : MFT(S) = (1/n). ∑ fi(S) We try to get optimal finish time i.e. minimal finish time. 9
  • 11. Above scheduling problem is done by two method Two possible solution : i) pre-emptive ii) non preemptive. 11
  • 12. i) pre-emptive Job In it we do permits preemption (halting) of tasks, from a cooperative multitasking system wherein processes/tasks must be explicitly programmed to yield when they do not need system resources. Rules : a) tji cannot start unit tj-1,i finishes. b) Task ti of any job will go to processor i only. 12
  • 14. Example First task T1 is coming from two jobs we have. t11 = 2 and t12 = 0 Both will be processed sequentially ; all task-1 will complete in 2 sec. 14
  • 15. Example Now Task-2 comes ; T21 = 3 and T22 = 3 Task-2 of Job-1 cannot start as it’s first Task-1 needed to be completed. So Task-2 of Job-2 starts. 15
  • 16. Example Now Task-3 comes ; T31 = 5 and T32 = 2 Task-3 of Job-1 cannot start as it’s first Task-2 needed to be completed. So is Task-3 of Job-2 which require Task-2 to complete. 16
  • 17. Example Finish time = Max (F1 , F2) = max (5,11) = 11 5 and 11 are finish time of respective jobs. Mean flow time = ½ .(5+11) = 8 17
  • 18. Example ii) pre-emptive Job Preemptive Scheduling is a CPU scheduling technique that works by dividing time slots of CPU to a given process. When the burst time of the process is greater than CPU cycle, it is placed back into the ready queue and will execute in the next chance. This scheduling is used when the process switch to ready state. Rules : a) tji cannot start unit tj-1,i finishes. b) Task ti of any job will go to processor i only. 18
  • 20. Example First task T1 is coming from two jobs we have. t11 = 2 and t12 = 0, It donot have any conflict job in machine. So execute normally. 20
  • 21. Example Task T2 comes. t21 = 3 and t22 = 3, • t21 , t22 comes. As t11 not complete. So t21 goes into queue. And t22 starts. • After t22 finishes t21 again complete it’s remaining cycle. 21
  • 22. Example Task-3 comes. t31 = 5 and t32 = 2, • t31 , t32 comes. As t21 not complete. So t31 goes into queue. Also same with t32 . • t31 starts after 5 unit time. Then t32 completes. 22
  • 23. Example Finish time = Max (F1 , F2) = max (10,12) = 12 10 and 12 are finish time of respective jobs. Mean flow time = ½ .(10+12) = 11 23
  • 25. Algorithms • The machine sequence of all jobs is the same. The problem is to find the job sequences on the machines which minimize the makespan , i.e. the maximum of the completion times of all tasks. • It is similar to 2-machine problem with 2 machines to solve different burst jobs. It is well known that in case of real time situations - the problem is NP-hard. • There are some optimized algorithms which uses Dynamic algorithm, Branch and Bound and Heuristic algorithm such as genetic algorithm. 25
  • 26. Algorithms  Popular algorithms are : • Johnson algorithm – nlogn • GS algorithm (Gonzalez and sahni) • Genetic algorithm  n.Logn is most optimized solution for finite no. of tasks.  We will see Johnson algorithm. 26
  • 27. Algorithms Johnson's Algorithm for 2 machine Step 1 : Form set1 containing all the jobs with p1j < p2j -- (nlogn) Step 2 : Form set2 containing all the jobs with p1j > p2j, the jobs with p1j=p2j may be put in either set. -- (n) Step 3 : Form the sequence as follows: (i) The job in set1 go first in the sequence and they go in increasing order of p1j(SPT) – shortest process time -- O.(c) (ii) The jobs in set2 follow in decreasing order of p2j (LPT). Ties are broken arbitrarily. – longest process time -- O.(c) 27
  • 28. Example Let’s try Johnson's algorithm in our example : We remember it had took us 11 unit for non-preemptive and 12 unit for pre-emptive scheduling using naive process. Our job sequence was : 28 J1 J2
  • 29. Example t1 t2 t3 J1 2 3 5 J2 0 3 2 step 1 – find least among all • 0 is ans. • cut that column and put in array from left or right according to job1 or job2. • 0 task is of J2. So choose from right 29 J1 J2
  • 30. Example t2 t3 (task-1 removed) J1 3 5 J2 3 2 step 1 – find least among all now • 2 is ans. • cut that column and put in array from left or right according to job1 or job2. • 0 task is of J2. So choose from right 30 J1 J2
  • 31. Example t2 (task-3 removed) J1 3 J2 3 step 1 – find least among all now • 3 is ans. • cut that column and put in array from left or right according to job1 or job2. • 0 task is of J2. So choose from right 31 J1 J2
  • 32. Example Above is job sequence for algorithm Now make table including 2 machines So, 10 is execution time of give sequence of task using johnson algorithm which is better from earlier. 32 J1 J2
  • 34. Conclusion • We got to know about popular scheduling algorithm of tasks in multiprogramming environment. • A lot of work is being done in GS and genetic algorithm. Also it is tried with many other field then scheduling. 34
  • 36. Reference • https://en.wikipedia.org/wiki/Flow_shop_scheduling • https://www.youtube.com/watch?v=R08ql752oL0 • https://www.sciencedirect.com/science/article/abs/pii/S03608 35299000236 • https://www.sciencedirect.com/science/article/pii/S14746670 15357499#:~:text=Johnson'%20algorithm%20(JA)%20is,algorit hms%20for%20more%20general%20cases. 36