SlideShare a Scribd company logo
LINEAR PROGRAMMING IN
    COMPUTATIONAL GEOMETRY
•PROBLEM OF MOLDING
•HALF PLANE INTERSECTION SOLUTION
•INCREMENTAL LINEAR PROGRAMMING SOLUTION
•RANDOMIZATION
MANUFACTURING WITH MOLDS
                       a real life problem of computational geometry

What is mold?
    a cavity with same shape as that of object

Restriction
     object must have a horizontal top facet


Castable object
LEMMA
    A polyhedra P can be removed from it’s mold if angle
b/w d and n(f) is at least 90 for each ordinary facet ‘f’ of P
            where d is the direction of translation of object
                     and n(f) is the outward normal of facet f

It leads to the consequence that P can be removed by single
translation if it can be removed by small translations.
If we consider the direction of movement as upward from
        origin then the d and n can be considered as
                      d=(dx, dy,1) &
                      n=(nx, ny, nz).
              Now acc. to Lemma, we have
                   dx nx + dyny+ nz <0
   which is nothing but the eqn. of a half plane in plane
                           Z=1
N facet polyhedra will have n-1 such half planes
   Common intersection of these planes gives rise to the
               region in which the value of
                       dx and dy lies

empty intersection implies object as uncastable

 problem reduces to solving n-1 half plane eqns to get the
                  common intersection
ALGORITHM FOR HALF PLANE INTERSECTION
  INPUT := a set H of half planes in the plane
  OUTPUT := the convex polygonal region C
  ALGORITHM               INTERSECTHALFPLANES(H)
  if card(H) = 1
  then C← the unique half-plane h ∈ H
          ←
  else Split H into sets H1 and H2 of size n/2 and n/2.
  C1 ←INTERSECTHALFPLANES(H1)
  C2 ←INTERSECTHALFPLANES(H2)
  C←INTERSECTCONVEXREGIONS(C1,C2)
Store C as left and right boundary with sorted list of half planes
INTERSECTCONVEXREGIONS(C1,C2)
          USE PLANE SWEEP ALGORITHM
                  ystart <= min(y1,y2)
       where y1 and y2 upper end point of C1 and C2
 at every event point, new edge e having p as upper
            end point appears on boundary

following cases to be tested when e lies on left boundary of C1



                                                        continue
Case 1
Case 2
Case 3
LINEAR PROGRAMMING:
In case of casting problem, however, we don’t need to know
all solutions to the set of linear constraints; just one solution
will do fine. This allows for a faster algorithm, expected time
is linear.

Finding a solution to a set of linear constraints is LINEAR
PROGRAMMING or LINEAR OPTIMIZATION.
BASIC CONSTRUCT OF A LP:
Maximize{Objective function}: c1x1+c2x2+・ ・ ・+cdxd
Subject to {Linear contraints}:
      a1,1x1+・ ・ ・+a1,dxd ≤ b1
      a2,1x1+・ ・ ・+a2,dxd ≤ b2
           ...
       an,1x1+・ ・ ・+an,dxd ≤ bn
Our solution will be the point that maximizes the Objective
Function.

Objective Function can be viewed as a direction c(c1, c2,…, cd )
in the d-dimension plane.

 The set of points satisfying the constraints is called feasible
region else infeasible region.

 Hence our soln. is the point in the feasible region that is
extreme in the direction c.
Linear programming in computational geometry
In case of molding we have n linear constraints in two variables
and we want to find one solution to the set of constraints. We
can do this by taking an arbitrary objective function, and then
solving the linear program defined by the objective function
and the linear constraints.
We use following conventions:
H is the set of n linear constraints i.e, half-planes: h1 , ... , hn
Vector defining objective function: c(cx , cy)
Our goal is to find out point (px , py ) such that cx px +cy py
is max.
Possible case of intersection:
To make sure that we get a unique soln. we have to impose
restrictions on case ii & iii.
Case ii) we add to our linear program two additional
constraints that will guarantee that the linear program is
bounded. For example, if cx > 0 and cy > 0 we add the
constraints px ≤M and py ≤ M, for some large M ∈ R. let these
constraints be m1 & m2 .
Case iii) we take the lexicographically smallest value.
Basis of the algorithm:
 Let 1≤ i≤ n, and let Ci and vi be feasible region & optimal point of
 each step.Then we have
 (i) If vi−1 ∈ hi, then vi = vi−1.
 (ii) If vi−1 ∈ hi, then either Ci = 0 or vi ∈ li, where li is the line
 bounding hi.
