On the job rotation problem



Algorithm JRPBLOCKDIAG

Input: A = blockdiag(A 1, A2,..., Ap) Rn×n.

Output: For k = 1, . . . , n, δk (A), and if δk (A) is finite, then also k independent
entries of a
k × k principal submatrix of A whose total is δk (A).

1. Set M0 = {(0,0, 0)}

2. For j = 1 to p :

(a) For r = 1 to n(j ) :

i. Find δr(Aj).

ii. Find Bjr (Aj )r and πjr ap(Bj r) such that w(Bjr, πjr) =
δr(Aj).

(b) Set Mj = Mj-1

(c) For each element (S, w, l) Mj-1 :

j

For each r = 1 to min(   n(t) - l, n(j)) with δr (Aj ) finite :

t=1

i. If @(S0, w0, l + r) Mj, then add (S {(j, r)}, w + δr (Aj), l + r)
to
Mj .

ii. If (S0, w0, l + r) Mj and w0 < w + δr (Aj ), then remove
(
S0, w0, l + r) from Mj and add (S {(j, r)}, w + δr (Aj), l + r) to
Mj.

3. For k = 1 to n :

If (S, w, k) Mp, then return δk (A) = w, and for i = 1, . . . , r and all
(
j, r) S, return the element of A that corresponds to the (i, πjr (i)) entry
of
Bjr. Else return δk (A) = -∞.

Figure 2: An algorithm for solving JRP for block diagonal matrices.

Lemma 20.

1. If (S, w, k) Mj in Step 3 of the algorithm, then

(a) S {1, . . . , p} × {1, . . . , n},

(b) P δs(Ai) = w,

(i,s)S

(c) P s = k,

(i,s)S

(d) If (S0 , w0 , k) Mj , then S0 = S and w0 = w,

(e) If S0 {1,...,p} × {1,...,n}, w0 = P δs(Ai) and P s = k

(i,s)S0                    (i,s)S0

then w0 ≤ w.

16



More intriguing information

1. Valuing Farm Financial Information
2. Crime as a Social Cost of Poverty and Inequality: A Review Focusing on Developing Countries
3. Financial Market Volatility and Primary Placements
4. ‘I’m so much more myself now, coming back to work’ - working class mothers, paid work and childcare.
5. The name is absent
6. Why unwinding preferences is not the same as liberalisation: the case of sugar
7. Bidding for Envy-Freeness: A Procedural Approach to n-Player Fair Division Problems
8. The Nobel Memorial Prize for Robert F. Engle
9. Unemployment in an Interdependent World
10. TRADE NEGOTIATIONS AND THE FUTURE OF AMERICAN AGRICULTURE
11. The name is absent
12. The Tangible Contribution of R&D Spending Foreign-Owned Plants to a Host Region: a Plant Level Study of the Irish Manufacturing Sector (1980-1996)
13. The name is absent
14. Models of Cognition: Neurological possibility does not indicate neurological plausibility.
15. The name is absent
16. The Veblen-Gerschenkron Effect of FDI in Mezzogiorno and East Germany
17. A Location Game On Disjoint Circles
18. The changing face of Chicago: demographic trends in the 1990s
19. The name is absent
20. KNOWLEDGE EVOLUTION