The invention discloses a multi-source path
shortest distance algorithm based on included angle comparison, and relates to the field of path algorithms. The method comprises the following steps: S1, in a plane containing a plurality of random distribution points, determining any two points in the plane as a starting point and an ending point; s2, after the starting point and the end point are determined, all other point positions in the plane are subjected to angle comparison with the starting point and the end point on the basis of the
greedy algorithm idea, and at least one middle point equal to or closest to 180 degrees is found out according to the two-point one-line principle; s3, after the middle
point location is determined, based on a
magnet idea, two adjacent determined points can lock the orientation angle of the opposite side, optimal
point location searching is carried out towards the orientation of the opposite side by continuously increasing the searching
radius distance, included angle comparison is carried out on the searched new
point location, the point location of the new point location and the adjacent determined point location, and the optimal point location is obtained. Appropriate point locations are screened out for connection; and S4, setting the connected point locations as new determined points, and continuously connecting the point locations in adjacent determined directions until all the determined points are connected together to form an optimal path.