A routing algorithm is a mathematical formula used to determine the path that data will take across a network.