Hi all,
The question
I have four items represented randomly in thirty-one rows (just a month). (see my example). I need to extract a sequence where the given items (a,b,c,d) must be sequenced the the best way possible for that case in an equal numeric distribution and with the maximum equidistance one from another.
For example a,b,c,d,a,b,c,d,a,b,c,d, etc is good (not repeated items and equidistant items)
Aabbcdaabbcc, is not good, (repeated and not equidistant items)
I have a routine able to obtain a good permutation of the items but the difficulty is when, like in the example ( I have a bottleneck in some rows (4,10,25), there only two items or worse just one.. Considered this bottleneck, is it possible to find a routine to obtain the best result possible in that situation ?
I would appreciate any kinds of assistance.
sasa