Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the time complexity of a brute-force closest pair algorithm?
Think about how many pairs need to be checked.
Why do we sort the points before finding the closest pair?
Consider the steps of the divide and conquer method.
What is the efficiency of the closest pair algorithm using divide and conquer?
Think about how the algorithm is structured.
Is it true that the closest pair might not be within the same half when using divide and conquer?
Consider the way boundary pairs are checked.
Given the points (3, 4), (2, 3), (5, 1), (1, 5), and (6, 8), find the closest pair.
Use the distance formula and consider sorting to help with comparisons.
Why does the distance branching reduce the number of comparisons for points in the boundary? Provide a mathematical explanation.
Think about the geometric arrangement of points and their distances.
6 more questions in this section. Enroll free to practise them all.
Enroll free