Analyze the show closest-pair works for manhattan distance.
Examples
Input:"test_input_1"
Output:"output_1"
Input:"test_input_2"
Output:"output_2"
Hints
Consider how Manhattan distance can be transformed into a problem solvable using standard Euclidean distance techniques.
Explore the use of a sweep line algorithm combined with a balanced binary search tree to efficiently track and query candidate pairs.
Investigate the application of fractional cascading to reduce the time complexity of merging results from subproblems in the divide-and-conquer approach.
Show closest-pair works for Manhattan distance
Analyze the show closest-pair works for manhattan distance.