Americas
Europe
Q24E
Expert-verifiedApply the algorithm described in the Example for finding the closest pair of points, using the Euclidean distance between points, to find the closest pair of the pointsand .
The required distance between and is .
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.
Similarly,localid="1668594250851"
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="1668600861769" (Elements of both lists))
and are the points that are closest together, with one point in each sublist.
Note: and, andand are at the same distance.
Finally, compute the minimum distance in the total list.
=min,,
The average of the -coordinate is
Min
Now, only need to check the distance between the points.
-coordinate inwhich are the points,,,
While the-coordinates can differ by at most.
While the pairhas the shortest distance.
While it obtained the minimum distance of between points and
94% of StudySmarter users get better grades.
Sign up for free