Implement the r-tree by using the existing libraries

Assignment Help Python Programming
Reference no: EM132371918

This is an individual coding assignment. The objective is to implement the R-tree. Each submission will be graded based on correctness. The rest of the document explains the details.

How Your Submission Will Be Tested:
[Dataset]: You will be given a dataset which contains 2D points. The dataset will be provided in a text file as the following format:

n
id 1 x 1 y 1
id 2 x 2 y 2
...
id n x n y n

Specifically, the first 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.

[Range Query]: You will be given a set of 100 range queries in a text file 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 specifies a query whose rectangle is [x, x′] [y, y′]. Then, we will measure its query efficiency as follows.
You should output to a disk file:

Firstly, your program should display the time of answering queries by reading the entire dataset sequentially. This time serves as the sequential-scan benchmark to be compared with the cost of your query algorithms that leverage the R-tree.
Secondly, display the number of points returned by each query-note: we need only the number of points retrieved , instead of the details of those points.
Thirdly, display 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).

[Programming Language]: Python, Java, C++ (including variants like C, C#, ...), or any other

language approved by the instructor. You can implement the R-tree by using the existing libraries provided in the programming language of your choice (i.e., some standard libraries or the libraries for R-Tree).

[Deliverables]: Your submission includes the following components:

1. Source Code: The code you have developed yourself. Make sure your code can be run in the standard general programming environment.
2. Report: Your report should include the following:
• A brief description of the main functions in your source code;
A clear specification of the requirements for executing your code such as, OS environ- ment, placement of input files, any input parameters, etc.
3. Zip all your code and report into a single file, and name the file in the following format:
yourstudentid surname.zip.

Marking: Your total mark earned for this assignment is based on:

• [Queries: 60 marks]
- Correctness: 50 marks.
[Sequential-Scan Based Method (10 marks)]: If your program correctly an- swers m (out of 100) queries by reading the entire dataset (reading all the data points) sequentially, you get 10 • (m/100) marks for this part.
∗ [R-Tree Based Method (40 marks)]: If your program correctly answers m (out of 100) queries by searching the R-Tree, you get 40 • (m/100) marks for this part.
- Efficiency: 10 marks. If the average query time is at least 5 times faster than sequential scan, you get 10 marks for this part. If at least 2 times faster (but less than 5 times), you get 5 marks. If less than 2 times faster, no marks.
• [The Report: 40 marks]
- Function Description: 30 marks. If your report includes a clear description of all the functions in your source code, you get 30 marks. If only part of your functions is introduced, you will be given the marks based on the proportion of the correct answers.

- Requirement Description: 10 marks. If your report includes a clear description of the requirements for executing your code such as, OS environment, placement of input files, any input parameters, etc, and your report includes the screenshots of the run- ning results (e.g., the average execution time of both sequential-scan and R-Tree based methods, etc.), you get 10 marks.

• [Bonus: 10 marks]
- Implementing the R-Tree by Using Standard Libraries Only (5 marks). S- tudents are encouraged to implement the R-Tree by using standard libraries provided by the program languages rather than using the existing R-Tree libraries. If you can correctly implement the R-Tree without the help of the existing R-Tree libraries, you get 5 marks as the bonus.

- Analysing the Working of R-Tree: (5 marks). In addition to coding, students are encouraged to provide a high-quality report that contains a detailed analysis of the working of R-Tree. You need to select no less than 10 data points from the given dataset, and one query from the given queries. Then, if you can clearly and correctly analyse the process of the R-Tree construction and the query process (the search should traverse

several nodes of the tree, and during the construction of the R-Tree, there should be an overflow and a node splitting), you get 5 marks as the bonus.

• [Note:] Your final grade=[Queries]+[The Report]+[Bonus]. If the sum of the three items is greater than 100, you get the full marks, say 100 (i.e., min{[Queries]+[The Report]+[Bonus], 100}).

Reference no: EM132371918

Questions Cloud

Find out the difference in response between years : You need to find out The most common response for each item on every academic year and Difference in response between years.
Discuss Vision and Mission Development for Enterprises : Summarise the given article - The Significance of Vision and Mission Development for Enterprises in Slovak Republic
Construct a histogram for both types of restaurants : HA1011 Applied Quantitative Methods-Holmes Institute-Australia-Construct a frequency distribution for both type of restaurants using 10 classes.
Discuss the challenges for accounting profession : Federation University - BUACC3714 Advanced Management Accounting Assignment. Discuss the challenges for accounting profession
Implement the r-tree by using the existing libraries : ITEC874 - Big Data Technologies - Macquarie University - You can implement the R-tree by using the existing libraries provided in the programming language
Prepare the business combination valuation entries : Corporate Accounting Assignment - Prepare the business combination valuation entries and pre-acquisition entry at acquisition date
Give characteristics of isoquant : Give characteristics of isoquant (16) Using Harvard refencing system
What are the key business processes for gracious industries : HI5019 Strategic Information Systems for Business and Enterprise-Holmes Institute-Australia-What are the key business processes for Gracious Industries?
Produce an appropriate project management plan : Establish your aims and objectives for the project. Outline objectives and timeframes based on the scenario set by your tutor - Produce an appropriate project

Reviews

len2371918

9/17/2019 2:42:17 AM

Please go through the Assignment description. All the supporting files are attached in zip file. Let me know the quote. Please note that assignment must be completed with all points that are mentioned in Assignment description . The marking scheme is also mentioned their.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd