Suppose you are given a set S of n two-dimensional points P1, P2, ..., Pn in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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 ... View the full answer
Related Book For
Introduction to Data Mining
ISBN: 978-0321321367
1st edition
Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar
Posted Date:
Students also viewed these programming questions
-
Suppose, unfortunately, your mathematics and economics professors have decided to give tests two days from now and you can spend a total of only 12 hours studying for both exams. After some thought,...
-
The adjusted trial balances of Rosa Corporation at August 31, 2014, and August 31, 2013, include these amounts (in millions): Rosa completed these transactions (in millions) during the year ended...
-
A 51.5-kg swimmer with an initial speed of 1.25 m/s decides to coast until she comes to rest. If she slows with constant acceleration and stops after coasting 2.20 m, what was the force exerted on...
-
Some consumers dislike ads that show starving children in Africa, because it makes them feel negative emotions such as sadness and guilt. What are your feelings on this type of promotional strategy?...
-
A off-axis tensile test (Figure 2.14) of a unidirectional AS/3501 carbon/epoxy specimen is conducted with \(\theta=45^{\circ}\) and the applied stress is found to be \(\sigma_{x}=15.44...
-
Because of a monumental error committed by its purchasing department, Corner Grocery ordered 5,000 heads of lettuce rather than the 1,000 that should have been ordered. The company paid $0.65 per...
-
A person who proves that at the time of the commission of the offense, that the person as a result of a severe mental disease or defect did not know the wrongfulness of his actions is?
-
Richardson Ski Racing (RSR) sells equipment needed for downhill ski racing. One of RSRs products is fencing used on downhill courses. The fence product comes in 150-foot rolls and sells for $215 per...
-
When you purchase a 1.5V D-cell battery you expect the battery to operate at 1.5V. However, if you place a voltmeter across your new battery you will probably find that its original voltage is...
-
Declare and assign these variables as shown (all your code must appear in the body of the main method): String firstName = "Blueberry"; String lastName = "Strawberry"; In addition, declare and...
-
How do you define market opportunity in a business plan?
-
Six month ago, your multi-system organization implemented computer-assisted coding at one of its campuses. Before you roll it out another facility, you need to find out how the process is going....
-
Court Casuals has the following beginning balances in its stockholders' equity accounts on January 1, 2024: Common Stock, $100,000; Additional Paid-in Capital, $4,000,000; and Retained Earnings,...
-
"You can't label people, but you can label products" Use the following questions to spark your creativity, but you are not required to answer them: Has consumerism influenced the way people are...
-
The pressure of water is increased from 50 kPa to 800 kPa by an adiabatic pump. If the efficiency of the pump is 80% and the water flow rate is 8 kg/s, what is the maximum rise of temperature of...
-
A city maintains a solid waste landfill that was 12 percent filled at the end of Year 1 and 26 percent filled at the end of Year 2. During those periods, the government estimated that total closure...
-
A few months later, you are again approached by the same marketing director as in Exercise 3. This time, he has devised a better approach to measure the extent to which a customer prefers one product...
-
Describe how you would create visualizations to display information that describes the following types of systems. Be sure to address the following issues: Representation. How will you map objects,...
-
Consider the interestingness measure, M = P(B|A) P(B)/1 P(B) , for an association rule A B. (a) What is the range of this measure? When does the measure attain its maximum and minimum values? (b)...
-
Youve conducted a study to determine how the number of calories a person consumes in a day correlates with time spent in vigorous bicycling. Your sample consisted of ten women cyclists, all of...
-
Every financial advisor has a strategy for predicting the direction of the stock market. Most focus on fundamental economic data, such as interest rates and corporate profits. But an alternative...
-
State whether the prediction (or implied prediction) should be trusted in each of the following cases, and explain why or why not. a. Youve found a best-fit line for a correlation between the number...
Study smarter with the SolutionInn App