R-tree

This is an individual coding assignment. The objective is to implement the R-tree. Each submission
will be graded based on correctness and eciency. The rest of the document explains the details.
How Your Submission Will Be Tested: You will be given a dataset which contains 2D points.
The dataset will be provided in a text le as the following format:
n
id 1 x 1 y 1
id 2 x 2 y 2

id n x n y n
Speci cally, the rst line gives the number of points in the dataset. Then, every subsequent line
gives a point’s id, x-, and y-coordinates.
Your program should build an R-tree in memory from the dataset. Then, we will measure its query
eciency as follows.
First, your program should display the time of reading the entire dataset once. This time
serves as the sequential-scan benchmark to be compared with the cost of your query
algorithms that leverage the R-tree.
[Range Query Testing] You will be given a set of 100 range queries in a text le whose format
is:
x 1 x’ 1 y 1 y’ 1
x 2 x’ 2 y 2 y’ 2

x 100 x’ 100 y 100 y’ 100
That is, each line speci es a query whose rectangle is [x; x0]  [y; y0]. You should output:
{ to a disk le the number of points returned by each query-note: we need only the
number of points retrieved, instead of the details of those points.
{ the total running time of answering all the 100 queries, and the average time of each
query (i.e., divide the total running time by 100).

(以上发布均为题目,为保证客户隐私,源代码绝不外泄!!)

程序代写代做C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: [email protected]  微信:dmxyzl003 工作时间:全年无休-早上8点到凌晨3点


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

发表评论