The interesting thing about algorithmic engineering is that it never goes out of style, doesn't know when the older but useful algorithms may be reflected in our design, yesterday, Google released its Google trips, a new app to help you create a very good trip in the city. And the algorithm has been demonstrated 280 of years ago.
In 1736, Euler published the famous paper on the Seven Bridges of Konigsberg, seven bridge problems, as follows:
650) this.width=650; "Src=" HTTP://ATA2-IMG.CN-HANGZHOU.IMG-PUB.ALIYUN-INC.COM/AD9522A956EA9C493778CB838FF168B1 " alt= "image_01" title= "image_01" style= "border:0px;vertical-align:middle;"/>
In this paper, Euler studies the following questions: Can the traveler all the bridges will be able to stroll through the entire city (the mainland is separated by seven bridges)? The final paper gives the result, for Konigsberg this city, can not. In order to prove that Euler proposed a so-called positional geometry concept is the later development of graph theory. In this paper, the continents of all cities are called nodes by bridges, while bridges across continents are called edges. Such as:
650) this.width=650; "Src=" Http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/b3971b2feef2851185aa9c9c1ae405e4 " alt= "image_02" title= "image_02" style= "border:0px;vertical-align:middle;"/>
The necessary and sufficient condition for Euler to discover this path is that all nodes must have even-numbered edges. Only in this condition can one pass through all continents, and all the bridges go only once; based on the above findings, we apply it to Google trips.
Our team's theoretical research on this positional geometry has been going on for a while, and then our research is based on the Euler theory of whether we can make the traveler walk as far as possible, and this problem is now the "trip planning" problem. Euler has not studied this problem, but based on Euler's inspiration, we call it a directed engineering problem.
To continue reading please click: http://click.aliyun.com/m/9169/
This article is from the "12466150" blog, please be sure to keep this source http://12476150.blog.51cto.com/12466150/1890759
"Algorithm Secret" Google trips has 280 years of ancient algorithms reveal