Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you are given a set S of n two-dimensional points P1, P2, ..., Pn in an arbitrary order (i.e., neither x-sorted nor y-sorted).

  Suppose you are given a set S of n two-dimensional points P1, P2,..., Pn in an arbitrary order (i.e., neither 

Suppose you are given a set S of n two-dimensional points P1, P2, ..., Pn in an arbitrary order (i.e., neither x-sorted nor y-sorted). Let x, and y, denote ther and (respectively) y coordinate of point p, and assume that all coordinates are positive. No two points of S have same x coordinate, or the same y coordinate (i.e., i j implies tij and yi y). Point p; is said to be dominant if no other point p; of S has both ; > x; and yj > yi. Let Dom (S) be the subset of S that contains only its dominant points. For example, if S consists of the 5 points (3, 5), (2,3), (4,4), (6, 1), (1,2) then Dom (S) would consist of points (3,5), (4,4), (6, 1) 1. Explain how, given S as input, Dom(S) can be computed with a single run of the skyline algorithm described in slide set 4. Make sure you explain what input is given to the skyline algorithm (what are the buildings?) and how its output is used to obtain Dom(S). Note that the skyline algorithm does not require that buildings have distinct l, or distinct ri, or distinct hi. Give a brief proof of correctness of your solution. Note. You do not need to modify the internals of the skyline algorithm, it is enough to provide it with a judiciously chosen input, and to make use of the corresponding output. 2. Explain how, if S was given in x-sorted order, a single scan of S can be used to produce Dom (S) in O(n) time. Give a brief proof of correctness of your solution.

Step by Step Solution

3.45 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

SOLUTION 1 Solution using the skyline algorithm Given a set S of n twodimensional points in arbitrary order we can use the skyline algorithm to find the dominant points in On time The idea is to treat ... 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_2

Step: 3

blur-text-image_3

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

Introduction to Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st edition

321321367, 978-0321321367

More Books

Students also viewed these Programming questions