1
Yaron Ostrovsky-Berman, Computational Geometry, Spring 2005
1
Computational Geometry
Exercise session #8: Incremental construction & Arrangements
- Linear Programming
- Incremental algorithm
- Randomized algorithm
- Smallest enclosing disc problem
- Arrangements & Duality
- The minimum area triangle problem
- Homework 5 handed
Yaron Ostrovsky-Berman, Computational Geometry, Spring 2005
2
Linear programming
- Problem: maximize cTx s.t. Ax ≤ b
c = (c1,…,cd)T x = (x1,…,xd)T Objective function: f(x) = cTx Anxd – coefficient matrix with entries aij constraint equations: Ax ≤ b Half-space defined by ith constraint hi: Aix ≤ bi Feasible region – convex region defined by constraints.
- Linear programming in low dimensions is efficiently
solved with geometric methods.
Yaron Ostrovsky-Berman, Computational Geometry, Spring 2005
3
Incremental algorithm
- Feasible region of solution can be computed in
O(nlogn) time with half-plane intersection algorithm.
- Observation: no need to have all region to find
- ptimal solution.
- Can we break the Ω(nlogn) bound?
- Idea: solve the problem incrementally,
computing the solution to the first i constraints in the ith step.
Yaron Ostrovsky-Berman, Computational Geometry, Spring 2005
4
Bounded solutions
- Four cases for linear program solution:
Infeasible. Unbounded solution. Bounded solution, not unique. Bounded unique solution.
- To ensure incremental approach works, we
need a unique solution at each step:
Add artificial constraints that bound solution. Choose lexicographically smallest solution when not unique.
Yaron Ostrovsky-Berman, Computational Geometry, Spring 2005
5
Incremental solution properties
- Let Ci be the feasible region at the ith step, then
C0⊇C1⊇…⊇Cn
- Observation: solution is monotonically non-
increasing.
- Let vi be the solution at the ith step, then:
If vi-1∈hi, then vi = vi-1. If vi-1∉hi , then either Ci = ∅ or vi∈li where li is the line bounding hi.
- Proof:
first case, by inclusion of feasibility regions. Second case, by contradiction: solution increases along segment [vivi-1]. Intersection point of [vi-1vi] with hi contradicts the optimality of vi.
Yaron Ostrovsky-Berman, Computational Geometry, Spring 2005
6
Reduction to one-dimension
- When vi-1∉hi , find optimal solution on li.
- Search according to x-coordinate of p∈li (y-coord if li