知识卡片

普通读书笔记卡 · 3677.b.2

移首分析用两倍逆序数作势能

理解等级:高级

令在线链表与离线最优链表之间的势能等于两倍逆序数。每个逆序既可能影响一次查找位置,也可能对应一次交换;逐次比较真实成本与势能变化,就能累加出全序列上界。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 第27章 在线算法 · 查看原书依据

      The value Φi of the potential function after the ith calls of MOVE-TO-FRONT and FORESEE depends on the inversion count: (Intuitively, the factor of 2 embodies the notion that each inversion represents a cost of 2 for MOVE-TO-F

    参考来源

    - 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[20000,25000))。 - 结论依据:原文分别定义逆序、势能比较或缓存策略及其成本模型;正文补充其用途与边界。 - 原始内容:The value Φ i of the potential function after the i th calls of M OVE -T O -F RONT and F ORESEE depends on the inversion count: (Intuitively, the factor of 2 embodies the notion that each inversion represents a cost of 2 for M OVE -T O -F