Comments

Yes, all costs are non-negative. We also make the following practical assumptions on the cost matrix:

  1. Monotonicity: ( A[i][j] >= A[i][j'] ) whenever ( j >= j' ). (Intuitively, shifting a candidate by a larger distance should never be cheaper.)

  2. Submodularity: (A[i][x + y] <= A[i][x] + A[i][y]). (In other words, combining two consecutive shifts should not cost more than performing them separately.)

Under the monotonicity assumption, it is never optimal to move a candidate “too far”. Under the submodularity assumption, it is never optimal to shift the same candidate multiple times consecutively.

Auto comment: topic has been updated by Soumojitkgp (previous revision, new revision, compare).