知识卡片

普通读书笔记卡 · 3645.i.4.a

限边数状态由最后一边转移

理解等级:中级

最多 r 条边的 i→j 路径,

  • 要么已在 r−1 条内到达 j,
  • 要么先到某个 k 再走边(k,j)。

遍历 k 取 L^(r−1)[i,k]+w(k,j) 的最小值。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第23章 所有结点对的最短路径 · 查看原书依据

      Another way is by taking a path of at most r − 1 edges from i to some vertex k and then taking the edge (k, j), so that . Therefore, to examine paths from i to j consisting of at most r edges, try all possible predecessors k of j, giving the recursive definition

    参考来源

    - 位置:《算法导论(第4版)》第23章《所有结点对的最短路径》(OEBPS/chapter023.xhtml,文本字符[5000,10000))。 - 结论依据:原文拆分最后一条边;Art_P684–P686给出递推式。 - 原始内容:Another way is by taking a path of at most r − 1 edges from i to some vertex k and then taking the edge ( k , j ), so that . Therefore, to examine paths from i to j consisting of at most r edges, try all possible predecessors k of j , giving the recursive definition - 公式图核读:`_epub-src/OEBPS/images/Art_P684.jpg`;`_epub-src/OEBPS/images/Art_P685.jpg`;`_epub-src/OEBPS/images/Art_P686.jpg`:l⁽ʳ⁾ᵢⱼ=min{l⁽ʳ⁻¹⁾ᵢⱼ,minₖ(l⁽ʳ⁻¹⁾ᵢₖ+wₖⱼ)}=minₖ(l⁽ʳ⁻¹⁾ᵢₖ+wₖⱼ),末项利用 wⱼⱼ=0。