Case ii): finding p on li
 It can be reduced to 1-D LP problem of finding p on li that
 maximizes the OF subject to constraints p ∈ Hi-1 .
The interval [ xleft : xright ] is our feasible region and xleft or xright the
optimal soln. .
 It take linear time to calculate this ,i.e: O(n).
ACTUAL ALGORITHM:
Linear programming in computational geometry
RANDOMIZED LINEAR PROGRAMMING:

 Worst case time complexity of Increamental LP is O(n2 ) this
 can be improved if the order of half planes are suitably changed.



 We use a randomize algorithm to get a random sequence of
 these half planes. Finally, we get an expected time of O(n).
Linear programming in computational geometry
Linear programming in computational geometry

More Related Content

PDF
PDF
Multicasting in Linear Deterministic Relay Network by Matrix Completion
PPTX
ICPC Asia::Tokyo 2014 Problem J – Exhibition
PDF
Optimal Budget Allocation: Theoretical Guarantee and Efficient Algorithm
PDF
Regret Minimization in Multi-objective Submodular Function Maximization
PDF
The low-rank basis problem for a matrix subspace
PPTX
ICPC 2015, Tsukuba : Unofficial Commentary
PDF
Pseudo Random Number Generators
Multicasting in Linear Deterministic Relay Network by Matrix Completion
ICPC Asia::Tokyo 2014 Problem J – Exhibition
Optimal Budget Allocation: Theoretical Guarantee and Efficient Algorithm
Regret Minimization in Multi-objective Submodular Function Maximization
The low-rank basis problem for a matrix subspace
ICPC 2015, Tsukuba : Unofficial Commentary
Pseudo Random Number Generators

What's hot (19)

PPTX
Asymptotic Analysis in Data Structure using C
PDF
Absorbing Random Walk Centrality
PDF
Slides to RSA Presentation
PDF
PDF
Convex hull in 3D
PDF
Derivatives Lesson Oct 6
PDF
Random Number Generators 2018
PPTX
Asymptotic notation
PDF
Maximizing Submodular Function over the Integer Lattice
PDF
CAPS_Discipline_Training
PDF
Asymptotic Notation
PPT
asymptotic notations i
PPTX
Asymptotic Notations
PPT
Asymptotic notation
DOCX
PPTX
Cyrus beck line clipping algorithm
PPTX
Asymptotic notation
PDF
Polar Plot
PDF
Second derivative and graphing
Asymptotic Analysis in Data Structure using C
Absorbing Random Walk Centrality
Slides to RSA Presentation
Convex hull in 3D
Derivatives Lesson Oct 6
Random Number Generators 2018
Asymptotic notation
Maximizing Submodular Function over the Integer Lattice
CAPS_Discipline_Training
Asymptotic Notation
asymptotic notations i
Asymptotic Notations
Asymptotic notation
Cyrus beck line clipping algorithm
Asymptotic notation
Polar Plot
Second derivative and graphing
Ad

Viewers also liked (20)

PPTX
Linear programming
PPT
Linear Equations Slide Share Version Exploded[1]
PPTX
Math
PPTX
Chapter 3 linear programming
PPTX
3 linear equations
PPT
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
PPTX
3 2 linear equations and lines
PPTX
PPT on Linear Equations in two variables
PPTX
Linear Programming on Digital Advertising
PPTX
Linear Programming Application
PPT
MATH 10 Week 1 2 linear equations (2)
PDF
Lesson 35: Game Theory and Linear Programming
PPTX
Direct Methods to Solve Linear Equations Systems
PPS
Applications of linear programming
PPTX
Chapter 3. linear equation and linear equalities in one variables
PPT
Linear Programming 1
PPT
Linear Equations Ppt
PPT
Linear Equations and Inequalities in One Variable
PPT
Tbs910 linear programming
PPT
Linear Equations
Linear programming
Linear Equations Slide Share Version Exploded[1]
Math
Chapter 3 linear programming
3 linear equations
Linear Programming and its Usage in Approximation Algorithms for NP Hard Opti...
3 2 linear equations and lines
PPT on Linear Equations in two variables
Linear Programming on Digital Advertising
Linear Programming Application
MATH 10 Week 1 2 linear equations (2)
Lesson 35: Game Theory and Linear Programming
Direct Methods to Solve Linear Equations Systems
Applications of linear programming
Chapter 3. linear equation and linear equalities in one variables
Linear Programming 1
Linear Equations Ppt
Linear Equations and Inequalities in One Variable
Tbs910 linear programming
Linear Equations
Ad

