I look for an algorithm to "slice" a population of ordered values into subsets (groups) that maintain the order of the values.
For example, I have a population of 50 ordered values (1,2,3,...,50) and I want to "slice" it first into two groups (one cutoff point), then into three groups (two cutoff points), then into four groups (three cutoff points) etc. until a specific number of cutoff points (e.g., size of population divided over 2; max of 25 cutoff points in this example). The order of the original values has to be maintained.
Can you recommend any appropriate general-purpose algorithm?