Introduction - If you have any usage issues, please Google them yourself
The steps of the algorithm are as follows:
1., find out the median of Sx: median_Sx; use median_Sx to divide the point set S; the left side is S1, and the S2 on the right is S2.
T (n) = 2*T (n/2) + merge complexity. When merging, it is compared with the n/2 points in S1 and the most 6 points in S2. The number of comparisons is n/2 * 6 = 3n..
T (n) = 2*T (n/2) +O (n). From the main theorem, we know T (n) = O (n*log (n)).