Americas
Europe
Q25E
Expert-verifiedApply the algorithm described in Example for finding the closest pair of points, using the Euclidean distance between points, to find the closest pair of the points
and .
The minimum distance of between and .
Given points are:
.
In mathematics, the Euclidean distance between two points in Euclidean space is the length of a line segment between the two points.
Formula:
Two points in Euclidean n-space
Euclidean vectors, starting from the origin of the space (initial point)
-space
Sort the points in increasing order of the-coordinates:
,,,,,,,
,,,,,,,
Divide the list into sub lists until it obtains sub lists of two elements each.
Distance formula:
When the list contains elements, then the distance "Dis" between the two points is the minimum distance.
localid="1668578491443"
Similarly,
Next, compute the minimum distance among the lists.
(Elements of both lists)
and are the points that are closest together, with one point in each sublist.
localid="1668589125973"
(Elements of both lists)
and are the points that are closest together, with one point in each sublist.
localid="1668593243094"
localid="1668593254682"
(Elements of both lists))
and are the points that are closest together, with one point in each sublist.
localid="1668589518830" (Elements of both lists))
and are the points that are closest together, with one point in each sublist.
Compute the minimum distance among the lists.
(Elements of both lists)
The line separates the points in the two sub-lists are .
role="math" localid="1668590936318"
Now, only need to check the distance between the points with -coordinates in which are all points while the -coordinates can differ by at most
While the pair has the shortest distance,
(Elements of both lists)
Finally, compute the minimum distance in the total list.
(Elements of both lists)
94% of StudySmarter users get better grades.
Sign up for free