Platform spacing algorithm