fix: V_i in NFDBP algo

This commit is contained in:
Paul ALNET 2023-06-04 08:17:35 +02:00
parent 7e0c5a84bb
commit 6bb38429d1

View file

@ -164,13 +164,14 @@ def simulate_NFDBP(N):
i += 1
R.append(0)
T.append(0)
V.append(0)
if V[i] == 0:
# C'est le premier paquet de la boite
V.append(size)
V[i] = size
H.append(i)
R[i] += size
T[i] += 1
return {
"i": i,
"R": R,