Hill and three methods of finding the shortest path