• :00Days
  • :00Hours
  • :00Mins
  • 00Seconds
A new era for learning is coming soonSign up for free
Log In Start studying!

Select your language

Suggested languages for you:
Answers without the blur. Sign up and see all textbooks for free! Illustration

Q24E

Expert-verified
Discrete Mathematics and its Applications
Found in: Page 536
Discrete Mathematics and its Applications

Discrete Mathematics and its Applications

Book edition 7th
Author(s) Kenneth H. Rosen
Pages 808 pages
ISBN 9780073383095

Answers without the blur.

Just sign up for free and you're in.

Illustration

Short Answer

Apply the algorithm described in the Example 12for finding the closest pair of points, using the Euclidean distance between points, to find the closest pair of the points(1,3),(1,7),(2,4),(2,9),(3,1),(3,5),(4,3)and (4,7).

The required distance between Aand Cis 2.

See the step by step solution

Step by Step Solution

Step 1: Given Information

Given points are:

(1,3),(1,7),(2,4),(2,9),(3,1),(3,5),(4,3),(4,7)

Step 2: Definition of Euclidean distance

In mathematics, the Euclidean distance between two points in Euclidean space is the length of a line segment between the two points.

Formula:

d(p,q)=i=1n(qi-pi)2

p,q = Two points in Euclidean n-space

qi,pi=Euclidean vectors, starting from the origin of the space (initial point)

n = n-space

Step 3: Determine the closest pair of the given point by the Euclidean distance formula 

Sort the points in increasing order of the x-coordinates:

A=(1,3),B=(1,7)C=(2,4),D=(2,9)E=(3,1),F=(3,5)G=(4,3),H=(4,7)

Divide the list into sub-lists until it obtains sub-lists of two elements each.

{A,B,C,D},{E,F,G,H}{A,B},{C,D},{E,F},{G,H}

Distance formula:

dx1,y1,x2,y2=x2-x12+y2-y12

When the list contains n = 2 elements, then the distance "Dis" between the two points is the minimum distance.

Dis(A,B)=(1-1)2+(7-3)2

Dis(A,B)=16

Dis(A,B)=4

Similarly,localid="1668594250851" Dis(C,D)=5,Dis(E,F)=4,Dis(G,H)=4.

Step 4: Simplify further to find Dis(A,B,C,D,E,F,G,H)

Next, compute the minimum distance among the lists {A,B,C,D},{E,F,G,H}

Dis(A,B,C,D)=min(Dis(A,B),Dis(C,D),Dis(Elements of both lists))

A and C are the points that are closest together, with one point in each sublist.

Dis(A,B,C,D)=min4,5,(2-1)2+(4-3)2

Dis(A,B,C,D)=min(4,5,2)

Dis(A,B,C,D)=2

localid="1668600861769" Dis(E,F,G,H)=min(Dis(E,F),Dis(G,H),Dis(Elements of both lists))

E and G are the points that are closest together, with one point in each sublist.

Note: FandG, and FandH are at the same distance.

Dis(E,F,G,H)=min4,4,(4-3)2+(3-1)2

Dis(E,F,G,H)=min(4,5,5)

Dis(E,F,G,H)=5

Finally, compute the minimum distance in the total list.

Dis(A,B,C,D,E,F,G,H)=min(Dis(A,B,C,D),Dis(E,F,G,H),Dis(elements of both lists))

The average of the X-coordinate is2.5.

d=Min(Dis(A,B,C,D),Dis(E,F,G,H))

d=Min(2,5)

d=2

Now, only need to check the distance between the points.

X-coordinate in(2.5-2,2.5-2)which are the pointsC,D,E, F

While theY-coordinates can differ by at mostd=2.

While the pairCFhas the shortest distance.

Dis(A,B,C,D,E,F,G,H)=min2,5,(3-2)2+(5-4)2

Dis(A,B,C,D,E,F,G,H)=min(2,5,2)

Dis(A,B,C,D,E,F,G,H)=2

Step 5: Plot the given points on the graph

While it obtained the minimum distance of 2 between points A andC(see Dis}(A,B,C,D)).

Recommended explanations on Math Textbooks

94% of StudySmarter users get better grades.

Sign up for free
94% of StudySmarter users get better grades.