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 the brute force approach for finding the closest pair of points?
Consider how many comparisons you're making with n points.
Which formula is used to calculate the distance between two points in a 2D plane?
Think about the Pythagorean theorem.
What is the main focus of the closest pair of points algorithm?
Think about the problem definition.
The time complexity of the divide and conquer algorithm for finding the closest pair of points is:
Consider how sorting contributes to the complexity.
Given a set of ten points, describe the steps you would take to implement the divide and conquer algorithm to find the closest pair.
Work through each step patiently.
How does the existence of multiple points within a zone affect the accuracy of the closest pair distance?
Consider the relationship across the dividing line.
5 more questions in this section. Enroll free to practise them all.
Enroll free