As far as I know, and if you are interested in pathfinding, one of the best is the A* search/pathfinding algorithm. Just make a quick search at Google and you will get lots of useful information, and even sample implementations. If you are curious, I can tell you that pathfinding is one of the problems that artificial intelligence tries to solve. Nearly all book on AI discuss a bunch of pathfinding techniques and algos. Some are better in certain circumstances, but in general A* will perform politely and with a fairly good speed in any situation.