Skip to content
Related Articles

Related Articles

Johnson’s Rule in Sequencing Problems

View Discussion
Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 29 Jun, 2022

The sequencing problem deals with determining an optimum sequence of performing a number of jobs by a finite number of service facilities (machine) according to some pre-assigned order so as to optimize the output. The objective is to determine the optimal order of performing the jobs in such a way that the total elapsed time will be minimum.

Consider there are jobs 1,2,3,…….,n to be processed through m machines. (Machine A, Machine B, Machine C, ……, Machine n). The objective is to find a feasible solution, such that the total elapsed time is minimum. We can solve this problem using Johnson’s method.  This method provides solutions to n job 2 machines, n job 3 machines, and 2 jobs m machines.

Johnson’s Algorithm:

Johnson’s rule in sequencing problems is as follows:

  1. Find the smallest processing time on Machine 1 and Machine 2.
  2. a) If the smallest value is in Machine 1 process that job first.
    b) If the smallest value is in the Machine 2  process that job last.
  3. a) if the minimum time for both Machine 1 and Machine 2 is equal, then perform the job of Machine 1 first and then the job of Machine 2.
         b) if there is a tie for a minimum time among jobs in Machine 1, select the job corresponding to the minimum of Machine 2 and process it first.
         c) if there is a tie for a minimum time among jobs in Machine 2, select the job corresponding to the minimum of Machine 1 and process it last.
  4. And then calculate the total elapsed time( the time interval between starting the first job and completing the last job) and Idle time( the time during which the machine remains idle during the total elapsed time.

In this article, we will understand this problem through n job 2 machines. We have to find the sequence of jobs to be executed in different machines to minimize the total time.

Example:

JobsMachine 1Machine 2
J197
J254
J3109
J415
J532

 Solution:

The smallest time is 1 for Machine 1, process it first.

J4    

Next, the smallest time is 2 for Machine 2, process it last

J4   J5

The next smallest time is 3 of job 5 but Job 5 is already being processed by Machine 2. Discard it.

Next, the smallest time is 4 for Machine 2, process it last just before J5

J4  J2J5

The next smallest time is 5 for job 2  but job 2 is already being processed by Machine 2. Discard it. 

Next, the smallest value is 7 for Machine 2, process it last just before J2.

J4 J1J2J5

Next, the smallest value is for Machine 1 & Machine 2, J1 of Machine 1 is already being processed on Machine 2 . So, take J3 of Machine 2 and process it last just before J3.

J4J3J1J2J5

So, the final sequence of processing the jobs is J4, J3, J1, J2, and J5. 

JobMachine 1Machine 2
In TimeOut TimeIn TimeOut Time
J400+1=111+5=6
J311+10=1166+9=15
J11111+9=201515+7=22
J22020+5=252222+4=26
J52525+3=282626+2=28
Total Elapsed Time = 28
Idle time of Machine 1 = 0
Idle time of Machine 2 = 0  
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!