Imagine the most common intersection. It has traffic lights for drivers and pedestrians. They can be seen in any city. For the simplicity of explanation, suppose that the four -lane road is wide, and the two -lane is narrow. Then the algorithm for switching traffic lights will be this: