Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4548304
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:12:13+00:00 2026-05-21T16:12:13+00:00

I am looking at the wikipedia entry for how to solve this. It lists

  • 0

I am looking at the wikipedia entry for how to solve this. It lists five steps

1.Sort points along the x-coordinate

2.Split the set of points into two equal-sized subsets by a vertical line x = xmid

3.Solve the problem recursively in the left and right subsets. This will give the left-side and right-side minimal distances dLmin and dRmin respectively.

4.Find the minimal distance dLRmin among the pair of points in which one point lies on the left of the dividing vertical and the second point lies to the right.

5.The final answer is the minimum among dLmin, dRmin, and dLRmin.

The fourth step I am having trouble understanding. How do I choose what point to the left of the line to compare to a point right of the line. I know I am not supposed to compare all points, but I am unclear about how to choose points to compare. Please do not send me a link, I have searched, gone to numerous links, and have not found an explanation that helps me understand step 4.

Thanks

Aaron

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T16:12:14+00:00Added an answer on May 21, 2026 at 4:12 pm

    The answer to your question was in the next paragraph of the wikipedia article:

    It turns out that step 4 may be
    accomplished in linear time. Again, a
    naive approach would require the
    calculation of distances for all
    left-right pairs, i.e., in quadratic
    time. The key observation is based on
    the following sparsity property of the
    point set. We already know that the
    closest pair of points is no further
    apart than dist = min(dLmin,dRmin).
    Therefore for each point p of the left
    of the dividing line we have to
    compare the distances to the points
    that lie in the rectangle of
    dimensions (dist, 2 * dist) to the
    right of the dividing line, as shown
    in the figure. And what is more, this
    rectangle can contain at most 6 points
    with pairwise distances at least
    dRmin. Therefore it is sufficient to
    compute at most 6n left-right
    distances in step 4. The recurrence
    relation for the number of steps can
    be written as T(n) = 2T(n / 2) + O(n),
    which we can solve using the master
    theorem to get O(n log n).

    I don’t think I can put it much clearer than they already have, but do you have any specific questions about this step of the algorithm?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking into Java reflections. This is an example from Wikipedia http://en.wikipedia.org/wiki/Reflection_(computer_programming ):
I was looking at this on the Wikipedia Page and was wondering if anyone
I'm looking into using the UTM coordinate system with geodjango. And I can't figure
I was looking at this wikipedia article, and couldn't understand how the hell that
The wikipedia page on TwoFish points at this reference implementation in C (and code
I was looking at the Wikipedia entry for Prim's algorithm and I noticed that
I'm looking at this wikipedia article: http://en.wikipedia.org/wiki/Day_length http://en.wikipedia.org/wiki/Sunrise_equation Anybody had experience calculating Sunrise/Sunset times
I am looking for the XSD schema of RSS. Via Wikipedia I have found
I still have issues reading UML diagrams. Just looking at the Builder pattern http://en.wikipedia.org/wiki/Builder_pattern
Looking to do a bit of refactoring... Using NHibernate I have this query currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.