How to find and print intersections of n given circles in O(n*log(n)) time?
问题 I'm looking for an O(n*logn) algorithm to find and print the intersections of n given circles. Each circle is specified by its center and radius. An O(n 2 ) algorithm consists in checking if the distance between the centers is less than or equal to the sum of the radii (of the two circles being compared). However, I'm looking for a faster one! A similar problem is intersection of line segments. I think even my problem can be solved using line sweep algorithm, but I am unable to figure out how