Question: Implement a city database using the PR quadtree. Each database record contains the name of the city (a string of arbitrary length) and the coordinates
Implement a city database using the PR quadtree. Each database record contains the name of the city (a string of arbitrary length) and the coordinates of the city expressed as integer x- and y-coordinates. Your database should allow records to be inserted, deleted by name or coordinate, and searched by name or coordinate. You should also support region queries, that is, a request to print all records within a given distance of a specified point.
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
This question asks for the implementation of the database using the PR Point Region Quadtree data structure with the following operations 1 Insertion 2 Deletion by name or coordinates 3 Searching by n... View full answer
Get step-by-step solutions from verified subject matter experts
