December 1st, 2006, 12:44 am
QuoteOriginally posted by: OmkThen iteratively, you try to move one of them to et more point till you are on an optimal position... BT, the algorithm I gave is (number of iterations) *O(number of cell) * O(number of prisoners). However, the number of iteration can be i am afraid quite bigDon't be afraid. I think the problem is that the rearrangement of whole groups may be necessary to find an improved layout, where you would not see any gradual improvement as you performed the rearrangement one-by-one. So how can you find groups to move as a whole? The solution, it seems, is to first find the solution with a smaller number of slots, say four quadrants, in each of which all prisoners are at a single point. If you know the best possible case with prisoner N in quadrant 1 is X, then you know there is no possible sub-improvement inside there that could beat X. So if you get better than X in some other finer arrangement, then you know that no finer arrangement could beat that. In other words, instead of comparing two full-detail arrangements, you look for a summary that delivers a best case, and a worst case. If see you the worst case of summary A - which summarizes 1,000 possible arrangements - beats the best case of B which summarizes 1,000 possible arrangements, then you discard B, and look for the best sub-arrangement of A that is actually possible.But anyway, I am trying to show that the random case doesn't exist in nature, and that things naturally collapse to stable patterns which can best be described in smaller and smaller numbers of dimensions in continuous space. So hopefully I will always be faced with an easier or more interesting algorithm...