“…The segmentation problem for genome sequences and time series has been discussed widely; see, e.g., [10,3,7,9,5,16,14,15,11,4,2]. For a wide variety of score functions, dynamic programming can be used to obtain the best segmentation of an n-element sequence into k pieces in time O(n 2 k); this idea goes back at least to Bellman [3] in 1961.…”