Algorithm for closest pair problem using brute force. UNIT II BRUTE FORCE AND DIVIDE-AND-CONQUER 2.