Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between quadratic split and linear split

I am trying to understand how r-tree works, and saw that there are two types of splits: quadratic and linear.

What are actually the differences between linear and quadratic? and in which case one would be preferred over the other?

like image 678
Dejell Avatar asked May 14 '26 16:05

Dejell


2 Answers

The original R-Tree paper describes the differences between PickSeeds and LinearPickSeeds in sections 3.5.2 and 3.5.3, and the charts in section 4 show the performance differences between the two algorithms. Note that figure 4.2 uses an exponential scale for the Y-axis.

http://www.cs.bgu.ac.il/~atdb082/wiki.files/paper6.pdf

I would personally use LinearPickSeeds for cases where the R-Tree has high "churn" and memory usage is not critical, and QuadraticPickSeeds for cases where the R-Tree is relatively static or in a limited memory environment. But that's just a rule of thumb; I don't have benchmarks to back that up.

like image 140
Russ Weeks Avatar answered May 17 '26 15:05

Russ Weeks


Both are heuristics to find small area split.

In quadratic you choose two objects that create as much empty space as possible. In linear you choose two objects that are farthest apart.

Quadratic provides a bit better quality of split. However for many practical purposes linear is as simple, fast and good as quadratic.

like image 23
Mukul Joshi Avatar answered May 17 '26 14:05

Mukul Joshi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!