Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Relaxation » ?

Aussi appelé : relaxation (of an edge)

Definition 25.4 University Computer Science — Year 1 · Chapitre 25 — Shortest Paths

The algorithms keep an estimate dist[v]≥δ(s,v)\texttt{dist}[v] \geq \delta(s, v), with dist[s]=0\texttt{dist}[s] = 0 and +∞+\infty elsewhere at the start. To relax the arc u→vu \to v is to set dist[v]=dist[u]+w(u,v)\texttt{dist}[v] = \texttt{dist}[u] + w(u, v), and the parent of vv to uu, if that is smaller.

Lire dans le chapitre →