Curve Simplification under the L 2 -Norm Ben Berg Advisor: Pankaj Agarwal Mentor: Swaminathan Sankararaman.

Slides:



Advertisements
Similar presentations
Chapter 4 Partition I. Covering and Dominating.
Advertisements

L1 sparse reconstruction of sharp point set surfaces
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Fast Algorithms For Hierarchical Range Histogram Constructions
Approximations of points and polygonal chains
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Introduction to Algorithms
Complexity ©D Moshkovitz 1 Approximation Algorithms Is Close Enough Good Enough?
How should we define corner points? Under any reasonable definition, point x should be considered a corner point x What is a corner point?
A (1+  )-Approximation Algorithm for 2-Line-Center P.K. Agarwal, C.M. Procopiuc, K.R. Varadarajan Computational Geometry 2003.
Exact or stable image\signal reconstruction from incomplete information Project guide: Dr. Pradeep Sen UNM (Abq) Submitted by: Nitesh Agarwal IIT Roorkee.
Computing the Fréchet Distance Between Folded Polygons
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
Linear Programming.
Data Transmission and Base Station Placement for Optimizing Network Lifetime. E. Arkin, V. Polishchuk, A. Efrat, S. Ramasubramanian,V. PolishchukA. EfratS.
All Pairs Shortest Paths and Floyd-Warshall Algorithm CLRS 25.2
Announcements Final Exam May 16 th, 8 am (not my idea). Practice quiz handout 5/8. Review session: think about good times. PS5: For challenge problems,
Prune-and-search Strategy
Detecting and Tracking Moving Objects for Video Surveillance Isaac Cohen and Gerard Medioni University of Southern California.
A general approximation technique for constrained forest problems Michael X. Goemans & David P. Williamson Presented by: Yonatan Elhanani & Yuval Cohen.
reconstruction process, RANSAC, primitive shapes, alpha-shapes
Tirgul 13. Unweighted Graphs Wishful Thinking – you decide to go to work on your sun-tan in ‘ Hatzuk ’ beach in Tel-Aviv. Therefore, you take your swimming.
Foundations of Privacy Lecture 11 Lecturer: Moni Naor.
Orthogonality and Least Squares
(work appeared in SODA 10’) Yuk Hei Chan (Tom)
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Approximation Algorithms
Protein Structure Alignment by Incremental Combinatorial Extension (CE) of the Optimal Path Ilya N. Shindyalov, Philip E. Bourne.
Physics 114: Lecture 15 Probability Tests & Linear Fitting Dale E. Gary NJIT Physics Department.
19.5 Numeric Integration and Differentiation
Integrals 5.
V. V. Vazirani. Approximation Algorithms Chapters 3 & 22
Chapter 13 Statistics © 2008 Pearson Addison-Wesley. All rights reserved.
Graph Theory Topics to be covered:
Design Techniques for Approximation Algorithms and Approximation Classes.
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 13-6 Regression and Correlation.
© The McGraw-Hill Companies, Inc., Chapter 6 Prune-and-Search Strategy.
Functions of Several Variables Copyright © Cengage Learning. All rights reserved.
Curve-Fitting Regression
Nonoverlap of the Star Unfolding Boris Aronov and Joseph O’Rourke, 1991 A Summary by Brendan Lucier, 2004.
Combinatorial Optimization Problems in Computational Biology Ion Mandoiu CSE Department.
1 Prune-and-Search Method 2012/10/30. A simple example: Binary search sorted sequence : (search 9) step 1  step 2  step 3  Binary search.
BLAST: Basic Local Alignment Search Tool Altschul et al. J. Mol Bio CS 466 Saurabh Sinha.
Prof. Swarat Chaudhuri COMP 482: Design and Analysis of Algorithms Spring 2012 Lecture 16.
Practical Considerations When t , the supp, then there will be a value of t when supp folds, it becomes multi-w-to-one-x mapping.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
11/23/2015Slide 1 Using a combination of tables and plots from SPSS plus spreadsheets from Excel, we will show the linkage between correlation and linear.
Course 8 Contours. Def: edge list ---- ordered set of edge point or fragments. Def: contour ---- an edge list or expression that is used to represent.
1 Data Analysis Linear Regression Data Analysis Linear Regression Ernesto A. Diaz Department of Mathematics Redwood High School.
1 Neighboring Feature Clustering Author: Z. Wang, W. Zheng, Y. Wang, J. Ford, F. Makedon, J. Pearlman Presenter: Prof. Fillia Makedon Dartmouth College.
1 CS612 Algorithms for Electronic Design Automation CS 612 – Lecture 8 Lecture 8 Network Flow Based Modeling Mustafa Ozdal Computer Engineering Department,
Copyright © Cengage Learning. All rights reserved.
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
Rendering Bezier Curves (1) Evaluate the curve at a fixed set of parameter values and join the points with straight lines Advantage: Very simple Disadvantages:
D Nagesh Kumar, IIScOptimization Methods: M8L1 1 Advanced Topics in Optimization Piecewise Linear Approximation of a Nonlinear Function.
Common Intersection of Half-Planes in R 2 2 PROBLEM (Common Intersection of half- planes in R 2 ) Given n half-planes H 1, H 2,..., H n in R 2 compute.
STAR SVT Self Alignment V. Perevoztchikov Brookhaven National Laboratory,USA.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
Approximation Algorithms based on linear programming.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
2IMA20 Algorithms for Geographic Data Spring 2016 Lecture 5: Simplification.
Computer Graphics Lecture 07 Ellipse and Other Curves Taqdees A. Siddiqi
Introduction to Parametric Curve and Surface Modeling.
The simple linear regression model and parameter estimation
Approximating Set Cover
Computability and Complexity
Enumerating Distances Using Spanners of Bounded Degree
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

