On the approximation of curves by line segments using dynamic programming | Synapse