This type of routing algorithm calculates the optimal route based on the shortest or fastest path to the destination.