Curve Simplification under the L 2 -Norm Ben Berg Advisor: Pankaj Agarwal Mentor: Swaminathan Sankararaman

Motivation Given a large sets of data sampled from an underlying function that we wish to estimate Data sets are too large Data has some noise, but the degree of accuracy changes over time P: sequence of n points in R 2 Each trajectory P=

Problem Formulation We want a compact representation of the curve underlying P k ≥ 0: A parameter Compute a continuous, piecewise- linear function of at most k pieces Let p i =(x i, y i ) Error ∆= Find ƒ which minimizes error Error is the sum of the squared vertical distances

Some Definitions f1f1 f4f4 f3f3 f2f2 A function f can be decomposed into its component functions We call the intersection point between functions a breakpoint

Previous Results L ∞ -Norm instead of L 2 -Norm ∆ ∞ (P,ƒ)=max i |y i – ƒ(x i )| Near linear time algorithm shown by Agarwal et al. Imai and Iri consider fixing breakpoints to occur at input points Guha et al. give a linear time (1+ ε ) approximation for the discontinuous case Shortest path formulation demonstrates a dynamic programming solution for the discontinuous case The discontinuous case is often unhelpful for estimating situations such as trajectories which are often continuous curves

Discontinuous Case Do not require ƒ to be continuous O(n 2 k) dynamic programming solution Every point becomes a vertex Every optimal regression line becomes an edge Use a modified Bellman-Ford algorithm to find shortest path of length k ∆(f * i,j,P i,j ) ij

An Exact Algorithm First consider the case where k=2 For a given coverage, we can find the optimal function with this coverage This generalizes to solving for the optimal k piece function over a given coverage Try all coverages of the point set Runs in O(n O(k) (k 5 +n))

The Two Piece Case Let OPT: Suppose We have the following convex program to find ƒ * Where : ƒ L (x)=m L x + c L ƒ R (x)=m R x + c R ƒ L (x) ƒ R (x) xLxL xRxR The coverage of ƒ describes which function covers which subset of points

The Two Piece Case g L : OPT regression line for x ≤ x i g R : OPT regression line for x≥ x i+1 x: breakpoint of g L, g R Claim: if else, x lies on a boundary due to the convexity of ∆ gLgL gRgR ƒ*Lƒ*L ƒ*Rƒ*R x’ x*x*

Extension to k Pieces Given a coverage of P f[i,j]: the optimal function covering pieces i through j ∆[i,j]: the error associated with this function Two functions f[i,j] and f[j+1,m] form a valid solution if they intersect such that no constraints are violated. The above figure shows pieces which do not form a valid solution.

Extension to k Pieces If for some i < m < j, f[i,m] and f[m+1,j] form a valid solution, this solution is optimal If any particular solution is not valid, what does this tell us? We can make another argument based on the convexity of ∆

Extension to k Pieces So, for a given coverage: Try to find two optimal functions which form a valid solution If none do, then there are k constraints, solve a constrained optimization problem Solve for all optimums of length 2, 3, …, k Try all coverages of P If all constraints are tight, solve a constrained optimization problem

A (1+ ε ) Dynamic Programming Solution To simplify things, lets find a set of “candidate” lines What if there was a discrete grid over the point set, P? All functions would be somewhat close to a function which passed through pairs of grid marks

Discretization Scheme Claim: Comparing error in OPT solutions: (∆ ∞ (P)) 2 ≤ ∆(P)≤ n(∆ ∞ (P)) 2 Discretize x=x i for all i Two consecutive points y, y’ on x=x i For any piece covering zero or one point, adjust this line to cover at least two points For every piece, translate the piece vertically until it passes through a grid mark Rotate it about this grid mark until it hits a second grid mark Factor of ε /n ε (∆ ∞ ) 2 /n Proof Idea: Each piece in OPT can be shifted to pass through two points in C

Claim 1 Any two functions, f and g, which pass between the same pair of grid marks above or below every point are factor (1+ ε ) away from each other in error Every point’s error is increased by either ε ∆ ∞ /n, or a factor of (1+ ε ), thus error doesn’t increase by more than factor (1+ ε )

Claim 2 Any function, f, can be transformed to a function g which passes through same intervals above or below every point, such that every piece of g passes through 2 grid marks Consider some piece f i (x) Through rotation, f i (x) cannot become vertical No line leaves any interval it lies in Rotation and Translation may change coverage, but only between lines in the same interval

Claim 2

Finishing Up There exists a function through pairs of grid marks with error no more than factor (1+ ε ) of opt. Find the minimal such function Let T(i,p,q) be the optimal i- piece solution whose final piece passes through grid marks p and q We can solve this in Let Φ (p,q,r,s) be the error of the line through p,q to the right of its intersection with the line through r,s

Future Work Can we draw fewer grid marks? Can we choose lines through these grid marks in a more clever manner? Coreset based approach: A coreset is a subset of the input points whose error is not too different from that of the input set For example, we could find a (1+ ε ) coreset for the problem Har-Peled describes coresets for similar problems Suggests we could find an O(n+k) O(1) approximation