Research Article

A Bus Signal Priority Model at Oversaturated Intersection under Stochastic Demand

Algorithm 1

The algorithm pseudocode.
Read cycle length , number of phase , number of iterations N, saturation rate , arrival rates , a sufficiently large number M, initial queue length for each phase .
Iteration indicator , , , ), , ;
For each phase , sort by in ascending order ();
if then ;
;
while do
while do
; ;
while do
, ;
if
if and
if then and end;
else and ;
else end;
else and and ;
return