HIGHEST RESPONSE RATIO NEXT
            H.R.R.N.
          Basic Theory :
            
            
                Highest Response Ratio Next (HRNN) is one of the most
              optimal scheduling algorithms. This is a non-preemptive algorithm
              in which, the scheduling is done on the basis of an extra
              parameter called Response Ratio. A Response Ratio is calculated
              for each of the available jobs and the Job with the highest
              response ratio is given priority over the others.
              
Response Ratio is calculated by the given formula. :
Response Ratio = (W+S)/S
          Response Ratio is calculated by the given formula. :
Response Ratio = (W+S)/S
- Input the number of processes, their arrival times and burst times.
- Sort them according to their arrival times.
- At any given time calculate the response ratios and select the appropriate process to be scheduled.
- Calculate the turn around time as completion time – arrival time.
- Calculate the waiting time as turn around time – burst time.
- Turn around time divided by the burst time gives the normalized turn around time.
- Sum up the waiting and turn around times of all processes and divide by the number of processes to get the average waiting and turn around time.