Similar to Linear programming in computational geometry (20)

PDF
Linear programming in computational geometry
PPT
BBM-501-U-II_-_Linear_Programming (1).ppt
PPTX
Linear programming graphical method
PPTX
Graphical Solution in LPP along with graphs and formula
PPTX
LINEAR PROGRAMMING
PDF
Linear algebra application in linear programming
PPT
LP1 as EEM Electrial Engineering Department.ppt
PPTX
Liang- Barsky Algorithm, Polygon clipping & pipeline clipping of polygons
PPTX
Introduction to Linear programing.ORpptx
PPTX
Management Science
PPTX
Linear Programing.pptx
PPTX
CLOSEST PAIR (Final)
PDF
Lecture 7.3 bt
PPTX
Linear Programming- Leacture-16-lp1.pptx
PDF
Lecture - Linear Programming.pdf
PDF
Design and analysis of algorithm chapter 10
PDF
A simple study on computer algorithms by S. M. Risalat Hasan Chowdhury
PPTX
Duality in Linear Programming
PDF
4.Malebo=PPT=Mathematical Programming.pdf
Linear programming in computational geometry
BBM-501-U-II_-_Linear_Programming (1).ppt
Linear programming graphical method
Graphical Solution in LPP along with graphs and formula
LINEAR PROGRAMMING
Linear algebra application in linear programming
LP1 as EEM Electrial Engineering Department.ppt
Liang- Barsky Algorithm, Polygon clipping & pipeline clipping of polygons
Introduction to Linear programing.ORpptx
Management Science
Linear Programing.pptx
CLOSEST PAIR (Final)
Lecture 7.3 bt
Linear Programming- Leacture-16-lp1.pptx
Lecture - Linear Programming.pdf
Design and analysis of algorithm chapter 10
A simple study on computer algorithms by S. M. Risalat Hasan Chowdhury
Duality in Linear Programming
4.Malebo=PPT=Mathematical Programming.pdf

Recently uploaded (20)

PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
master seminar digital applications in india
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Types and Its function , kingdom of life
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Pre independence Education in Inndia.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
01-Introduction-to-Information-Management.pdf
Anesthesia in Laparoscopic Surgery in India
Final Presentation General Medicine 03-08-2024.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Microbial disease of the cardiovascular and lymphatic systems
master seminar digital applications in india
RMMM.pdf make it easy to upload and study
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Basic Mud Logging Guide for educational purpose
Renaissance Architecture: A Journey from Faith to Humanism
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
TR - Agricultural Crops Production NC III.pdf
Complications of Minimal Access Surgery at WLH
Pre independence Education in Inndia.pdf
Institutional Correction lecture only . . .
Sports Quiz easy sports quiz sports quiz
Microbial diseases, their pathogenesis and prophylaxis
01-Introduction-to-Information-Management.pdf

