Display electronic gun display a Chinese character, draw all the strokes, find the shortest path algorithm. Ask for discussion

Source: Internet
Author: User


Title.
Personally think there are two kinds of ideas, the first is to boil down to the problem of travel quotient, using branch-bound method or other methods to solve. Suppose a Chinese character has n strokes, it corresponds to a 2n point pair. With each draw, there are 2 fewer options, so the total amount of solution space is 2n*2 (n-1) *...*2.

The second is due to the Chinese postman problem, go through a connected graph all sides, how to walk the shortest path, by adding some redundant edges, but also can get the best solution. But Chinese characters may not be a connected graph, how to do? Perhaps it is possible to extend this to a connected graph by calculating the positional relationship of each stroke of the Chinese character.

Feel the first method to be concise, easy to handle.
Would you mind?

Display electronic gun display a Chinese character, draw all the strokes, find the shortest path algorithm. Ask for discussion

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.