Time Complexity 355

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

31 Terms

1
New cards
Compute the Convex Hull of `n` arbitrary points in 2D (Worst-case optimal)

O(n log n)

- "Same as sorting." (Graham Scan, Divide-and-Conquer)

2
New cards
Compute the Convex Hull of a **Simple Polygon** with `n` vertices.

O(n)

- "Melkman's Algorithm" (Uses the "simple order" to avoid sorting).

3
New cards
Triangulate a **Simple Polygon** with `n` vertices (Theoretically best).

O(n)

- "Chazelle's Algorithm" (Treat as a black-box fact).

4
New cards
Triangulate *any* Planar Straight-Line Graph (PSLG) with `n` vertices (e.g., a polygon with holes).

O(n log n)

- "Plane Sweep" (Decomposes into monotone mountains).

5
New cards
Triangulate a **Monotone Mountain** with `n` vertices.

O(n)

- "Simple Ear Clipping" (No need to search for ears).

6
New cards
The `Triangulate` (Ear Clipping) algorithm from the textbook (Worst-case).

O(n²)

- "Repeatedly scanning for ears" (`n` ears to find, `O(n)` scan for each).

7
New cards
Gift-Wrapping (Jarvis March) algorithm for Convex Hull.

O(nh)

- "Output-Sensitive" (`h` steps, `O(n)` work per step).

8
New cards
QuickHull algorithm for Convex Hull (Worst-case).

O(nh) or O(n²)

- "Output-Sensitive, but can be bad" (like Quicksort).

9
New cards
Compute the number of reflex vertices in a simple `n`-gon.

O(n)

- "Single pass" (One `Left` test per vertex).

10
New cards
The Hertel-Mehlhorn algorithm for convex partitioning.

O(n)

- "Linear time 4-approximation" (Starts with an O(n) triangulation).

11
New cards
Given `n` points, determine if the Convex Hull is a hexagon (6 vertices).

O(n)

- "Run Gift-Wrapping for a constant number of steps".

12
New cards
"Ultimate" output-sensitive Convex Hull algorithm (Chan's algorithm).

O(n log h)

- "The best possible bound" (Know it exist

13
New cards
Geometric Primitive (e.g., Left, Area2, InCone)
O(1)
14
New cards
"Slow" Convex Hull (by testing all pairs for edges)
O(n³)
15
New cards
Basic Incremental Convex Hull (sorted by x-coordinate)
O(n²)
16
New cards
Trapezoidalization of a PSLG via Plane Sweep
O(n log n)
17
New cards
3-coloring the vertices of a triangulated n-gon
O(n)
18
New cards
Computing the Kernel of a simple polygon
O(n)
19
New cards
Computing g(P) (Point Guard Number) for a simple polygon
NP-hard
20
New cards
Computing w(P) (Witness Number) for a simple polygon
Polynomial T
21
New cards
Graham Scan
O(n log n)
22
New cards
Melkman's Algorithm
O(n)
23
New cards
Chazelle's Triangulation
O(n)
24
New cards
Plane Sweep Triangulation (for PSLG)
O(n log n)
25
New cards
Monotone Mountain Triangulation
O(n)
26
New cards
Textbook `Triangulate` (Ear Clipping)
O(n²)
27
New cards
Gift-Wrapping (Jarvis March)
O(nh)
28
New cards
QuickHull
O(nh)
29
New cards
Hertel-Mehlhorn Algorithm
O(n)
30
New cards
Chan's Convex Hull Algorithm
O(n log h)
31
New cards
Divide-and-Conquer Convex Hull
O(n log

Explore top flashcards