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 9173425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:35:13+00:00 2026-06-17T16:35:13+00:00

I was reading through this implementation of the R* Tree , and I noticed

  • 0

I was reading through this implementation of the R* Tree, and I noticed that they are calculating overlap differently from how the paper defines it.

In the paper, overlap is defined as such:

For a given node/rect k, compute the sum of area of the intersection between k and each sibling of k (not including k).

Overlap enlargement is then the delta of this value and what the overlap of the node k is if an item r is added to k.

Something like this:

childOverlapEnlargement(Node child, item r)
{
    childEnlarged = child.union(r);
    sum = 0;
    for(each sibling s of child which isn't node)
    {
        sum += area(childEnlarged.intersect(s)) - area(child.intersect(s));
    }
    return sum;
}

In the other implementation, they sort by the intersection area of a given node with the item being inserted. Something like this:

childOverlapEnlargement(Node node, item r)
{
    return area(node.intersect(r));
}

Obviously their implementation is computationally less intensive than the paper’s definition. However, I can’t find any obvious logic why the two computations should be equal.

So my questions are:

  1. Do the two computations always end up with the same subtrees being picked? Why?
  2. If they do result in different subtrees being picked, are the results better or close to as good as the paper’s definition? Or was the choice made in error?

edit: re-read over their implementation and I realized they weren’t comparing the intersection of two siblings, but the intersection of each potential leaf and the item being inserted. Strangely enough, they’re picking the sibling which overlaps the least with the item being inserted. Wouldn’t you want to insert into the node which overlaps the most with the item being inserted?

  • 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-06-17T16:35:15+00:00Added an answer on June 17, 2026 at 4:35 pm

    Maybe the implementation you are looking at has bugs or is incorrect. Nobody is perfect.

    Note that the R*-tree tries to minimize overlap enlargement, not overlap itself.

    Some overlap will likely be unavoidable. If there already is overlap, you cannot expect this to decreate when inserting additional rectangles. But you can try to at least not increase the amount of overlap.

    As for performance considerations, check whether you need to actually compute the intersection rectangles. Try to instead of computing area(intersection()) to do a function intersectionSize(). This does make a difference. For example, if A.maxX = 1 and B.minX = 2 I can immediately give the intersection size of 0, without looking at any of the other dimensions.

    Avoid eagerly precomputing all intersections etc. that you could need. Instead, compute only those that you actually need. Profile your code, and see if you can optimize the critical codepaths. There usually are some low hanging fruit there.

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

Sidebar

Related Questions

Reading through this excellent article about safe construction techniques by Brain Goetz, I got
I'm currently reading through this jquery masking plugin to try and understand how it
I have been reading through this wonderful website regarding the recommended Python IDEs and
I was reading through this thread: Hidden Features of JavaScript? and found this post:
Ok, I was reading through this entry in the FQA dealing about the issue
I've been reading through regex and I thought this would work but it doesn't
Can Any one help me reading this XML and Looping through <MedicationDispensed> I get
Reading through some of the questions here, the general concensus seems to be that
Reading through the SendAsync , BeginAsync method illustrations of Socket s, I realized that
I've been reading through an implementation of a List (and its node) using classes

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.