Implementation of the line fitting dynamic programming algorithm (segmented least squares algorithm)
The problem statement can be found here
The code documentation can be found here
The input/output can be found here
The analysis can be found here