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
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 ________ _________ ________ ________ _______ ______.
_____ ____ ___ _______ _________ _____ ____ ______ _________ ________ ______ ___.
____ __________ __________ _____ ________ __________ _______ ______.
__________ __________ __________ ___ ________ ____ ______ _______ ___ ______ _________ ___.
___ _______ ____ ____ ___.
__________ ______ _________ _________ __________ ______ ____ ___ _________ ________.
_______ _________ ________ __________ ____ _________ _______ ___ _____ ______ _____.
__________ _____ ___ ___ ________ ________.
__________ __________ _______ ________ ________ ________ _________ _____ _______ ________ ________.
___ ____ _________ ____ ____ _________.
__________ ______ ____ ___ _____ ____.
__________ ____ ____ ____ ____ _______ ___ ________ _________ _________.
______ __________ ______ ___ _________ _______.
_________ ______ _____ _______ __________ __________ _________.
_____ ________ _________ _________ _______.
_______ _____ ____ _______ ____ ______ _________ __________ _______ ____ _______.
_____ _________ _____ ___ _________ ____ __________ ____ _______ __________.
______ _______ __________ _______ ______ _____ ___ ______ ___ __________ ___ ______.
______ ________ ____ ________ _________ _____ ____ ___ __________ ___.
_________ ________ _________ ________ ___ _______ ____ ___ ___ _______ _______ _____.
________ ___ ______ ______ ________ ________.
_____ ________ __________ _________ ___ ___ ______ _____ _______ _____.
_______ _____ ______ _________ __________ ____.
_____ _______ __________ _________ _____ _______ __________ ____ _______ _______.
_________ ___ _________ _______ ___ _________ _______.
_____ _____ __________ _________ ____ _________ _____ ________ __________ ______.
_____ ___ ______.
Get Full Answer on WhatsApp
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 ________ _________ ________ ________ _______ ______.
_____ ____ ___ _______ _________ _____ ____ ______ _________ ________ ______ ___.
____ __________ __________ _____ ________ __________ _______ ______.
__________ __________ __________ ___ ________ ____ ______ _______ ___ ______ _________ ___.
___ _______ ____ ____ ___.
__________ ______ _________ _________ __________ ______ ____ ___ _________ ________.
_______ _________ ________ __________ ____ _________ _______ ___ _____ ______ _____.
__________ _____ ___ ___ ________ ________.
__________ __________ _______ ________ ________ ________ _________ _____ _______ ________ ________.
___ ____ _________ ____ ____ _________.
__________ ______ ____ ___ _____ ____.
__________ ____ ____ ____ ____ _______ ___ ________ _________ _________.
______ __________ ______ ___ _________ _______.
_________ ______ _____ _______ __________ __________ _________.
_____ ________ _________ _________ _______.
_______ _____ ____ _______ ____ ______ _________ __________ _______ ____ _______.
_____ _________ _____ ___ _________ ____ __________ ____ _______ __________.
______ _______ __________ _______ ______ _____ ___ ______ ___ __________ ___ ______.
______ ________ ____ ________ _________ _____ ____ ___ __________ ___.
_________ ________ _________ ________ ___ _______ ____ ___ ___ _______ _______ _____.
________ ___ ______ ______ ________ ________.
_____ ________ __________ _________ ___ ___ ______ _____ _______ _____.
_______ _____ ______ _________ __________ ____.
_____ _______ __________ _________ _____ _______ __________ ____ _______ _______.
_________ ___ _________ _______ ___ _________ _______.
_____ _____ __________ _________ ____ _________ _____ ________ __________ ______.
_____ ___ ______.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★