A * algorithm, Algorithm

Source: Internet
Author: User

A * algorithm, Algorithm

In the past few days, I have been searching for automatic pathfinding. The most common online algorithm I have seen is the * algorithm. Now I understand its principles. The following describes my learning ideas.

First of all, I want to understand the idea of A * algorithm. This article on the link below is A godworks recommended on the Internet. All Chinese Characters in English include:

Http://www.policyalmanac.org/games/aStarTutorial.htm.

This is a Chinese version: http://www.cppblog.com/christanxw/archive/2006/04/07/5126.html

After carefully reading the above two articles, you can't wait to see their implementation code. Don't worry, paste the code online below,

Http://rangercyh.blog.51cto.com/1444712/792044

Http://www.cnblogs.com/kex1n/archive/2012/07/09/2582926.html

After reading this, you can try to write some plane A * algorithms, but the premise is that you have corresponding map data!

 

So the two-dimensional pathfinding is complete, but if I want to do 3D pathfinding, can I use A *? Of course, the answer is OK!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.