Given two sets of polygons P_1={s_1,...,s_m} and P_2={s_m+1,...,s_n} with total number of n segments, the previous and next segment on it's polygon can be determined in O(1). Describe a scan-line algorithm that computes all points of P_1 cap P_2 in O(n).

schlichs6d

schlichs6d

Answered question

2022-08-11

Scan line algorithm for intersecting polygons
Given two sets of polygons P 1 = { s 1 , . . . , s m } and P 2 = { s m + 1 , . . . , s n } with total number of n segments, the previous and next segment on it's polygon can be determined in O(1). Describe a scan-line algorithm that computes all points of P 1 P 2 in O(n).

Answer & Explanation

Bridget Vang

Bridget Vang

Beginner2022-08-12Added 11 answers

Explanation:
This is not possible, as the number of intersections can be O ( n 2 )

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school geometry

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?