Les deux Wikipedia et ce site décrivent une étape similaire dans l'algorithme de recuit simulé, que j'ai choisi ici:À quoi cela sert-il dans l'algorithme de recuit simulé?
Wikipedia:
if P(e, enew, temp(k/kmax)) > random() then // Should we move to it?
s ← snew; e ← enew // Yes, change state.
Yuval Baror, en ce qui concerne la Eight Queens puzzle:
If moving the queen to the new column will reduce the number of attacked
queens on the board, the move is taken. Otherwise, the move is taken only
with a certain probability, which decreases over time.
Hence early on the algorithm will tend to take moves even if they
don't improve the situation. Later on, the algorithm will only make moves
which improve the situation on the board.
Ma question est: que fait ce mouvement aléatoire?
Ah c'est ce qu'ils veulent dire! Sinon c'est comme, euh, gagner la bataille mais perdre la guerre, non? – PizzAzzra
@Az - Voilà l'essentiel :) – Paolo