← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 3677

搜索链表计入查找和交换成本

理解等级:中级

维护有序搜索链表时,访问第i个元素需i单位查找成本,相邻元素交换各需1单位。

在线重排策略要最小化整段请求的查找与交换总和,不能只用当前一次查找速度评价。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      The goal is to minimize the total cost of calls to LIST-SEARCH plus the total number of swaps performed. The online algorithm that we’ll explore is MOVE-TO-FRONT(L, x). This procedure first searches for x in the doubly linked list L,

    参考来源

    - 位置:《算法导论(第4版)》第27章《在线算法》(OEBPS/chapter027.xhtml,文本字符[10000,15000))。 - 结论依据:原文定义在线决策或竞争比,并用电梯和搜索链表示例给出适用条件与成本。 - 原始内容:The goal is to minimize the total cost of calls to L IST -S EARCH plus the total number of swaps performed. The online algorithm that we’ll explore is M OVE -T O -F RONT ( L , x ). This procedure first searches for x in the doubly linked list L ,