Function
Initialize ; where is the length of each step at each iteration
Initialize where is the calculation accuracy
repeat
      
      if then
          
      else
          
      End if
until     Check finishing criterion
return
End Function
Pseudocode 1: Pseudocode for obtaining the best revised price within the interval .