Linear programming in computational geometry

  • 1. LINEAR PROGRAMMING IN COMPUTATIONAL GEOMETRY •PROBLEM OF MOLDING •HALF PLANE INTERSECTION SOLUTION •INCREMENTAL LINEAR PROGRAMMING SOLUTION •RANDOMIZATION
  • 2. MANUFACTURING WITH MOLDS a real life problem of computational geometry What is mold? a cavity with same shape as that of object Restriction object must have a horizontal top facet Castable object
  • 3. LEMMA A polyhedra P can be removed from it’s mold if angle b/w d and n(f) is at least 90 for each ordinary facet ‘f’ of P where d is the direction of translation of object and n(f) is the outward normal of facet f It leads to the consequence that P can be removed by single translation if it can be removed by small translations.
  • 4. If we consider the direction of movement as upward from origin then the d and n can be considered as d=(dx, dy,1) & n=(nx, ny, nz). Now acc. to Lemma, we have dx nx + dyny+ nz <0 which is nothing but the eqn. of a half plane in plane Z=1
  • 5. N facet polyhedra will have n-1 such half planes Common intersection of these planes gives rise to the region in which the value of dx and dy lies empty intersection implies object as uncastable problem reduces to solving n-1 half plane eqns to get the common intersection
  • 6. ALGORITHM FOR HALF PLANE INTERSECTION INPUT := a set H of half planes in the plane OUTPUT := the convex polygonal region C ALGORITHM INTERSECTHALFPLANES(H) if card(H) = 1 then C← the unique half-plane h ∈ H ← else Split H into sets H1 and H2 of size n/2 and n/2. C1 ←INTERSECTHALFPLANES(H1) C2 ←INTERSECTHALFPLANES(H2) C←INTERSECTCONVEXREGIONS(C1,C2) Store C as left and right boundary with sorted list of half planes
  • 7. INTERSECTCONVEXREGIONS(C1,C2) USE PLANE SWEEP ALGORITHM ystart <= min(y1,y2) where y1 and y2 upper end point of C1 and C2 at every event point, new edge e having p as upper end point appears on boundary following cases to be tested when e lies on left boundary of C1 continue
  • 11. LINEAR PROGRAMMING: In case of casting problem, however, we don’t need to know all solutions to the set of linear constraints; just one solution will do fine. This allows for a faster algorithm, expected time is linear. Finding a solution to a set of linear constraints is LINEAR PROGRAMMING or LINEAR OPTIMIZATION.
  • 12. BASIC CONSTRUCT OF A LP: Maximize{Objective function}: c1x1+c2x2+・ ・ ・+cdxd Subject to {Linear contraints}: a1,1x1+・ ・ ・+a1,dxd ≤ b1 a2,1x1+・ ・ ・+a2,dxd ≤ b2 ... an,1x1+・ ・ ・+an,dxd ≤ bn
  • 13. Our solution will be the point that maximizes the Objective Function. Objective Function can be viewed as a direction c(c1, c2,…, cd ) in the d-dimension plane. The set of points satisfying the constraints is called feasible region else infeasible region. Hence our soln. is the point in the feasible region that is extreme in the direction c.
  • 15. In case of molding we have n linear constraints in two variables and we want to find one solution to the set of constraints. We can do this by taking an arbitrary objective function, and then solving the linear program defined by the objective function and the linear constraints. We use following conventions: H is the set of n linear constraints i.e, half-planes: h1 , ... , hn Vector defining objective function: c(cx , cy) Our goal is to find out point (px , py ) such that cx px +cy py is max.
  • 16. Possible case of intersection:
  • 17. To make sure that we get a unique soln. we have to impose restrictions on case ii & iii. Case ii) we add to our linear program two additional constraints that will guarantee that the linear program is bounded. For example, if cx > 0 and cy > 0 we add the constraints px ≤M and py ≤ M, for some large M ∈ R. let these constraints be m1 & m2 . Case iii) we take the lexicographically smallest value.
  • 18. Basis of the algorithm: Let 1≤ i≤ n, and let Ci and vi be feasible region & optimal point of each step.Then we have (i) If vi−1 ∈ hi, then vi = vi−1. (ii) If vi−1 ∈ hi, then either Ci = 0 or vi ∈ li, where li is the line bounding hi.
  • 19. Case ii): finding p on li It can be reduced to 1-D LP problem of finding p on li that maximizes the OF subject to constraints p ∈ Hi-1 .
  • 20. The interval [ xleft : xright ] is our feasible region and xleft or xright the optimal soln. . It take linear time to calculate this ,i.e: O(n).
  • 23. RANDOMIZED LINEAR PROGRAMMING: Worst case time complexity of Increamental LP is O(n2 ) this can be improved if the order of half planes are suitably changed. We use a randomize algorithm to get a random sequence of these half planes. Finally, we get an expected time of O(n).