Question

Let L be a set of n lines in the plane. Give an O(nlogn) time algorithm...

Let L be a set of n lines in the plane. Give an O(nlogn) time algorithm to compute an axis-parallel rectangle that contains all the intersection points of those n lines in the plane.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

This is an example of Orthogonal Range Searching. The crucial observation is that any axis-parallel rectangle is uniquely identified by two of its opposing corners.Without loss of generality, we assume that the se corners are the north east and south west corners respectively. Assume that the rectangles are labeled as:A1; A2; : : : ; An. Let(six; siy)and(nix; niy) denote the southwest and northeast corners of rectangle Ai respectively .We store each rectangle in a 4 Drangetree.As per Lemma(5:9), this can be done using O(n¢log3n) storage such that the query timeisO(log4n+k), where k is the number of reported answers.

Add a comment
Know the answer?
Add Answer to:
Let L be a set of n lines in the plane. Give an O(nlogn) time algorithm...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT