Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question in Computational Geometry 6.3: In this chapter we have looked at the point location problem with preprocessing. We have not looked at the single

Question in Computational Geometry 6.3:

In this chapter we have looked at the point location problem with preprocessing. We have not looked at the single shot problem, where the subdivision and the query point are given at the same time, and we have no special preprocessing to speed up the searches. In this exercise and some of the following ones, we have a look at such problems.

Given a simple polygon P with n vertices and a query point q, here is an algorithm to determine whether q lies in P. Consider the ray := {(qx +,qy) : > 0} (this is the horizontal ray starting in q and going rightwards). Determine for every edge e of P whether it intersects . If the number of intersecting edges is odd, then q P, otherwise q not belong to P.

Prove that this algorithm is correct, and explain how to deal with degenerate cases. (One degenerate case is when intersects an endpoint of an edge. Are there other special cases?) What is the running time of the algorithm?

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_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

Global Analysis On Foliated Spaces

Authors: Calvin C Moore ,Claude L Schochet

2nd Edition

0521613051, 978-0521613057

More Books

Students also viewed these Mathematics questions