A scalable dynamic programming scheme for the computation of optimal k-segments for ordered data. (October 2017)