n p
plac1, ..., placp
dem1, ..., demn
aff : [1..n]→[1..p]
aff(i)>=demi1≤i≤n
Card{i/aff(i) = j}<=placj1≤j≤p
p= 3 n= 6 2,1,3,2,2,3
demi< demjaffi<=affj
p= 3 n= 6 2,1,1,2,1,1
aff(1) = 2, aff(2) = 1, aff(3) = 1, aff(4) = 2, aff(5) = 3, aff(6) = 3
4 5
p= 3 n= 6 2,2,1,3,1,1
aff(i)−dem(i)
Pi=n
i=1 (aff(i)−demi)
p= 3 n= 6 2,1,1,2,1,1
aff(1) = 3, aff(2) = 1, aff(3) = 1, aff(4) = 3, aff(5) = 2, aff(6) = 1
(3 −2) + (1 −1) + (1 −1) + (2 −1) + (2 −1) + (1 −1) 3
n i = 1, . . . , n
di
t= 0 i ti
fi
ti> fi
maxi en retard(ti−fi)
4d1= 2, d2= 1, d3= 4, d4= 2 f1= 2, f2= 3, f3= 5, f4= 4
1,3,2,4,5 1,3,4,2 6