|
Algorithm 2 IAC-RRT* algorithm for solving route planning problem |
-
Input:
-
,,,,,n iteration times;
-
Output:
-
Route from to ;
-
1:
Search from ;
-
2:
while Iterate n times do
-
3:
while do
-
4:
Generate within the radius R;
-
5:
if do
-
6:
discard ;
-
7:
else do
-
8:
reselect parent node for ;
-
9:
;
-
10:
rewire with as the parent node;
-
11:
;
-
12:
end if
-
13:
end while
-
14:
Backtrack along from to , i.e., find the route;
-
15:
Select the route with minimal distance from each iteration;
-
16:
end while
-
17:
Output the selected route from to .
|