In a nutshell
Two parallel assembly lines have the same stations, and a product can switch lines between stations for a transfer cost. Walking station by station, you record the fastest possible arrival at each one — staying or switching, whichever is quicker — so the fastest route through the whole factory emerges in a single forward pass.