|
Algorithm 5 Breadth-first search (BFS) exploration to decide the next target node |
|
Require: node DB , the current node’ ID , local map DB
|
|
Ensure:
the next target node
|
| 1:
|
| 2: if
then
|
| 3: Find-Next-Node-In-TSP-Solution
|
| 4:
else if
then
|
| 5:
|
| 6: else if
then
|
| 7:
|
| 8: Find-Next-Node-In-TSP-Solution
|
| 9:
else
|
| 10:
|
| 11: if
then
|
| 12: Find-Next-Node-In-TSP-Solution
|
| 13: else
|
| 14:
|
| 15: if
then
|
| 16: Find-Next-Node-In-TSP-Solution
|
| 17: else
|
| 18:
|
| 19: if
then
|
| 20:
|
| 21: else
|
| 22:
|
▹ The exploration has been completed. |
| 23: end if
|
| 24: end if
|
| 25: end if
|
| 26:
end if
|