negative cycle(负权环/负环):在带权图中,一个环路上所有边的权重之和为负数的循环路径。它常见于最短路径问题中:如果从某个起点可达负权环,那么“最短路径”可能不存在(因为可以无限次绕环让路径代价越来越小)。
A negative cycle makes the shortest path undefined.
负权环会使最短路径变得没有定义(不存在有限的最短值)。
When the Bellman–Ford algorithm detects a negative cycle reachable from the source, it reports that distances can be decreased indefinitely.
当 Bellman–Ford 算法检测到从源点可达的负权环时,它会报告距离可以被无限降低。
/ˈnɛɡətɪv ˈsaɪkəl/
negative 源自拉丁语 negativus(表示否定的);cycle 源自希腊语 kyklos(圆、轮、循环)。合在一起在图论与算法语境中指“总权重为负的循环结构”,因此中文常译为“负权环/负环”。