全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Relaxation?

又称: relaxation (of an edge)

Definition 25.4 University Computer Science — Year 1 · 第 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.

在原文中阅读 →