Input  t: current time,
set , and spans astride the bn};
if 
  for   to 
   if
     then continue;
    ;
  if   then  ;
  Compute the value of ;
else if   or 
  then Compute the values of and ;
if   then   min ;
  else  min ;
 Choose a job with and ;
 When , change the priority of job lower than that of job in ;
Return  ;
Procedure 1: PRA (time , task set ).