Question
For the following set of points, describe how the CLOSET-PAIR algorithm finds a closest pair of points:
(1,2),(2,−1),(3,−3),(3,2),(−3,4),(−1,2),(2,3),(1,1),(−5,−2).
Answer :
Word Count : 273
____ ___ ____ _________ __________ ________ ________ __________ ____ _________.
________ ___ _________ ___ ________ ______ __________ _________.
______ _____ ________ ___ _________ ________ ______.
________ _______ _______ __________ ____ ___ ___ ___ ________ _____ ____ ___.
__________ ________ ____ ______ __________ __________ ______ _____ __________ _________ ______ __________.
_____ ____ ___ ___ ________ ______ _________.
____ _________ ____ __________ ____ ____ __________.
__________ ___ ______ ______ ___ _________.
_______ ______ ________ ___ _______ ________ ________ _________ ___ _______ __________ _____.
__________ ________ ________ _____ _____ _______.
_____ ________ ___ ________ _____ _______ ___ ______ ____ ________ ____ _________.
___ ____ ____ ______ ________ ____ ___ ____ ______.
____ ________ ___ ________ ________ _________ _________.
_______ _________ ____ _____ ________ _______ _________ _____ ___ _______ _______ _______.
___ ___ _________ __________ _______ __________ _______ ___ ____.
_________ _____ ____ __________ ___ _______ ___ _________ __________ __________ ____ ______.
________ ________ _________ ______ __________ __________.
_________ ______ ___ _____ ___ ___ ______ ____ ______ __________ __________.
____ _______.
Skip in 10
The nine points are first sorted by x-coordinate: ((-5,-2),(-3,4),(-1,2),(1,1),(1,2),(2,-1),(2,3),(3,-3),(3,2)). The median x-value is between ((1,2)) and ((2,-1)), so the set is divided into a left half (L={(-5,-2),(-3,4),(-1,2),(1,1),(1,2)}) and a right half (R={(2,-1),(2,3),(3,-3),(3,2)}). In the left half, sort by x again and split around the median between ((-1,2)) and ((1,1)). (L_1={(-5,-2),(-3,4),(-1,2)}) and (L_2={(1,1),(1,2)}). In (L_1) all pairs are checked: distance between ((-5,-2)) and ((-3,4)) is (\sqrt{(2)^2+(6)^2}=\sqrt{40}), between ((-5,-2)) and ((-1,2)) is (\sqrt{(4)^2+(4)^2}=\sqrt{32}), between ((-3,4)) and ((-1,2)) is (\sqrt{(2)^2+(−2)^2}=\sqrt8=2\sqrt2). So the closest in (L_1) is ((-3,4)) and ((-1,2)) with distance (2\sqrt2). In (L_2), the only pair ((1,1)) and ((1,2)) has
____ _____ __________ ___ ________ _______ ______ ____.____ ___ ____ _________ __________ ________ ________ __________ ____ _________.
________ ___ _________ ___ ________ ______ __________ _________.
______ _____ ________ ___ _________ ________ ______.
________ _______ _______ __________ ____ ___ ___ ___ ________ _____ ____ ___.
__________ ________ ____ ______ __________ __________ ______ _____ __________ _________ ______ __________.
_____ ____ ___ ___ ________ ______ _________.
____ _________ ____ __________ ____ ____ __________.
__________ ___ ______ ______ ___ _________.
_______ ______ ________ ___ _______ ________ ________ _________ ___ _______ __________ _____.
__________ ________ ________ _____ _____ _______.
_____ ________ ___ ________ _____ _______ ___ ______ ____ ________ ____ _________.
___ ____ ____ ______ ________ ____ ___ ____ ______.
____ ________ ___ ________ ________ _________ _________.
_______ _________ ____ _____ ________ _______ _________ _____ ___ _______ _______ _______.
___ ___ _________ __________ _______ __________ _______ ___ ____.
_________ _____ ____ __________ ___ _______ ___ _________ __________ __________ ____ ______.
________ ________ _________ ______ __________ __________.
_________ ______ ___ _____ ___ ___ ______ ____ ______ __________ __________.
____ _______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.