Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task : Skyline Search: Dataset: There are three datasets city 1 , city 2 , and city 3 each representing homes in the city. These

Task : Skyline Search:
Dataset: There are three datasetscity1, city2, and city3each representing homes in
the city. These datasets contain 2D points and are stored in text files formatted as follows:
id_1 x_1 y_1
id_2 x_2 y_2
...
id_n x_n y_n
Each line in the datasets represents a home, with x indicating the cost of the home (for example, $500,000) and y representing its size (for example, 200 square meters). The goal is to apply the Skyline Search algorithm to find homes that provide the optimal balance of size and cost. This method helps to filter out properties that are either too costly or too small in comparison to other available options.
Program Design:
Select ONE dataset (city1, city2, or city3).
Implement the following algorithms to assist users in choosing the ideal home based
on two key criteria: cost and size.
1. Sequential Scan Based Method: Identify the skyline by sequentially evaluating whether each node is dominated by any other nodes.
2. Branch and Bound Skyline (BBS) Algorithm: Construct an R-tree for the selected dataset. Implement the BBS algorithm with the R-tree to identify the skyline.
3. BBS with Divide-and-Conquer: Firstly, divide the dataset into two subspaces (based on X dimension or Y dimension), then construct an R-tree for each subspace. Implement the BBS algorithm to identify the skyline in each subspace. Finally, obtain the skyline for the entire space through 1D dominance screening method.
Output: For each algorithm (Sequential Scan, BBs Algorithm, and BBs with Divide-and-Conquer), display and output the following information into a single txt file:
. The skyline results for the selected dataset, i.e., sequentially output each points ID, x-value, and y-value.
. The execution time taken to find the skyline for the selected dataset.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

love of humour, often as a device to lighten the occasion;

Answered: 1 week ago

Question

orderliness, patience and seeing a task through;

Answered: 1 week ago

Question

well defined status and roles (class distinctions);

Answered: 1 week ago