Consider n chords on a circle, each defined by its endpoints. Describe and O(nlg n) time algorithm
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider n chords on a circle, each defined by its endpoints. Describe and O(nlg n) time algorithm for determining the number of pairs of chords that intersect inside the circle. (For example, if the n chords are all diameters that meet at the center, then the correct answer is ). Assume the no two chords share an endpoint.
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: