equipment are smuggled, etc., climb and fly away
after the completion of the identification, the entire
identification process takes 10 minutes, and the
identification results can be shared to any demand
party in real time.
The most commonly used routing algorithms
include Dijkstra algorithm (Liu Xuhong, 2005),
SPFA algorithm (Nannicini, 2008), Bellman-Ford
algorithm (Bang-Jensen, 2000), Floyd algorithm
/Floyd-Warshall algorithm (Shi Ren, 2009) to adjust
and intercept strategy schemes. In order to solve the
UAV reconnaissance route after the classification
results in the model, the shortest path can be solved
for the UAV starting from the fixed point. It is
solved by Dijkstra algorithm. The position
information is turned into a graph to facilitate its
subsequent calculation of the shortest flight path.
The Dijkstra algorithm is effective to solve this
problem. The interception problem and the merchant
ship entering the port need to be calculated and
analysed immediately, and the computational
complexity of this algorithm is low.
The complexity of Dijkstra's algorithm: (1) Time
complexity , where e is the number of
edges and v is the number of vertices. (2) Space
complexity .
The Dijkstra algorithm is effective to solve this
problem. The interception problem and the merchant
ship entering the port need to be calculated and
analysed immediately, and the computational
complexity of this algorithm is low, as shown in
Figure 6.
Figure 6: Dijkstra solution.
The model takes points 18, 23, 49, 53, and 60 as
the starting points, and follows 18, 15, 7, 6, 48, 57,
17, 67, 45, 79, 84, 66, and 23, 55, 64, 46, 73, 56, 63,
71, and 39, respectively. Python was used to analyse
and solve the model, and the results were obtained
after 100 iterations. Iterating the python solution 100
times. By substituting the model for calculation, it is
obtained that its initial position is (113.6410,
353.4564), and its intercepting objects include all of
the ship marks of the three types and can intercept
83% of the part of the second type. Its motion
trajectory starts from point (15) and intercepts along
the shortest path of the three types, and most of the
ships of the second type can be intercepted.
Using MATLAB software, we get the best route
for the UAV to travel through all merchant ships,
and the UAV can travel according to this route,
which can make the UAV spend the shortest time
and experience the shortest path, as shown in Figure
7.
Figure 7: The shortest flight path of UAV.
4 CONCLUSION
Through the research and demonstration in this
paper, we first use KNN algorithm to classify and
identify merchant ships. This method has strong
robustness to noise training data. Starting from the
geographical coordinate position of merchant ships,
this algorithm solves the problem of merchant ships
category well. Through the research and
demonstration in this paper, we know that it is easy
to implement KNN algorithm, and this method has
strong robustness to noise training data. From the
perspective of algorithm performance comparison,
take Floyd algorithm and Dijkstra algorithm as an
example. On the one hand, if Floyd algorithm is
applied to a certain vertex successively, then
compared with Dijkstra algorithm, many path and
result calculations are repeated. Although the
complexity is the same, the calculation amount is
much different. At the same time, more importantly,
Floyd's algorithm requires no loops with a sum less
ANIT 2023 - The International Seminar on Artificial Intelligence, Networking and Information Technology