A routing algorithm is a procedure that lays down the route or path to transfer data packets from source to the destination . They help in directing Internet traffic efficiently. After a data packet leaves its source, it can choose among the many different paths to reach its destination.