Simple algorithm: Try out all pairs of line segments. → Takes O(n2) time ... All intersections to the left of sweep line l have been reported.
確定! 回上一頁