Finishing routing algorithm without history factor