{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

detail_of_output_sensitive_algo

# detail_of_output_sensitive_algo - Tutorial 2 Tutorial 2...

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Tutorial 2 Tutorial 2 Finding maximal points Detail of an output sensitive algorithm Output sensitive algorithm Output sensitive algorithm Pick the rightmost point of S, denote it as P (It must be the maximal point!) Discard all the points from S that are invalidated by P Output P and discard P from S Repeat the first step until S is empty Step1: Locate rightmost pt Step1: Locate rightmost pt P Step 2: Discard invalid pts Step 2: Discard invalid pts P Reason: If we pick p as maximal point, then all other points in Q3 can’t be maximal Step 3: output and discard Step 3: output and discard P Output P Step 4: Repeat step 1 Step 4: Repeat step 1 ...
View Full Document

{[ snackBarMessage ]}