fix: V_i in NFDBP algo
This commit is contained in:
parent
7e0c5a84bb
commit
6bb38429d1
1 changed files with 3 additions and 2 deletions
|
@ -164,13 +164,14 @@ def simulate_NFDBP(N):
|
||||||
i += 1
|
i += 1
|
||||||
R.append(0)
|
R.append(0)
|
||||||
T.append(0)
|
T.append(0)
|
||||||
|
V.append(0)
|
||||||
|
if V[i] == 0:
|
||||||
# C'est le premier paquet de la boite
|
# C'est le premier paquet de la boite
|
||||||
V.append(size)
|
V[i] = size
|
||||||
H.append(i)
|
H.append(i)
|
||||||
R[i] += size
|
R[i] += size
|
||||||
T[i] += 1
|
T[i] += 1
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"i": i,
|
"i": i,
|
||||||
"R": R,
|
"R": R,
|
||||||
|
|
Loading…
Reference in a new issue